lib

package
v0.0.0-...-155ec6d Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(dockerRegistryUrl string, imageReference string) (string, error)

func MakeRequestToRegistry

func MakeRequestToRegistry(dockerRegistryUrl, repository, digest string) (*http.Response, error)

func MakeThinImage

func MakeThinImage(m Manifest, repoLocation string, origin string) cvmfsUtil.ThinImage

m is the manifest of the original image repoLocation is where inside the repo we saved the several layers origin is an ecoding fo the original referencese and original registry I believe origin is quite useless but maybe is better to preserv it for ergonomic reasons.

func PullLayers

func PullLayers(dockerRegistryUrl, inputReference, repository, subdirectory string) error

Types

type ConfigType

type ConfigType struct {
	MediaType string
	Size      int
	Digest    string
}

type Layer

type Layer struct {
	MediaType string
	Size      int
	Digest    string
}

type Manifest

type Manifest struct {
	SchemaVersion int
	MediaType     string
	Config        ConfigType
	Layers        []Layer
}

func GetManifest

func GetManifest(dockerRegistryUrl, image string) (Manifest, error)

type TokenMessage

type TokenMessage struct {
	Token string
}

Jump to

Keyboard shortcuts

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