tracing

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (c TracedClient) ContainerStop(ctx context.Context, containerID string, timeout time.Duration) error

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 (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

func (c TracedClient) ServerVersion(ctx context.Context) (types.Version, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL