Documentation
¶
Index ¶
- func Attach(ctx context.Context, client *client.Client, ID string, ...) (types.HijackedResponse, error)
- func Create(ctx context.Context, client *client.Client, ID string, ...) (containertypes.CreateResponse, error)
- func Exec(ctx context.Context, client *client.Client, container string, command string) ([]byte, error)
- func Inspect(ctx context.Context, client *client.Client, container string) (container.InspectResponse, error)
- func Kill(ctx context.Context, client *client.Client, name string) error
- func List(ctx context.Context, client *client.Client) ([]container.Summary, error)
- func Logs(ctx context.Context, client *client.Client, ID string) ([]byte, error)
- func Remove(ctx context.Context, client *client.Client, id string) error
- func Start(ctx context.Context, client *client.Client, ID string, ...) error
- func Stop(ctx context.Context, client *client.Client, name string) error
- func Wait(ctx context.Context, client *client.Client, ID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
func Attach(ctx context.Context, client *client.Client, ID string, options containertypes.AttachOptions) (types.HijackedResponse, error)
Attach will return an attached response to a container.
func Create ¶
func Create(ctx context.Context, client *client.Client, ID string, config containertypes.Config, hostconfig containertypes.HostConfig, networkconfig networktypes.NetworkingConfig) (containertypes.CreateResponse, error)
Create will create a container, but will not run it.
func Exec ¶
func Exec(ctx context.Context, client *client.Client, container string, command string) ([]byte, error)
Exec will run a command in a Docker container and return the output.
func Inspect ¶
func Inspect(ctx context.Context, client *client.Client, container string) (container.InspectResponse, error)
Inspect will return the full container object.
func Logs ¶
Logs will synchronously (blocking, non-concurrently) print logs to stdout and stderr, useful for quick containers with a small amount of output which are expected to exit quickly.
func Start ¶
func Start(ctx context.Context, client *client.Client, ID string, options containertypes.StartOptions) error
Start will run an existing container.
func Wait ¶
func Wait(ctx context.Context, client *client.Client, ID string, condition containertypes.WaitCondition) error
Wait will wait for the specificied container condition.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.