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 types.ContainerListOptions) ([]types.Container, error)
- func (c TracedClient) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
- func (c TracedClient) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
- func (c TracedClient) ContainerStart(ctx context.Context, id string, options types.ContainerStartOptions) 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, types.ContainerPathStat, 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 types.ImagePullOptions) (io.ReadCloser, error)
- func (c TracedClient) Info(ctx context.Context) (types.Info, error)
- func (c TracedClient) NetworkConnect(ctx context.Context, networkID, containerID string, ...) error
- func (c TracedClient) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
- func (c TracedClient) NetworkInspect(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error)
- func (c TracedClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, 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 types.ContainerListOptions) ([]types.Container, error)
func (TracedClient) ContainerLogs ¶
func (c TracedClient) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
func (TracedClient) ContainerRemove ¶
func (c TracedClient) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
func (TracedClient) ContainerStart ¶
func (c TracedClient) ContainerStart(ctx context.Context, id string, options types.ContainerStartOptions) 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, types.ContainerPathStat, 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 types.ImagePullOptions) (io.ReadCloser, 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 types.NetworkCreate) (types.NetworkCreateResponse, error)
func (TracedClient) NetworkInspect ¶
func (c TracedClient) NetworkInspect( ctx context.Context, networkID string, options types.NetworkInspectOptions, ) (types.NetworkResource, error)
func (TracedClient) NetworkList ¶
func (c TracedClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, 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.