Documentation ¶
Index ¶
- func CleanupContainer(ctx context.Context, cli *dockerapi.Client, containerID string) error
- func ContainerIP(cont types.ContainerJSON, netName string) (string, error)
- func ContainerLogs(ctx context.Context, cli *dockerapi.Client, id string, writer io.Writer) error
- func CopyToContainer(ctx context.Context, client *dockerapi.Client, containerID, from, to string) error
- func SetupNetwork(ctx context.Context, cli *dockerapi.Client, netName, cidr string) (*types.NetworkResource, error)
- func Start(ctx context.Context, client *dockerapi.Client, opts RunOptions) (*types.ContainerJSON, error)
- func Wait(api *dockerapi.Client, containerID string) error
- type RunOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupContainer ¶
func ContainerIP ¶
func ContainerIP(cont types.ContainerJSON, netName string) (string, error)
func ContainerLogs ¶
func CopyToContainer ¶
func SetupNetwork ¶
func SetupNetwork(ctx context.Context, cli *dockerapi.Client, netName, cidr string) (*types.NetworkResource, error)
Create a docker private network or if one already exists with the name netName, use that one.
func Start ¶
func Start(ctx context.Context, client *dockerapi.Client, opts RunOptions) (*types.ContainerJSON, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.