Documentation ¶
Index ¶
- type Config
- type Docker
- func (d *Docker) AttachEndpoint(ctx *crtclient.ContainerEPContext) error
- func (d *Docker) Deinit()
- func (d *Docker) DetachEndpoint(ctx *crtclient.ContainerEPContext) error
- func (d *Docker) GetContainerID(contName string) string
- func (d *Docker) GetContainerName(contID string) (string, error)
- func (d *Docker) Init(config *crtclient.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Docker struct { Socket string } }
Config contains configuration for docker client
type Docker ¶
type Docker struct {
Client *dockerclient.DockerClient
}
Docker implements crt-client interface for docker
func (*Docker) AttachEndpoint ¶
func (d *Docker) AttachEndpoint(ctx *crtclient.ContainerEPContext) error
AttachEndpoint configures the network access and policies before the container becomes active
func (*Docker) DetachEndpoint ¶
func (d *Docker) DetachEndpoint(ctx *crtclient.ContainerEPContext) error
DetachEndpoint uninstalls the policies and configuration during container stop/remove
func (*Docker) GetContainerID ¶
GetContainerID returns the uuid corresponding to the container name
func (*Docker) GetContainerName ¶
GetContainerName returns the name corresponding to the container uuid
Click to show internal directories.
Click to hide internal directories.