Documentation ¶
Index ¶
- func GetBlobURI(ref reference.Named, digest digest.Digest) string
- func GetDigestFromTagged(client *http.Client, image reference.NamedTagged) (digest.Digest, error)
- func GetManifestURI(ref reference.Canonical) string
- func GetTagManifestURI(ref reference.NamedTagged) string
- func GetTokenURI(ref reference.Named) string
- func RequestManifest(client *http.Client, ref reference.Canonical) (schema2.Manifest, error)
- type ImageConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlobURI ¶
GetBlobURI gets a blob URI based on the passed repository and digest.
func GetDigestFromTagged ¶
func GetDigestFromTagged(client *http.Client, image reference.NamedTagged) (digest.Digest, error)
GetDigestFromTagged gets an image's digest from the passed tag. Returns a digest.Digest, or an error.
func GetManifestURI ¶
GetManifestURI gets a manifest URI based on the passed repository and digest.
func GetTagManifestURI ¶
func GetTagManifestURI(ref reference.NamedTagged) string
GetTagManifestURI gets a manifest URI based on the passed repository and tag.
func GetTokenURI ¶
GetTokenURI gets the token URI for the passed repository.
func RequestManifest ¶
RequestManifest requests an Manifest for the passed canonical image reference (an image URL with a digest specifying the built image). Returns a schema2.Manifest, or an error if there's an issue.
Types ¶
type ImageConfig ¶
type ImageConfig struct {
ContainerConfig dockerTypes.ExecConfig `json:"container_config"`
}
ImageConfig is a structure that wraps a config manifest.
func RequestConfig ¶
func RequestConfig(client *http.Client, ref reference.Named, digest digest.Digest) (ImageConfig, error)
RequestConfig requests an image configuration from the server, based on the passed digest. Returns an ImageConfig or an error.
func RequestImageConfig ¶
RequestImageConfig requests an image configuration from the server, based on the passed reference. Returns an ImageConfig or an error.
func (*ImageConfig) RunsAsRoot ¶
func (config *ImageConfig) RunsAsRoot() bool
RunsAsRoot returns true if the image the ImageConfig is associated with runs as root (user 0).