file

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL