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