common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: Apache-2.0, Apache-2.0, MIT Imports: 21 Imported by: 0

Documentation

Index

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

func GetAuthInfo(indexServer string) (string, string, error)

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

func SplitReposName(reposName string) (string, string)

splitReposName breaks a reposName into an index name and remote name

func ValidateACI

func ValidateACI(aciPath string) error

func WriteManifest

func WriteManifest(outputWriter *tar.Writer, manifest schema.ImageManifest) error

func WriteRootfsDir

func WriteRootfsDir(tarWriter *tar.Writer) error

Types

type Compression added in v1.0.0

type Compression int

Jump to

Keyboard shortcuts

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