Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthTransport ¶
func NewAuthTransport(inner http.RoundTripper) http.RoundTripper
NewAuthTransport returns a roundtripper that does bearer/etc authentication
func ResolveImage ¶
ResolveImage loads the digest reference for a docker image.
Types ¶
type DefaultResolverClient ¶
type DefaultResolverClient struct {
// contains filtered or unexported fields
}
DefaultResolverClient resolves digests for a docker image.
func NewDefaultDigester ¶
func NewDefaultDigester() *DefaultResolverClient
NewDefaultDigester creates an instance of DefaultDigester.
func (*DefaultResolverClient) ManifestV2Digest ¶
func (d *DefaultResolverClient) ManifestV2Digest(image string) (string, error)
ManifestV2Digest returns the 'Docker-Content-Digest' field of the the header when making a request to the v2 manifest.
type ImageName ¶
type ImageName struct { // Registry is the registry api address Registry string // Repository is the repository name Repository string // Name is the name of the image Name string // Tag is the image tag Tag string // Digest is the image digest Digest string }
ImageName represents the parts of a docker image name eg: "myregistryhost:5000/fedora/httpd:version1.0"
func ParseImageName ¶
ParseImageName parses a docker image into an ImageName struct
func (ImageName) RegistryRepoName ¶
RegistryRepoName returns the "repository" as used in the registry URL
func (ImageName) RegistryURL ¶
RegistryURL returns the deduced base URL of the registry for this image
type Registry ¶
Registry is a *crazy limited* Docker registry client.
func NewRegistryClient ¶
NewRegistryClient creates a new Registry client using the given http client and base URL.
type ResolverClient ¶
ResolverClient is client resolves data from manifests.