docker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegistry = "index.docker.io"
	LocalRegistry   = "docker-registry:5000"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	PushLocal     bool     // Push to local registry
	LocalRegistry string   //Local docker registry
	Remote        string   // Git remote URL
	Name          string   // Docker build using default named tag
	Dockerfile    string   // Docker build Dockerfile
	Context       string   // Docker build context
	Tags          []string // Docker build tags
	Args          []string // Docker build args
	ArgsEnv       []string // Docker build args from env
	Target        string   // Docker build target
	Squash        bool     // Docker build squash
	Pull          bool     // Docker build pull
	Compress      bool     // Docker build compress
	Repo          string   // Docker build repository
	Registry      string   // Docker push registry address
	LabelSchema   []string // Label schema map
	NoCache       bool     // Docker build no-cache
}

Build defines Docker build parameters.

type Daemon

type Daemon struct {
	PushLocal     bool     // Push to local registry
	LocalRegistry string   //Local docker registry
	Registry      string   // Docker registry
	Mirror        string   // Docker registry mirror
	Insecure      bool     // Docker daemon enable insecure registries
	StorageDriver string   // Docker daemon storage driver
	StoragePath   string   // Docker daemon storage path
	Disabled      bool     // DOcker daemon is disabled (already running)
	Debug         bool     // Docker daemon started in debug mode
	Bip           string   // Docker daemon network bridge IP address
	DNS           []string // Docker daemon dns server
	DNSSearch     []string // Docker daemon dns search domain
	MTU           string   // Docker daemon mtu setting
	IPv6          bool     // Docker daemon IPv6 networking
	Experimental  bool     // Docker daemon enable experimental mode
}

Daemon defines Docker daemon parameters.

type Login

type Login struct {
	Registry string // Docker registry address
	Username string // Docker registry username
	Password string // Docker registry password
	Email    string // Docker registry email
}

Login defines Docker login parameters.

type Plugin

type Plugin struct {
	Login      Login  // Docker login configuration
	Build      Build  // Docker build configuration
	Daemon     Daemon // Docker daemon configuration
	PushRemote bool   // Docker push is skipped
	Cleanup    bool   // Docker purge is enabled
}

Plugin defines the Docker plugin parameters.

func (Plugin) Exec

func (p Plugin) Exec() error

Exec executes the plugin step

Jump to

Keyboard shortcuts

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