dockerclient

package
v1.0.12-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OptDisableSnat = "DisableSNAT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Subnet string
}

Config describes subnet/gateway for ipam.

type DockerClient added in v1.0.0

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

DockerClient specifies a client to connect to docker.

func NewDefaultDockerClient added in v1.0.0

func NewDefaultDockerClient(imdsClient *imdsclient.ImdsClient) (*DockerClient, error)

NewDefaultDockerClient create a new docker client.

func NewDockerClient added in v1.0.0

func NewDockerClient(url string) (*DockerClient, error)

NewDockerClient create a new docker client.

func (*DockerClient) CreateNetwork added in v1.0.0

func (dockerClient *DockerClient) CreateNetwork(networkName string, nicInfo *imdsclient.InterfaceInfo, options map[string]interface{}) error

CreateNetwork creates a network using docker network create.

func (*DockerClient) DeleteNetwork added in v1.0.0

func (dockerClient *DockerClient) DeleteNetwork(networkName string) error

DeleteNetwork creates a network using docker network create.

func (*DockerClient) NetworkExists added in v1.0.0

func (dockerClient *DockerClient) NetworkExists(networkName string) error

NetworkExists tries to retrieve a network from docker (if it exists).

type DockerErrorResponse

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

DockerErrorResponse defines the error response retunred by docker.

type IPAM

type IPAM struct {
	Driver string
	Config []Config
}

IPAM describes ipam details

type NetworkConfiguration

type NetworkConfiguration struct {
	Name     string
	Driver   string
	IPAM     IPAM
	Internal bool
	Options  map[string]interface{}
}

NetworkConfiguration describes configuration for docker network create.

Jump to

Keyboard shortcuts

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