Documentation ¶
Index ¶
Constants ¶
View Source
const (
OptDisableSnat = "DisableSNAT"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.