Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2019 License: MIT Imports: 10 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlobURI

func GetBlobURI(ref reference.Named, digest digest.Digest) string

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

func GetManifestURI(ref reference.Canonical) string

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

func GetTokenURI(ref reference.Named) string

GetTokenURI gets the token URI for the passed repository.

func RequestManifest

func RequestManifest(client *http.Client, ref reference.Canonical) (schema2.Manifest, error)

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

func RequestImageConfig(client *http.Client, ref reference.Canonical) (ImageConfig, error)

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL