Documentation ¶
Index ¶
- Constants
- func CreateExportCommand(version string) (*exec.Cmd, error)
- func GetOpenShiftImageNames(version string) []string
- type DockerImageHandler
- func (handler *DockerImageHandler) AreImagesCached(config *ImageCacheConfig) bool
- func (handler *DockerImageHandler) ExportImages(config *ImageCacheConfig) error
- func (handler *DockerImageHandler) ImportImages(config *ImageCacheConfig) error
- func (handler *DockerImageHandler) IsPulled(image string) (bool, error)
- type ImageCacheConfig
- type ImageHandler
- type ImageMissStrategy
Constants ¶
View Source
const ( // Repository name seperator for container images RepositorySeparator = '/' // Tag separator for container images TagSeparator = ':' // Used to separate image name parts in a single file name FileSeparator = "@" )
Variables ¶
This section is empty.
Functions ¶
func GetOpenShiftImageNames ¶
GetOpenShiftImageNames returns the full images names for the images requires for a fully functioning OpenShift instance
Types ¶
type DockerImageHandler ¶
type DockerImageHandler struct {
// contains filtered or unexported fields
}
func NewDockerImageHandler ¶
func NewDockerImageHandler(driver drivers.Driver) (*DockerImageHandler, error)
func (*DockerImageHandler) AreImagesCached ¶
func (handler *DockerImageHandler) AreImagesCached(config *ImageCacheConfig) bool
func (*DockerImageHandler) ExportImages ¶
func (handler *DockerImageHandler) ExportImages(config *ImageCacheConfig) error
func (*DockerImageHandler) ImportImages ¶
func (handler *DockerImageHandler) ImportImages(config *ImageCacheConfig) error
type ImageCacheConfig ¶
type ImageCacheConfig struct { HostCacheDir string CachedImages []string Out io.Writer ImageMissStrategy ImageMissStrategy }
type ImageHandler ¶
type ImageHandler interface { // Imports cached images from the host into the Docker daemon of the VM. ImportImages(config *ImageCacheConfig) error // Exports the images specified as part of the ImageCacheConfig from the VM to the host. ExportImages(config *ImageCacheConfig) error // AreImagesCached returns true if all images specified in the config are cached, false otherwise. AreImagesCached(config *ImageCacheConfig) bool }
ImageHandler is responsible for the import and export of images into the Docker daemon of the VM
Click to show internal directories.
Click to hide internal directories.