Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InflateImage ¶ added in v0.8.0
func InflateImage(ctx context.Context, config InflateImageConfig) error
InflateImage downloads and inflates docker image in the current directory.
func RunContainer ¶ added in v0.9.0
func RunContainer(ctx context.Context, config RunContainerConfig) error
RunContainer runs container based on docker image.
Types ¶
type InflateImageConfig ¶ added in v0.9.0
InflateImageConfig is the configuration of docker image inflation.
type RunContainerConfig ¶ added in v0.9.0
type RunContainerConfig struct {
CacheDir string
Image string
Tag string
Name string
EnvVars map[string]string
User string
WorkingDir string
Entrypoint []string
Args []string
StdOut io.Writer
StdErr io.Writer
}
RunContainerConfig is the configuration of running docker container.
Click to show internal directories.
Click to hide internal directories.