Documentation ¶
Index ¶
- func ContainerImageNameTagFromImage(fullImage string) (string, error)
- func ContainerRegistryFromImage(fullImage string) (string, error)
- func ContainerRegistryFromURL(registryURL string) (string, error)
- func CreateDockerConfigJSON(registryURL, username, password, targetPath, configPath string, ...) (string, error)
- type AuthEntry
- type Client
- type ClientOptions
- type Download
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerImageNameTagFromImage ¶ added in v1.94.0
ContainerImageNameTagFromImage provides the name & tag part of a full image name
func ContainerRegistryFromImage ¶ added in v1.94.0
ContainerRegistryFromImage provides the registry part of a full image name
func ContainerRegistryFromURL ¶ added in v1.94.0
ContainerRegistryFromURL provides the registry part of a complete registry url including the port
func CreateDockerConfigJSON ¶ added in v1.177.0
func CreateDockerConfigJSON(registryURL, username, password, targetPath, configPath string, utils piperutils.FileUtils) (string, error)
CreateDockerConfigJSON creates / updates a Docker config.json with registry credentials
Types ¶
type AuthEntry ¶ added in v1.177.0
type AuthEntry struct {
Auth string `json:"auth,omitempty"`
}
AuthEntry defines base64 encoded username:password required inside a Docker config.json
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines an docker client object
func (*Client) DownloadImageToPath ¶
DownloadImageToPath download the image to the specified path
func (*Client) GetImageSource ¶
GetImageSource get the image source from client attributes (localPath, imageName, registryURL)
func (*Client) SetOptions ¶
func (c *Client) SetOptions(options ClientOptions)
SetOptions sets options used for the docker client