common

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 4 Imported by: 69

Documentation

Overview

Package common provides misc types and variables.

Index

Constants

View Source
const (
	NoCompression = iota
	GzipCompression
)
View Source
const (
	// AppcDockerOriginalName is the unmodified name this image was originally
	// referenced by for fetching, e.g. something like "nginx:tag" or
	// "quay.io/user/image:latest" This is identical in most cases to
	// 'registryurl/repository:tag' but may differ for the default Dockerhub
	// registry or if the tag was inferred as latest.
	AppcDockerOriginalName  = "appc.io/docker/originalname"
	AppcDockerRegistryURL   = "appc.io/docker/registryurl"
	AppcDockerRepository    = "appc.io/docker/repository"
	AppcDockerTag           = "appc.io/docker/tag"
	AppcDockerImageID       = "appc.io/docker/imageid"
	AppcDockerParentImageID = "appc.io/docker/parentimageid"
	AppcDockerEntrypoint    = "appc.io/docker/entrypoint"
	AppcDockerCmd           = "appc.io/docker/cmd"
)

Variables

This section is empty.

Functions

func ValidateLayerId added in v0.13.0

func ValidateLayerId(id string) error

ValidateLayerId validates a layer ID

Types

type Compression

type Compression int

type ErrSeveralImages

type ErrSeveralImages struct {
	Msg    string
	Images []string
}

func (*ErrSeveralImages) Error

func (e *ErrSeveralImages) Error() string

type InsecureConfig added in v0.11.0

type InsecureConfig struct {
	SkipVerify bool
	AllowHTTP  bool
}

InsecureConfig represents the different insecure options available

type ParsedDockerURL added in v0.9.1

type ParsedDockerURL struct {
	OriginalName string
	IndexURL     string
	ImageName    string
	Tag          string
	Digest       string
}

ParsedDockerURL represents a parsed Docker URL.

func ParseDockerURL added in v0.9.1

func ParseDockerURL(arg string) (*ParsedDockerURL, error)

ParseDockerURL takes a Docker URL and returns a ParsedDockerURL with its index URL, image name, and tag.

Jump to

Keyboard shortcuts

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