Documentation ¶
Index ¶
- func NewCacheResolver(cache DigestCache, resolver Resolver) *cacheResolver
- func NewDigestCache(refreshInterval, cachedObjectTTL time.Duration) (*digestCache, error)
- func NewDirectResolver() *directResolver
- type DigestCache
- type HandleBuilder
- func (hb HandleBuilder) Build() (*handler, error)
- func (hb HandleBuilder) WithAllowInsecureRegistries(allowInsecureRegistries bool) HandleBuilder
- func (hb HandleBuilder) WithCacheRefreshInterval(refreshInterval time.Duration) HandleBuilder
- func (hb HandleBuilder) WithCacheTTL(ttl time.Duration) HandleBuilder
- func (hb HandleBuilder) WithLogger(logger logr.Logger) HandleBuilder
- func (hb HandleBuilder) WithManager(mgr manager.Manager) HandleBuilder
- func (hb HandleBuilder) WithUseOnlyImagePullSecrets(useOnlyImagePullSecrets bool) HandleBuilder
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheResolver ¶
func NewCacheResolver(cache DigestCache, resolver Resolver) *cacheResolver
NewCacheResolver creates cached resolver from the provided cache and resolver.
func NewDigestCache ¶
NewDigestCache constructs new cache for image tags to digests and returns it.
func NewDirectResolver ¶
func NewDirectResolver() *directResolver
NewDirectResolver creates new resolver and returns it.
Types ¶
type DigestCache ¶
DigestCache is interface which implementations should store mapping of image tags to digests.
type HandleBuilder ¶
type HandleBuilder struct {
// contains filtered or unexported fields
}
HandleBuilder implements builder pattern that builds admission handle.
func NewHandleBuilder ¶
func NewHandleBuilder() HandleBuilder
NewHandleBuilder returns new handle builder.
func (HandleBuilder) Build ¶
func (hb HandleBuilder) Build() (*handler, error)
Build builds a handler from the HandleBuilder.
func (HandleBuilder) WithAllowInsecureRegistries ¶ added in v0.13.0
func (hb HandleBuilder) WithAllowInsecureRegistries(allowInsecureRegistries bool) HandleBuilder
WithAllowInsecureRegistries allows Lakom to use HTTP for communication with the registries
func (HandleBuilder) WithCacheRefreshInterval ¶
func (hb HandleBuilder) WithCacheRefreshInterval(refreshInterval time.Duration) HandleBuilder
WithCacheRefreshInterval sets the refresh interval for the cache.
func (HandleBuilder) WithCacheTTL ¶
func (hb HandleBuilder) WithCacheTTL(ttl time.Duration) HandleBuilder
WithCacheTTL sets the TTL for the cache.
func (HandleBuilder) WithLogger ¶
func (hb HandleBuilder) WithLogger(logger logr.Logger) HandleBuilder
WithLogger sets the logger.
func (HandleBuilder) WithManager ¶
func (hb HandleBuilder) WithManager(mgr manager.Manager) HandleBuilder
WithManager sets the manager.
func (HandleBuilder) WithUseOnlyImagePullSecrets ¶
func (hb HandleBuilder) WithUseOnlyImagePullSecrets(useOnlyImagePullSecrets bool) HandleBuilder
WithUseOnlyImagePullSecrets sets only the image pull secrets to be used to access the OCI Registry.