Documentation
¶
Index ¶
- func CatFileInDockerImage(c *client.Client, imageName, fileName string) ([]byte, error)
- func GetDockerCompose(dockerComposePath string) (result types.DockerCompose, err error)
- func GetRenderedVolumes(volumes []string, appName string, role string, homeDir string) ([]string, error)
- func ListImages(c *client.Client) ([]string, error)
- func ListRunningContainers(c *client.Client) ([]string, error)
- func PullImage(c *client.Client, image string) error
- func PushImage(c *client.Client, imageName, encodedAuth string) error
- func RunInDockerImage(imageName, command string) (string, error)
- func TagImage(srcImage, targetImage string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatFileInDockerImage ¶
CatFileInDockerImage reads the file fileName inside the given image
func GetDockerCompose ¶
func GetDockerCompose(dockerComposePath string) (result types.DockerCompose, err error)
GetDockerCompose reads docker-compose.yml at the given path and returns the dockerCompose object
func GetRenderedVolumes ¶
func GetRenderedVolumes(volumes []string, appName string, role string, homeDir string) ([]string, error)
GetRenderedVolumes returns the rendered paths to the given volumes
func ListImages ¶
ListImages returns the names of all images and an error (if any)
func ListRunningContainers ¶
ListRunningContainers returns the names of running containers and an error (if any)
func RunInDockerImage ¶
RunInDockerImage runs the given command in a new writeable container layer over the given image, removes the container when the command exits, and returns the output string and an error if any
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.