Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Build ¶
Build will provide methods for interaction with API regarding building images
func (*Build) BuildImage ¶
func (c *Build) BuildImage(source string, image string, dockerfile string, buildargs []dockerlib.BuildArg) error
BuildImage builds a Docker image via the Docker API. Takes the source directory and image name and then builds the appropriate image. Tarball is utilized in order to make building easier.
type Image ¶ added in v1.24.0
type Image struct { Name string // the image's name (ie: debian[:8.2]) ShortName string // the image's name (ie: debian) Tag string // the image's tag (or digest) Registry string // the image's registry. (ie: host[:port]) Repository string // the image's repository. (ie: registry/name) Remote string // the image's remote identifier. (ie: registry/name[:tag]) }
Image contains the basic information parsed from full image name see github.com/novln/docker-parser Reference
func NewImageFromParsed ¶ added in v1.24.0
func NewImageFromParsed(parsed *dockerparser.Reference) Image
func ParseImage ¶ added in v1.24.0
ParseImage Using https://github.com/novln/docker-parser in order to parse the appropriate name and registry. 1. Return default registry when the registry is not specified from image 2. Return target registry when the registry is specified from command line
Click to show internal directories.
Click to hide internal directories.