Documentation ¶
Index ¶
- func CreateTempDir() *string
- func ExtractImage(target *string, dockerTemp *string) (*[]model.Location, *string)
- func ExtractTarFile(tar *string, dockerTemp *string) (*[]model.Location, *string)
- func FindImageFromLocal(target *string) *string
- func GetImageID(target *string, credential *types.AuthConfig, hasTimeOut bool) *string
- func PullImageFromRegistry(target *string, credential *types.AuthConfig, hasTimeOut bool) *string
- func PullPublicImage(target *string, hasTimeOut bool) *string
- func SaveImageToTar(image *string, dockerTemp *string) *os.File
- func UnTar(dst string, source string, recursive bool, contents *[]model.Location) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempDir ¶ added in v1.3.1
func CreateTempDir() *string
func ExtractImage ¶
ExtractImage extracts a Docker image to a temporary directory and returns the path to the directory.
func ExtractTarFile ¶ added in v1.3.1
func FindImageFromLocal ¶
FindImageFromLocal searches for a Docker image of the given target on the local system. If found, it returns its ID; otherwise it returns nil.
func GetImageID ¶
func GetImageID(target *string, credential *types.AuthConfig, hasTimeOut bool) *string
GetImageID returns a Docker image ID given an image target (name:tag) and authentication info (if required). If the image is available locally, it returns the local image ID. Otherwise, it attempts to pull the image from a registry using the provided credentials. If credentials are not provided, it attempts to pull a public image.
func PullImageFromRegistry ¶
func PullImageFromRegistry(target *string, credential *types.AuthConfig, hasTimeOut bool) *string
PullImageFromRegistry attempts to pull a Docker image of the given target from a registry, using the provided authentication credentials. If successful, it returns the image ID; otherwise it waits for timeout seconds and retries.
func PullPublicImage ¶
PullPublicImage attempts to pull a public Docker image of the given target from Docker Hub. If successful, it returns the image ID; otherwise it waits for timeout seconds and retries.
func SaveImageToTar ¶ added in v1.3.1
Types ¶
This section is empty.