Documentation ¶
Index ¶
- func CreateContainer(dockerHost DockerHost, config *dockerclient.ContainerConfig, name string) error
- func DockerAPIVersion(host DockerHost) (string, error)
- func DockerClient(dockerHost DockerHost) (*dockerclient.DockerClient, error)
- func DockerVersion(host DockerHost) (string, error)
- type AuthOptionser
- type DockerHost
- type DockerVersioner
- type FakeDockerVersioner
- type RemoteDocker
- type URLer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶
func CreateContainer(dockerHost DockerHost, config *dockerclient.ContainerConfig, name string) error
CreateContainer creates a docker container.
func DockerAPIVersion ¶
func DockerAPIVersion(host DockerHost) (string, error)
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 DockerHost ¶
type DockerHost interface { URLer AuthOptionser }
type DockerVersioner ¶
type DockerVersioner interface { DockerVersion(host DockerHost) (string, error) DockerAPIVersion(host DockerHost) (string, error) }
var CurrentDockerVersioner DockerVersioner = &defaultDockerVersioner{}
type FakeDockerVersioner ¶
func (*FakeDockerVersioner) DockerAPIVersion ¶
func (dv *FakeDockerVersioner) DockerAPIVersion(host DockerHost) (string, error)
func (*FakeDockerVersioner) DockerVersion ¶
func (dv *FakeDockerVersioner) DockerVersion(host DockerHost) (string, error)
type RemoteDocker ¶
func (*RemoteDocker) AuthOptions ¶
func (rd *RemoteDocker) AuthOptions() *auth.Options
AuthOptions returns the authOptions
func (*RemoteDocker) URL ¶
func (rd *RemoteDocker) URL() (string, error)
URL returns the Docker host URL
Click to show internal directories.
Click to hide internal directories.