Documentation ¶
Index ¶
- Constants
- func GenerateACI(layerNumber int, layerData types.DockerImageData, ...) (string, *schema.ImageManifest, error)
- func GenerateManifest(layerData types.DockerImageData, dockerURL *types.ParsedDockerURL) (*schema.ImageManifest, error)
- func GetAuthInfo(indexServer string) (string, string, error)
- func ParseDockerURL(arg string) *types.ParsedDockerURL
- func SplitReposName(reposName string) (string, string)
- func ValidateACI(aciPath string) error
- func WriteManifest(outputWriter *tar.Writer, manifest schema.ImageManifest) error
- func WriteRootfsDir(tarWriter *tar.Writer) error
- type Compression
Constants ¶
View Source
const ( NoCompression = iota GzipCompression )
Variables ¶
This section is empty.
Functions ¶
func GenerateACI ¶
func GenerateACI(layerNumber int, layerData types.DockerImageData, dockerURL *types.ParsedDockerURL, outputDir string, layerFile *os.File, curPwl []string, compression Compression) (string, *schema.ImageManifest, error)
func GenerateManifest ¶
func GenerateManifest(layerData types.DockerImageData, dockerURL *types.ParsedDockerURL) (*schema.ImageManifest, error)
func GetAuthInfo ¶
GetDockercfgAuth reads a ~/.dockercfg file and returns the username and password of the given docker index server.
func ParseDockerURL ¶
func ParseDockerURL(arg string) *types.ParsedDockerURL
func SplitReposName ¶
splitReposName breaks a reposName into an index name and remote name
func ValidateACI ¶
func WriteManifest ¶
func WriteManifest(outputWriter *tar.Writer, manifest schema.ImageManifest) error
func WriteRootfsDir ¶
Types ¶
type Compression ¶ added in v1.0.0
type Compression int
Click to show internal directories.
Click to hide internal directories.