Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITag2DigestResolver ¶
type ITag2DigestResolver interface { // Resolve receives an image reference and the resource deployed context and resturns image digest Resolve(imageReference registry.IImageReference, authContext *ResourceContext) (string, error) }
ITag2DigestResolver responsible to resolve resource's image to it's digest
type ResourceContext ¶
type ResourceContext struct {
// contains filtered or unexported fields
}
ResourceContext represents deployed resource context to use for image digest extraction
func NewResourceContext ¶
func NewResourceContext(namespace string, imagePullSecrets []string, serviceAccountName string) *ResourceContext
type Tag2DigestResolver ¶
type Tag2DigestResolver struct {
// contains filtered or unexported fields
}
Tag2DigestResolver represents basic implementation of ITag2DigestResolver interface
func NewTag2DigestResolver ¶
func NewTag2DigestResolver(instrumentationProvider instrumentation.IInstrumentationProvider, registryClient registry.IRegistryClient, cacheClient cache.ICacheClient, tag2DigestResolverConfiguration *Tag2DigestResolverConfiguration) *Tag2DigestResolver
NewTag2DigestResolver Ctor
func (*Tag2DigestResolver) Resolve ¶
func (resolver *Tag2DigestResolver) Resolve(imageReference registry.IImageReference, resourceCtx *ResourceContext) (string, error)
Resolve receives an image reference and the resource deployed context and returns image digest Saves digest in cache. The format is key - image original name, value - digest
type Tag2DigestResolverConfiguration ¶
type Tag2DigestResolverConfiguration struct { // cacheExpirationTime is the expiration time **IN MINUTES** for digests in the cache client CacheExpirationTimeForResults int }
Tag2DigestResolverConfiguration is configuration data for Tag2DigestResolver
Click to show internal directories.
Click to hide internal directories.