test

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDocker22Config

func GenDocker22Config(destPath string, conf typesV2.ImageConfig, layerHashes []string) (string, error)

func GenDocker22Manifest

func GenDocker22Manifest(destPath, configHash string, layerHashes []string) error

func GenLayers

func GenLayers(destPath string, layers []Layer) ([]string, error)

func GenerateDocker22

func GenerateDocker22(destPath string, img Docker22Image) error

func GetBlob

func GetBlob(t *testing.T, w http.ResponseWriter, r *http.Request, imgPath, imgName, imgRef string)

func GetManifest

func GetManifest(t *testing.T, w http.ResponseWriter, r *http.Request, imgPath, imgName, imgRef, manifestMediaType string)

func RunDockerRegistry

func RunDockerRegistry(t *testing.T, imgPath, imgName, imgRef, manifestMediaType string) *httptest.Server

Types

type Docker22Image

type Docker22Image struct {
	RepoTags []string
	Layers   []Layer
	Config   typesV2.ImageConfig
}

type Layer

type Layer map[*tar.Header][]byte

Jump to

Keyboard shortcuts

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