MCPcopy
hub / github.com/sa7mon/S3Scanner / StoreBucket

Function StoreBucket

db/database.go:57–62  ·  view source on GitHub ↗
(b *bucket.Bucket)

Source from the content-addressed store, hash-verified

55 return nil
56}
57func StoreBucket(b *bucket.Bucket) error {
58 if b.Exists == bucket.BucketNotExist {
59 return nil
60 }
61 return db.Session(&gorm.Session{CreateBatchSize: 1000, FullSaveAssociations: true}).Create(&b).Error
62}

Callers 4

WorkFunction · 0.92
WorkMQFunction · 0.92
BenchmarkStoreBucketFunction · 0.85
TestStoreBucketFunction · 0.85

Calls

no outgoing calls

Tested by 2

BenchmarkStoreBucketFunction · 0.68
TestStoreBucketFunction · 0.68