helper

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL