Documentation ¶
Index ¶
- type TracedClient
- func (c TracedClient) Close() error
- func (c TracedClient) ContainerCreate(ctx context.Context, config *container.Config, ...) (container.CreateResponse, error)
- func (c TracedClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
- func (c TracedClient) ContainerList(ctx context.Context, options container.ListOptions) ([]types.Container, error)
- func (c TracedClient) ContainerLogs(ctx context.Context, container string, options container.LogsOptions) (io.ReadCloser, error)
- func (c TracedClient) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error
- func (c TracedClient) ContainerStart(ctx context.Context, id string, options container.StartOptions) error
- func (c TracedClient) ContainerStop(ctx context.Context, containerID string, timeout time.Duration) error
- func (c TracedClient) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.WaitResponse, <-chan error)
- func (c TracedClient) CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, container.PathStat, error)
- func (c TracedClient) DistributionInspect(ctx context.Context, imageID string, authToken string) (registry.DistributionInspect, error)
- func (c TracedClient) ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspect, []byte, error)
- func (c TracedClient) ImagePull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error)
- func (c TracedClient) Info(ctx context.Context) (docker_sys.Info, error)
- func (c TracedClient) NetworkConnect(ctx context.Context, networkID, containerID string, ...) error
- func (c TracedClient) NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error)
- func (c TracedClient) NetworkInspect(ctx context.Context, networkID string, options network.InspectOptions) (network.Inspect, error)
- func (c TracedClient) NetworkList(ctx context.Context, options network.ListOptions) ([]network.Inspect, error)
- func (c TracedClient) NetworkRemove(ctx context.Context, networkID string) error
- func (c TracedClient) ServerVersion(ctx context.Context) (types.Version, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TracedClient ¶
type TracedClient struct {
// contains filtered or unexported fields
}
TracedClient is a client for Docker that also traces requests being made to it. The names of traces are inspired by the docker CLI, so ContainerRemove becomes `docker.container.rm` which would be `docker container rm` on the command line.
func NewTracedClient ¶
func NewTracedClient() (TracedClient, error)
func (TracedClient) Close ¶
func (c TracedClient) Close() error
func (TracedClient) ContainerCreate ¶
func (c TracedClient) ContainerCreate( ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, name string, ) (container.CreateResponse, error)
func (TracedClient) ContainerInspect ¶
func (c TracedClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
func (TracedClient) ContainerList ¶
func (c TracedClient) ContainerList(ctx context.Context, options container.ListOptions) ([]types.Container, error)
func (TracedClient) ContainerLogs ¶
func (c TracedClient) ContainerLogs(ctx context.Context, container string, options container.LogsOptions) (io.ReadCloser, error)
func (TracedClient) ContainerRemove ¶
func (c TracedClient) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error
func (TracedClient) ContainerStart ¶
func (c TracedClient) ContainerStart(ctx context.Context, id string, options container.StartOptions) error
func (TracedClient) ContainerStop ¶
func (TracedClient) ContainerWait ¶
func (c TracedClient) ContainerWait( ctx context.Context, containerID string, condition container.WaitCondition, ) (<-chan container.WaitResponse, <-chan error)
func (TracedClient) CopyFromContainer ¶
func (c TracedClient) CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, container.PathStat, error)
func (TracedClient) DistributionInspect ¶ added in v0.3.24
func (c TracedClient) DistributionInspect(ctx context.Context, imageID string, authToken string) (registry.DistributionInspect, error)
func (TracedClient) ImageInspectWithRaw ¶
func (c TracedClient) ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspect, []byte, error)
func (TracedClient) ImagePull ¶
func (c TracedClient) ImagePull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error)
func (TracedClient) Info ¶
func (c TracedClient) Info(ctx context.Context) (docker_sys.Info, error)
func (TracedClient) NetworkConnect ¶
func (c TracedClient) NetworkConnect(ctx context.Context, networkID, containerID string, config *network.EndpointSettings) error
func (TracedClient) NetworkCreate ¶
func (c TracedClient) NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error)
func (TracedClient) NetworkInspect ¶
func (c TracedClient) NetworkInspect( ctx context.Context, networkID string, options network.InspectOptions, ) (network.Inspect, error)
func (TracedClient) NetworkList ¶
func (c TracedClient) NetworkList(ctx context.Context, options network.ListOptions) ([]network.Inspect, error)
func (TracedClient) NetworkRemove ¶
func (c TracedClient) NetworkRemove(ctx context.Context, networkID string) error
func (TracedClient) ServerVersion ¶ added in v0.3.24
Click to show internal directories.
Click to hide internal directories.