()
| 744 | } |
| 745 | |
| 746 | func (tbp *TestBucketPool) testScopeName() string { |
| 747 | if tbp.useDefaultScope { |
| 748 | return DefaultScope |
| 749 | } else { |
| 750 | return fmt.Sprintf("%s%d", tbpScopePrefix, 0) |
| 751 | } |
| 752 | } |
| 753 | |
| 754 | // TBPBucketInitFunc is a function that is run once (synchronously) when creating/opening a bucket. |
| 755 | type TBPBucketInitFunc func(ctx context.Context, b Bucket, tbp *TestBucketPool) error |