Documentation ¶
Index ¶
- Constants
- func BuildImage(imageName string, dockerfilePath string, dirToCopy string) error
- func DeleteImage(imageName string) error
- func ExtractImageContents(imageName string, destinationDir string) error
- func GetDockerfilePath(kpmHomeDir string) string
- func GetImageName(dockerRegistry string, packageName string, resolvedPackageVersion string) string
- func GetImageNameWithoutTag(dockerRegistry string, packageName string) string
- func PullImage(imageName string) error
- func PushImage(imageName string) error
Constants ¶
View Source
const DefaultDockerRegistry = "docker.io"
DefaultDockerRegistry is the default registry to use (Docker Hub).
View Source
const DockerfileRootDir = ".kpm"
DockerfileRootDir is the root directory to use when building or copying from a Docker image.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
BuildImage builds a new docker image by making a call to the Docker daemon.
func DeleteImage ¶
DeleteImage deletes a local Docker image.
func ExtractImageContents ¶
ExtractImageContents extracts files and directories from a Docker image, and copies them to the local KPM repository.
func GetDockerfilePath ¶
GetDockerfilePath returns the path of the Dockerfile to use.
func GetImageName ¶
GetImageName creates a new image name based on the Docker repository, package name and resolved package version.
func GetImageNameWithoutTag ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.