docker

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(ctx context.Context, log *slog.Logger, cfg config.Config) (*Service, error)

func (*Service) BridgeTarget

func (s *Service) BridgeTarget(botID string) string

func (*Service) CheckNetwork

func (s *Service) CheckNetwork(ctx context.Context, req containerapi.NetworkRequest) error

func (*Service) Close

func (s *Service) Close() error

func (*Service) CommitSnapshot

func (s *Service) CommitSnapshot(ctx context.Context, req containerapi.CommitSnapshotRequest) error

func (*Service) DeleteContainer

func (s *Service) DeleteContainer(ctx context.Context, id string, opts *containerapi.DeleteContainerOptions) error

func (*Service) DeleteImage

func (s *Service) DeleteImage(ctx context.Context, ref string, _ *containerapi.DeleteImageOptions) error

func (*Service) DeleteTask

func (s *Service) DeleteTask(ctx context.Context, id string, opts *containerapi.DeleteTaskOptions) error

func (*Service) GetContainer

func (s *Service) GetContainer(ctx context.Context, id string) (containerapi.ContainerInfo, error)

func (*Service) GetContainerMetrics

func (s *Service) GetContainerMetrics(ctx context.Context, id string) (containerapi.ContainerMetrics, error)

func (*Service) GetImage

func (s *Service) GetImage(ctx context.Context, ref string) (containerapi.ImageInfo, error)

func (*Service) GetTaskInfo

func (s *Service) GetTaskInfo(ctx context.Context, id string) (containerapi.TaskInfo, error)

func (*Service) ListContainers

func (s *Service) ListContainers(ctx context.Context) ([]containerapi.ContainerInfo, error)

func (*Service) ListContainersByLabel

func (s *Service) ListContainersByLabel(ctx context.Context, key, value string) ([]containerapi.ContainerInfo, error)

func (*Service) ListImages

func (s *Service) ListImages(ctx context.Context) ([]containerapi.ImageInfo, error)

func (*Service) ListSnapshots

func (*Service) ListTasks

func (*Service) PrepareSnapshot

func (s *Service) PrepareSnapshot(ctx context.Context, req containerapi.PrepareSnapshotRequest) error

func (*Service) PullImage

func (*Service) RemoveNetwork

func (s *Service) RemoveNetwork(ctx context.Context, req containerapi.NetworkRequest) error

func (*Service) ResolveRemoteDigest

func (*Service) ResolveRemoteDigest(context.Context, string) (string, error)

func (*Service) SetupNetwork

func (*Service) StartContainer

func (s *Service) StartContainer(ctx context.Context, id string, _ *containerapi.StartTaskOptions) error

func (*Service) StopContainer

func (s *Service) StopContainer(ctx context.Context, id string, opts *containerapi.StopTaskOptions) error

Jump to

Keyboard shortcuts

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