Documentation
¶
Overview ¶
Package contrib provides functions for getting digests from registries supported by docker-lock's community.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllWrappers ¶
func AllWrappers( client *registry.HTTPClient, configPath string, ) []registry.Wrapper
AllWrappers returns all wrappers supported by the community, that match the caller's environment.
Types ¶
type ElasticWrapper ¶
type ElasticWrapper struct {
// contains filtered or unexported fields
}
ElasticWrapper is a registry wrapper for the Elasticsearch registry.
func NewElasticWrapper ¶
func NewElasticWrapper(client *registry.HTTPClient) *ElasticWrapper
NewElasticWrapper creates an ElasticWrapper.
func (*ElasticWrapper) Digest ¶
func (e *ElasticWrapper) Digest(repo string, ref string) (string, error)
Digest queries the container registry for the digest given a repo and ref.
func (*ElasticWrapper) Prefix ¶
func (e *ElasticWrapper) Prefix() string
Prefix returns the registry prefix that identifies the Elasticsearch registry.
type MCRWrapper ¶
type MCRWrapper struct {
// contains filtered or unexported fields
}
MCRWrapper is a registry wrapper for Microsoft Container Registry.
func NewMCRWrapper ¶
func NewMCRWrapper(client *registry.HTTPClient) *MCRWrapper
NewMCRWrapper creates an MCRWrapper.
func (*MCRWrapper) Digest ¶
func (m *MCRWrapper) Digest(repo string, ref string) (string, error)
Digest queries the container registry for the digest given a repo and ref.
func (*MCRWrapper) Prefix ¶
func (m *MCRWrapper) Prefix() string
Prefix returns the registry prefix that identifies MCR.