Version: v1.9.9 Latest Latest

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 11 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Config

type Config struct {
	ImageName        string
	User             string
	Password         string
	Token            string
	InsecureTLS      bool
	InsecureRegistry bool
	Timeout          time.Duration
	PlatformOS       string
	PlatformArch     string

type FsLayer

type FsLayer struct {
	BlobSum string

FsLayer represents a layer in docker image

type Image

type Image struct {
	Registry string
	Name     string
	Tag      string
	FsLayers []FsLayer
	Token    string
	// contains filtered or unexported fields

Image represents Docker image

func NewImage

func NewImage(conf *Config) (*Image, error)

NewImage parses image name which could be the ful name registry:port/name:tag or in any other shorter forms and creates docker image entity without information about layers

func (*Image) AnalyzedLayerName

func (i *Image) AnalyzedLayerName() string

func (*Image) LayerName

func (i *Image) LayerName(index int) string

func (*Image) Pull

func (i *Image) Pull() error

Pull retrieves information about layers from docker registry. It gets docker registry token if needed.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL