Documentation ¶
Index ¶
- func GenericImageFromSource(src types.ImageSource) types.Image
- func NewDockerImage(img, certPath string, tlsVerify bool) (types.Image, error)
- func NewDockerImageDestination(img, certPath string, tlsVerify bool) (types.ImageDestination, error)
- func NewDockerImageSource(img, certPath string, tlsVerify bool) (types.ImageSource, error)
- type Image
- func (i *Image) DockerTar() ([]byte, error)
- func (i *Image) GetRepositoryTags() ([]string, error)
- func (i *Image) Inspect() (*types.ImageInspectInfo, error)
- func (i *Image) IntendedDockerReference() string
- func (i *Image) Layers(layers ...string) error
- func (i *Image) Manifest() ([]byte, error)
- func (i *Image) Signatures() ([][]byte, error)
- func (i *Image) SourceRefFullName() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenericImageFromSource ¶ added in v0.1.13
func GenericImageFromSource(src types.ImageSource) types.Image
GenericImageFromSource returns a types.Image implementation for source. NOTE: This is currently an internal testing helper, do not rely on this as a stable API. There might be an ImageFromSource eventually, but it would not be in the skopeo/docker package.
func NewDockerImage ¶ added in v0.1.12
NewDockerImage returns a new Image interface type after setting up a client to the registry hosting the given image.
func NewDockerImageDestination ¶ added in v0.1.12
func NewDockerImageDestination(img, certPath string, tlsVerify bool) (types.ImageDestination, error)
NewDockerImageDestination creates a new ImageDestination for the specified image and connection specification.
func NewDockerImageSource ¶ added in v0.1.12
func NewDockerImageSource(img, certPath string, tlsVerify bool) (types.ImageSource, error)
NewDockerImageSource creates a new ImageSource for the specified image and connection specification.
Types ¶
type Image ¶ added in v0.1.13
type Image struct {
// contains filtered or unexported fields
}
Image is a Docker-specific implementation of types.Image with a few extra methods which are specific to Docker.
func (*Image) GetRepositoryTags ¶ added in v0.1.13
GetRepositoryTags list all tags available in the repository. Note that this has no connection with the tag(s) used for this specific image, if any.
func (*Image) Inspect ¶ added in v0.1.13
func (i *Image) Inspect() (*types.ImageInspectInfo, error)
func (*Image) IntendedDockerReference ¶ added in v0.1.13
func (i *Image) IntendedDockerReference() string
IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_ (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image. May be "" if unknown.
func (*Image) Manifest ¶ added in v0.1.13
Manifest is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.
func (*Image) Signatures ¶ added in v0.1.13
Signatures is like ImageSource.GetSignatures, but the result is cached; it is OK to call this however often you need.
func (*Image) SourceRefFullName ¶ added in v0.1.13
SourceRefFullName returns a fully expanded name for the repository this image is in.