GetBaseBucket returns the lowest level non-wrapping bucket wrapped by one or more WrappingBuckets
(b Bucket)
| 78 | |
| 79 | // GetBaseBucket returns the lowest level non-wrapping bucket wrapped by one or more WrappingBuckets |
| 80 | func GetBaseBucket(b Bucket) Bucket { |
| 81 | if wb, ok := b.(WrappingBucket); ok { |
| 82 | return GetBaseBucket(wb.GetUnderlyingBucket()) |
| 83 | } |
| 84 | return b |
| 85 | } |
| 86 | |
| 87 | // GetBaseDataStore returns the lowest level non-wrapping datastore wrapped by one or more WrappingBuckets |
| 88 | func GetBaseDataStore(ds DataStore) DataStore { |