Documentation ¶
Index ¶
- Constants
- type BackendWriter
- type Dockerv2
- type ManifestEntry
- type Options
- type SimpleDocker
- func (*SimpleDocker) BuildImage(opts Options) error
- func (*SimpleDocker) CopyImage(src, dst string) error
- func (*SimpleDocker) DownloadImage(opts Options) error
- func (*SimpleDocker) ExportImage(opts Options) error
- func (b *SimpleDocker) ExtractRootfs(opts Options, keepPerms bool) error
- func (*SimpleDocker) ImageAvailable(imagename string) bool
- func (s *SimpleDocker) ImageDefinitionToTar(opts Options) error
- func (*SimpleDocker) ImageExists(imagename string) bool
- func (*SimpleDocker) Push(opts Options) error
- func (*SimpleDocker) RemoveImage(opts Options) error
- type SimpleImg
- func (*SimpleImg) BuildImage(opts Options) error
- func (*SimpleImg) CopyImage(src, dst string) error
- func (*SimpleImg) DownloadImage(opts Options) error
- func (*SimpleImg) ExportImage(opts Options) error
- func (s *SimpleImg) ExtractRootfs(opts Options, keepPerms bool) error
- func (*SimpleImg) ImageAvailable(imagename string) bool
- func (s *SimpleImg) ImageDefinitionToTar(opts Options) error
- func (*SimpleImg) ImageExists(imagename string) bool
- func (*SimpleImg) Push(opts Options) error
- func (*SimpleImg) RemoveImage(opts Options) error
Constants ¶
View Source
const ( ImgBackend = "img" DockerBackend = "docker" Dockerv2Backend = "dockerv2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendWriter ¶
func NewBackendWriter ¶
func NewBackendWriter(buffered bool) *BackendWriter
func (*BackendWriter) Close ¶
func (b *BackendWriter) Close() error
func (*BackendWriter) GetCombinedOutput ¶
func (b *BackendWriter) GetCombinedOutput() string
type Dockerv2 ¶
type Dockerv2 struct {
*SimpleDocker
}
func NewDockerv2Backend ¶
func NewDockerv2Backend() *Dockerv2
func (*Dockerv2) ExportImage ¶
func (*Dockerv2) ExtractRootfs ¶
func (*Dockerv2) ImageDefinitionToTar ¶
type ManifestEntry ¶
type ManifestEntry struct {
Layers []string `json:"Layers"`
}
type SimpleDocker ¶
type SimpleDocker struct{}
func NewSimpleDockerBackend ¶
func NewSimpleDockerBackend() *SimpleDocker
func (*SimpleDocker) BuildImage ¶
func (*SimpleDocker) BuildImage(opts Options) error
TODO: Missing still: labels, and build args expansion
func (*SimpleDocker) CopyImage ¶
func (*SimpleDocker) CopyImage(src, dst string) error
func (*SimpleDocker) DownloadImage ¶
func (*SimpleDocker) DownloadImage(opts Options) error
func (*SimpleDocker) ExportImage ¶
func (*SimpleDocker) ExportImage(opts Options) error
func (*SimpleDocker) ExtractRootfs ¶
func (b *SimpleDocker) ExtractRootfs(opts Options, keepPerms bool) error
func (*SimpleDocker) ImageAvailable ¶
func (*SimpleDocker) ImageAvailable(imagename string) bool
func (*SimpleDocker) ImageDefinitionToTar ¶
func (s *SimpleDocker) ImageDefinitionToTar(opts Options) error
func (*SimpleDocker) ImageExists ¶
func (*SimpleDocker) ImageExists(imagename string) bool
func (*SimpleDocker) Push ¶
func (*SimpleDocker) Push(opts Options) error
func (*SimpleDocker) RemoveImage ¶
func (*SimpleDocker) RemoveImage(opts Options) error
type SimpleImg ¶
type SimpleImg struct{}
func NewSimpleImgBackend ¶
func NewSimpleImgBackend() *SimpleImg
func (*SimpleImg) BuildImage ¶
TODO: Missing still: labels, and build args expansion
func (*SimpleImg) DownloadImage ¶
func (*SimpleImg) ExportImage ¶
func (*SimpleImg) ExtractRootfs ¶
ExtractRootfs extracts the docker image content inside the destination
func (*SimpleImg) ImageAvailable ¶
func (*SimpleImg) ImageDefinitionToTar ¶
func (*SimpleImg) ImageExists ¶
ImageExists check if the given image is available locally
func (*SimpleImg) RemoveImage ¶
Click to show internal directories.
Click to hide internal directories.