dockerutil

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

type ThinImage

type ThinImage struct {
	Version    string           `json:"version"`
	MinVersion string           `json:"min_version,omitempty"`
	Origin     string           `json:"origin,omitempty"`
	Layers     []ThinImageLayer `json:"layers"`
	Comment    string           `json:"comment,omitempty"`
}

func MakeThinImage

func MakeThinImage(m Manifest, layersMapping map[string]string, origin string) (ThinImage, error)

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.

type ThinImageLayer

type ThinImageLayer struct {
	Digest string `json:"digest"`
	Url    string `json:"url,omitempty"`
}

Jump to

Keyboard shortcuts

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