Documentation ¶
Index ¶
- func FindCacheByUpstream(caches []registry.RegistryCache, upstream string) (bool, registry.RegistryCache)
- func GarbageCollectionEnabled(cache *registry.RegistryCache) bool
- func GarbageCollectionTTL(cache *registry.RegistryCache) metav1.Duration
- func VolumeSize(cache *registry.RegistryCache) *resource.Quantity
- func VolumeStorageClassName(cache *registry.RegistryCache) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCacheByUpstream ¶
func FindCacheByUpstream(caches []registry.RegistryCache, upstream string) (bool, registry.RegistryCache)
FindCacheByUpstream finds a cache by upstream. The first return argument is whether the extension was found. The second return argument is the cache itself. An empty cache is returned if the cache is not found.
func GarbageCollectionEnabled ¶ added in v0.4.0
func GarbageCollectionEnabled(cache *registry.RegistryCache) bool
GarbageCollectionEnabled returns whether the garbage collection is enabled (ttl > 0) for the given cache.
func GarbageCollectionTTL ¶ added in v0.7.0
func GarbageCollectionTTL(cache *registry.RegistryCache) metav1.Duration
GarbageCollectionTTL returns the time to live of a blob in the given cache.
func VolumeSize ¶ added in v0.4.0
func VolumeSize(cache *registry.RegistryCache) *resource.Quantity
VolumeSize returns the volume size for the given cache.
func VolumeStorageClassName ¶ added in v0.4.0
func VolumeStorageClassName(cache *registry.RegistryCache) *string
VolumeStorageClassName returns the volume StorageClass name for the given cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.