other/bucket/storj_bucket/storj_bucket.go
Method BucketObject.StoreObject
has 8 return statements (exceeds 4 allowed). Open
Open
func (bo *BucketObject) StoreObject(user_phrase string, salt, filename, filetype string, passphrase ...string) *bucket.Bucket_Error {
if reflect.DeepEqual(bo.NodeCredentials, &uplink.Access{}) {
return &bucket.Bucket_Error{Bucket: bucket.Bucket_Error_Category_Error}
}
Method BucketObject.DownloadObject
has 5 return statements (exceeds 4 allowed). Open
Open
func (boj *BucketObject) DownloadObject(project *uplink.Project) *bucket.Bucket_Error {
downObj, err := project.StatObject(boj.Ctx, boj.Bucket, boj.Key)
if err != nil {
Method BucketObject.StoreJCredentials
has 5 return statements (exceeds 4 allowed). Open
Open
func (boj *BucketObject) StoreJCredentials(user_phrase string, passphrase ...string) (*bucket.Bucket_Error, *uplink.Access) {
const api_key string = "1dfJiTZDDGnTZ9gCmZDAFDp1gLCBSsijs838VhzgskptVYifaWwwDwE51cAqTwATc1L7wwfaQ8Jz723JMLjEvFntG6ZccHwgm7GpvaqCABtFMh4rtU2K"
const address string = "12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs@eu1.storj.io:7777"