docker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	Repositories []string `json:"repositories"`
}

func GetCatalog

func GetCatalog(repoURL string, client *http.Client) (*Catalog, error)

type Digest

type Digest struct {
	MediaType string
	Size      int
	Digest    string
}

type Image

type Image struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

func GetAllImages

func GetAllImages(repoURL string, client *http.Client) ([]*Image, error)

GetAllImages returns all images in the repo

func GetImage

func GetImage(repoURL, name string, client *http.Client) (*Image, error)

func (Image) String

func (i Image) String() string

type Manifest

type Manifest struct {
	SchemaVersion int
	Config        Digest
	Layers        []Digest
}

func GetImageManifest

func GetImageManifest(repoURL, image, tag string, client *http.Client) (*Manifest, error)

func (Manifest) String

func (m Manifest) String() string

Jump to

Keyboard shortcuts

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