Versions in this module Expand all Collapse all v2 v2.9.2 Jan 30, 2025 Changes in this version + type Client interface + ConfigInspectWithRaw func(ctx context.Context, id string) (swarm.Config, []byte, error) + ConfigList func(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) + ContainerInspect func(ctx context.Context, containerID string) (types.ContainerJSON, error) + ContainerList func(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) + Events func(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error) + Info func(ctx context.Context) (types.Info, error) + NetworkInspect func(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error) + NetworkList func(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) + ServiceList func(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) + TaskList func(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) + func WrapClient(client *client.Client) Client + type ClientMock struct + ConfigsData []swarm.Config + ContainerInspectData map[string]types.ContainerJSON + ContainersData []types.Container + ErrorsChannel chan error + EventsChannel chan events.Message + InfoData types.Info + NetworkInspectData map[string]types.NetworkResource + NetworksData []types.NetworkResource + ServicesData []swarm.Service + TasksData []swarm.Task + func (mock *ClientMock) ConfigInspectWithRaw(ctx context.Context, id string) (swarm.Config, []byte, error) + func (mock *ClientMock) ConfigList(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) + func (mock *ClientMock) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) + func (mock *ClientMock) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) + func (mock *ClientMock) Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error) + func (mock *ClientMock) Info(ctx context.Context) (types.Info, error) + func (mock *ClientMock) NetworkInspect(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error) + func (mock *ClientMock) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) + func (mock *ClientMock) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) + func (mock *ClientMock) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) + type Utils interface + GetCurrentContainerID func() (string, error) + func CreateUtils() Utils + type UtilsMock struct + MockGetCurrentContainerID func() (string, error) + func (mock *UtilsMock) GetCurrentContainerID() (string, error)