mcndockerclient

package
v0.15.0-rancher4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainer added in v0.5.5

func CreateContainer(dockerHost DockerHost, config *dockerclient.ContainerConfig, name string) error

CreateContainer creates a docker container.

func DockerClient

func DockerClient(dockerHost DockerHost) (*dockerclient.DockerClient, error)

DockerClient creates a docker client for a given host.

func DockerVersion

func DockerVersion(host DockerHost) (string, error)

Types

type AuthOptionser

type AuthOptionser interface {
	// AuthOptions returns the authOptions
	AuthOptions() *auth.Options
}

type DockerHost

type DockerHost interface {
	URLer
	AuthOptionser
}

type DockerVersioner

type DockerVersioner interface {
	DockerVersion(host DockerHost) (string, error)
}
var CurrentDockerVersioner DockerVersioner = &defaultDockerVersioner{}

type FakeDockerVersioner

type FakeDockerVersioner struct {
	Version string
	Err     error
}

func (*FakeDockerVersioner) DockerVersion

func (dv *FakeDockerVersioner) DockerVersion(host DockerHost) (string, error)

type RemoteDocker added in v0.5.5

type RemoteDocker struct {
	HostURL    string
	AuthOption *auth.Options
}

func (*RemoteDocker) AuthOptions added in v0.5.5

func (rd *RemoteDocker) AuthOptions() *auth.Options

AuthOptions returns the authOptions

func (*RemoteDocker) URL added in v0.5.5

func (rd *RemoteDocker) URL() (string, error)

URL returns the Docker host URL

type URLer

type URLer interface {
	// URL returns the Docker host URL
	URL() (string, error)
}

Jump to

Keyboard shortcuts

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