docker

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Name          string
	Tag           string
	MIMEType      string
	Digest        digest.Digest
	Created       *time.Time
	DockerVersion string
	Labels        map[string]string
	Architecture  string
	Os            string
	Layers        []string
}

type RegistryClient

type RegistryClient struct {
	// contains filtered or unexported fields
}

RegistryClient represents an active docker registry object

func NewRegistryClient

func NewRegistryClient(opts RegistryOptions) (*RegistryClient, error)

NewRegistryClient creates new docker registry client instance

func (*RegistryClient) Manifest

func (c *RegistryClient) Manifest(image registry.Image) (Manifest, error)

Manifest returns the manifest for a specific image

func (*RegistryClient) Tags

func (c *RegistryClient) Tags(opts TagsOptions) (*Tags, error)

Tags returns tags of a Docker repository

type RegistryOptions

type RegistryOptions struct {
	Os          string
	Arch        string
	Username    string
	Password    string
	InsecureTLS bool
	Timeout     time.Duration
}

RegistryOptions holds docker registry object options

type Tags

type Tags struct {
	List        []string
	NotIncluded int
	Excluded    int
	Total       int
}

type TagsOptions added in v0.4.1

type TagsOptions struct {
	Image   registry.Image
	Max     int
	Include []string
	Exclude []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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