MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / getBucketByName

Function getBucketByName

server/s3/utils.go:32–43  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

30}
31
32func getBucketByName(name string) (Bucket, error) {
33 buckets, err := getAndParseBuckets()
34 if err != nil {
35 return Bucket{}, err
36 }
37 for _, b := range buckets {
38 if b.Name == name {
39 return b, nil
40 }
41 }
42 return Bucket{}, gofakes3.BucketNotFound(name)
43}
44
45func getDirEntries(path string) ([]model.Obj, error) {
46 ctx := context.Background()

Callers 8

directObjectURLFunction · 0.85
directUploadURLFunction · 0.85
ListBucketMethod · 0.85
HeadObjectMethod · 0.85
GetObjectMethod · 0.85
PutObjectMethod · 0.85
deleteObjectMethod · 0.85
CopyObjectMethod · 0.85

Calls 1

getAndParseBucketsFunction · 0.85

Tested by

no test coverage detected