package
0.0.0-20240213125631-d88ec871d766
Repository: https://github.com/allegro/akubra.git
Documentation: pkg.go.dev
# Functions
NewBucketIndexRestService creates an instance of BucketIndexRestService.
NewBucketIndexRestServiceFactory creates an instance of BucketIndexRestServiceFactory.
NewBucketMetaDataCache wraps the supplies fetcher with a cache layer.
NewBucketMetaDataCacheWithFactory uses the factory to create a fetcher.
# Structs
BucketIndexRestService is an implementation of BucketMetaDataFetcher that talks to a rest serviceassuming it's supporint the requried protocol, meaning `/bucket/{bucketName}` returns the bucket metadta.
BucketIndexRestServiceFactory creates instances of BucketIndexRestService.
BucketLocation describes where to find the bucket.
BucketMetaData is akubra-specific metadata about the bucket.
BucketMetaDataCache is a wrapper that caches the answers given by the wrapped BucketMetaDataFetcher.
BucketMetaDataCacheConfig holds the configuration for bucket's cache.
FakeBucketMetaDataFetcher always reports bucket as non-internal.
FakeBucketMetaDataFetcherFactory is a fake implementation of BucketMetaDataFetcher that always returns the privacy specified in config.
Fnv64Hasher wraps the stdlib hasher to bigcache's Hasher type.
# Interfaces
BucketMetaDataFetcher fetches metadata by BucketLocation.
BucketMetaDataFetcherFactory creates an instance of fecher given using the given config.