service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerService

type ContainerService interface {
	ListContainers(ctx context.Context, options containerTypes.ListOptions) ([]containerTypes.Summary, error)
	StartContainer(ctx context.Context, containerID string, options containerTypes.StartOptions) error
	StopContainer(ctx context.Context, containerID string, options containerTypes.StopOptions) error
	RemoveContainer(ctx context.Context, containerID string, options containerTypes.RemoveOptions) error
	ContainerLogs(ctx context.Context, containerID string, options containerTypes.LogsOptions) (io.ReadCloser, error)
	ContainerInspect(ctx context.Context, containerID string) (containerTypes.InspectResponse, error)
}

ContainerService defines the interface for container-related operations.

func NewContainerService

func NewContainerService(client dockerClient.APIClient) ContainerService

NewContainerService creates a new ContainerService.

type ImageService

type ImageService interface {
	ImageList(ctx context.Context, options imageTypes.ListOptions) ([]imageTypes.Summary, error)
	ImageRemove(ctx context.Context, imageID string, options imageTypes.RemoveOptions) ([]imageTypes.DeleteResponse, error)
}

ImageService defines the interface for image-related operations.

func NewImageService

func NewImageService(client dockerClient.APIClient) ImageService

NewImageService creates a new ImageService.

type NetworkService

type NetworkService interface {
	NetworkList(ctx context.Context, options networkTypes.ListOptions) ([]networkTypes.Summary, error)
	NetworkInspect(ctx context.Context, networkID string, options networkTypes.InspectOptions) (networkTypes.Inspect, error)
}

NetworkService defines the interface for network-related operations.

func NewNetworkService

func NewNetworkService(client dockerClient.APIClient) NetworkService

NewNetworkService creates a new NetworkService.

type SystemService

type SystemService interface {
	Info(ctx context.Context) (system.Info, error)
	DiskUsage(ctx context.Context, options types.DiskUsageOptions) (types.DiskUsage, error)
	ContainersPrune(ctx context.Context, pruneFilters filters.Args) (container.PruneReport, error)
	NetworksPrune(ctx context.Context, pruneFilters filters.Args) (network.PruneReport, error)
	ImagesPrune(ctx context.Context, pruneFilters filters.Args) (image.PruneReport, error)
	VolumesPrune(ctx context.Context, pruneFilters filters.Args) (volume.PruneReport, error)
}

SystemService defines the interface for system-related operations.

func NewSystemService

func NewSystemService(client dockerClient.APIClient) SystemService

NewSystemService creates a new SystemService.

type VolumeService

type VolumeService interface {
	VolumeList(ctx context.Context, options volumeTypes.ListOptions) (volumeTypes.ListResponse, error)
	VolumeRemove(ctx context.Context, volumeID string, force bool) error
}

VolumeService defines the interface for volume-related operations.

func NewVolumeService

func NewVolumeService(client dockerClient.APIClient) VolumeService

NewVolumeService creates a new VolumeService.

Jump to

Keyboard shortcuts

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