v1

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API represents application API instance

func New

func New(config Config) (*API, error)

New creates new instance of application API

func (*API) CollectPushTags

func (api *API) CollectPushTags(cn *collection.Collection, push PushConfig) (*collection.Collection, error)

CollectPushTags blends passed collection with information fetched from local "push" registry, makes required comparisons between them and spits organized info back as collection.Collection

func (*API) CollectTags

func (api *API) CollectTags(refs []string) (*collection.Collection, error)

CollectTags collects information on tags present in remote registry and local Docker daemon, makes required comparisons between them and spits organized info back as collection.Collection

func (*API) PullTags

func (api *API) PullTags(cn *collection.Collection) error

PullTags compares images from remote registry and Docker daemon and pulls images that match tag spec passed and are not present in Docker daemon.

func (*API) PushTags

func (api *API) PushTags(cn *collection.Collection, push PushConfig) error

PushTags compares images from remote and "push" (usually local) registries, pulls images that are present in remote registry, but are not in "push" one and then [re-]pushes them to the "push" registry.

type Config

type Config struct {
	DockerJSONConfigFile string
	ConcurrentRequests   int
	TraceRequests        bool
	RetryRequests        int
	RetryDelay           time.Duration
	InsecureRegistryEx   string
	VerboseLogging       bool
}

Config holds API instance configuration

type PushConfig

type PushConfig struct {
	Prefix        string
	Registry      string
	UpdateChanged bool
}

PushConfig holds push-specific configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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