Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultCachePath = "./tmp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Hostname string `json:",omitempty"` // Hostname User string `json:",omitempty"` // User that will run the command(s) inside the container, also support user:group AttachStdin bool // Attach the standard input, makes possible user interaction Env []string `json:",omitempty"` // List of environment variable to set in the container Cmd []string `json:",omitempty"` // Command to run when starting the container Volumes map[string]struct{} `json:",omitempty"` // List of volumes (mounts) used for the container WorkingDir string `json:",omitempty"` Entrypoint []string `json:",omitempty"` Labels map[string]string `json:",omitempty"` }
type Image ¶
type Image struct { ID string `json:"Id"` RepoTags []string RepoDigests []string Comment string Created string Author string Config *Config Architecture string ContainerConfig *Config `json:"container_config"` Os string Size int64 // Size is the unpacked size of the image RootFS RootFS Metadata ImageMetadata }
type ImageMetadata ¶
type ImageOptions ¶
type ImageOptions struct { ImageName string TarballPath string CachePath string // Optional, path to cache the image }
PullImageOptions holds the options for pulling an image.
Click to show internal directories.
Click to hide internal directories.