dockerclient

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 7 Imported by: 0

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

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

DockerClient specifies a client to connect to docker.

func NewDefaultDockerClient

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

NewDefaultDockerClient create a new docker client.

func NewDockerClient

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

NewDockerClient create a new docker client.

func (*DockerClient) CreateNetwork

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

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

DeleteNetwork creates a network using docker network create.

func (*DockerClient) NetworkExists

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