Documentation ¶
Overview ¶
Package file is an implementation of Docker2ACIBackend for files saved via "docker save".
Note: this package is an implementation detail and shouldn't be used outside of docker2aci.
Index ¶
- type FileBackend
- func (lb *FileBackend) BuildACI(layerIDs []string, manhash string, dockerURL *common.ParsedDockerURL, ...) ([]string, []*schema.ImageManifest, error)
- func (lb *FileBackend) BuildACIV22(layerIDs []string, manhash string, dockerURL *common.ParsedDockerURL, ...) ([]string, []*schema.ImageManifest, error)
- func (lb *FileBackend) GetImageInfo(dockerURL string) ([]string, string, *common.ParsedDockerURL, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBackend ¶
type FileBackend struct {
// contains filtered or unexported fields
}
func NewFileBackend ¶
func NewFileBackend(file *os.File, debug, info log.Logger) *FileBackend
func (*FileBackend) BuildACI ¶
func (lb *FileBackend) BuildACI(layerIDs []string, manhash string, dockerURL *common.ParsedDockerURL, outputDir string, tmpBaseDir string, compression common.Compression) ([]string, []*schema.ImageManifest, error)
func (*FileBackend) BuildACIV22 ¶ added in v0.13.0
func (lb *FileBackend) BuildACIV22(layerIDs []string, manhash string, dockerURL *common.ParsedDockerURL, outputDir string, tmpBaseDir string, compression common.Compression) ([]string, []*schema.ImageManifest, error)
func (*FileBackend) GetImageInfo ¶
func (lb *FileBackend) GetImageInfo(dockerURL string) ([]string, string, *common.ParsedDockerURL, error)
GetImageInfo, given the url for a docker image, will return the following: - []string: an ordered list of all layer hashes - string: a unique identifier for this image, like a hash of the manifest - *common.ParsedDockerURL: a parsed docker URL - error: an error if one occurred
Click to show internal directories.
Click to hide internal directories.