types

package
v0.0.0-...-e426c15 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CommunityEngineImage is the repo name for the community engine
	CommunityEngineImage = "engine-community"

	// EnterpriseEngineImage is the repo name for the enterprise engine
	EnterpriseEngineImage = "engine-enterprise"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableVersions

type AvailableVersions struct {
	Downgrades []DockerVersion
	Patches    []DockerVersion
	Upgrades   []DockerVersion
}

AvailableVersions groups the available versions which were discovered

type ContainerizedClient

type ContainerizedClient interface {
	Close() error
	ActivateEngine(ctx context.Context,
		opts EngineInitOptions,
		out OutStream,
		authConfig *types.AuthConfig,
		healthfn func(context.Context) error) error
	InitEngine(ctx context.Context,
		opts EngineInitOptions,
		out OutStream,
		authConfig *types.AuthConfig,
		healthfn func(context.Context) error) error
	DoUpdate(ctx context.Context,
		opts EngineInitOptions,
		out OutStream,
		authConfig *types.AuthConfig,
		healthfn func(context.Context) error) error
	GetEngineVersions(ctx context.Context, registryClient registryclient.RegistryClient, currentVersion, imageName string) (AvailableVersions, error)
	GetCurrentEngineVersion(ctx context.Context) (EngineInitOptions, error)
	RemoveEngine(ctx context.Context) error
}

ContainerizedClient can be used to manage the lifecycle of dockerd running as a container on containerd.

type DockerVersion

type DockerVersion struct {
	ver.Version
	Tag string
}

DockerVersion wraps a semantic version to retain the original tag since the docker date based versions don't strictly follow semantic versioning (leading zeros, etc.)

type EngineInitOptions

type EngineInitOptions struct {
	RegistryPrefix string
	EngineImage    string
	EngineVersion  string
	ConfigFile     string
	Scope          string
}

EngineInitOptions contains the configuration settings use during initialization of a containerized docker engine

type OutStream

type OutStream interface {
	io.Writer
	FD() uintptr
	IsTerminal() bool
}

OutStream is an output stream used to write normal program output.

type Update

type Update struct {
	Type    string
	Version string
	Notes   string
}

Update stores available updates for rendering in a table

Jump to

Keyboard shortcuts

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