apple

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskStatusUnknown = containerapi.TaskStatusUnknown
	TaskStatusCreated = containerapi.TaskStatusCreated
	TaskStatusRunning = containerapi.TaskStatusRunning
	TaskStatusStopped = containerapi.TaskStatusStopped
	TaskStatusPaused  = containerapi.TaskStatusPaused
)

Variables

View Source
var (
	ErrInvalidArgument = containerapi.ErrInvalidArgument
	ErrNotSupported    = containerapi.ErrNotSupported
)

Functions

This section is empty.

Types

type CommitSnapshotRequest

type CommitSnapshotRequest = containerapi.CommitSnapshotRequest

type ContainerInfo

type ContainerInfo = containerapi.ContainerInfo

type ContainerMetrics

type ContainerMetrics = containerapi.ContainerMetrics

type CreateContainerRequest

type CreateContainerRequest = containerapi.CreateContainerRequest

type DeleteContainerOptions

type DeleteContainerOptions = containerapi.DeleteContainerOptions

type DeleteImageOptions

type DeleteImageOptions = containerapi.DeleteImageOptions

type DeleteTaskOptions

type DeleteTaskOptions = containerapi.DeleteTaskOptions

type ImageInfo

type ImageInfo = containerapi.ImageInfo

type ListSnapshotsRequest

type ListSnapshotsRequest = containerapi.ListSnapshotsRequest

type ListTasksOptions

type ListTasksOptions = containerapi.ListTasksOptions

type MountInfo

type MountInfo = containerapi.MountInfo

type NetworkRequest

type NetworkRequest = containerapi.NetworkRequest

type NetworkResult

type NetworkResult = containerapi.NetworkResult

type PrepareSnapshotRequest

type PrepareSnapshotRequest = containerapi.PrepareSnapshotRequest

type PullImageOptions

type PullImageOptions = containerapi.PullImageOptions

type RuntimeInfo

type RuntimeInfo = containerapi.RuntimeInfo

type Service

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

func NewService

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

func (*Service) CheckNetwork

func (*Service) CheckNetwork(context.Context, NetworkRequest) error

func (*Service) Close

func (s *Service) Close() error

func (*Service) CommitSnapshot

func (*Service) CreateContainer

func (s *Service) CreateContainer(ctx context.Context, req CreateContainerRequest) (ContainerInfo, error)

func (*Service) DeleteContainer

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

func (*Service) DeleteImage

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

func (*Service) DeleteTask

func (*Service) GetContainer

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

func (*Service) GetContainerMetrics

func (*Service) GetContainerMetrics(context.Context, string) (ContainerMetrics, error)

func (*Service) GetImage

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

func (*Service) GetTaskInfo

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

func (*Service) ListContainers

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

func (*Service) ListContainersByLabel

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

func (*Service) ListImages

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

func (*Service) ListSnapshots

func (*Service) ListTasks

func (s *Service) ListTasks(ctx context.Context, opts *ListTasksOptions) ([]TaskInfo, error)

func (*Service) PrepareSnapshot

func (*Service) PrepareSnapshot(context.Context, PrepareSnapshotRequest) error

func (*Service) PullImage

func (s *Service) PullImage(ctx context.Context, ref string, _ *PullImageOptions) (ImageInfo, error)

func (*Service) RemoveNetwork

func (*Service) RemoveNetwork(context.Context, NetworkRequest) error

func (*Service) ResolveRemoteDigest

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

func (*Service) RestoreContainer

func (*Service) SetupNetwork

func (*Service) StartContainer

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

func (*Service) StopContainer

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

type ServiceConfig

type ServiceConfig struct {
	SocketPath string
	BinaryPath string
}

type SnapshotInfo

type SnapshotInfo = containerapi.SnapshotInfo

type SnapshotUsage

type SnapshotUsage = containerapi.SnapshotUsage

type StartTaskOptions

type StartTaskOptions = containerapi.StartTaskOptions

type StopTaskOptions

type StopTaskOptions = containerapi.StopTaskOptions

type StorageRef

type StorageRef = containerapi.StorageRef

type TaskInfo

type TaskInfo = containerapi.TaskInfo

type TaskStatus

type TaskStatus = containerapi.TaskStatus

Jump to

Keyboard shortcuts

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