apple

package
v1.9.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppleHelper

type AppleHelper struct {
	Command     string
	Environment []string
}

AppleHelper shells out to Apple's `container` CLI, translating operations to its grouped subcommands and parsing its JSON output (it has no Go-template `--format`).

func (*AppleHelper) ClientVersion

func (h *AppleHelper) ClientVersion(ctx context.Context) string

func (*AppleHelper) EnsureBuilderRunning

func (h *AppleHelper) EnsureBuilderRunning(ctx context.Context) error

EnsureBuilderRunning starts the BuildKit builder; an already-running builder is a no-op, other failures are returned so a build never runs against a dead builder.

func (*AppleHelper) EnsureSystemRunning

func (h *AppleHelper) EnsureSystemRunning(ctx context.Context) error

EnsureSystemRunning starts the container system service if it is not running; it must be running before any container operation.

func (*AppleHelper) FindContainerByID

func (h *AppleHelper) FindContainerByID(
	ctx context.Context,
	ids []string,
) (*config.ContainerDetails, error)

func (*AppleHelper) FindDevContainer

func (h *AppleHelper) FindDevContainer(
	ctx context.Context,
	labels []string,
) (*config.ContainerDetails, error)

func (*AppleHelper) GetContainerLogs

func (h *AppleHelper) GetContainerLogs(
	ctx context.Context,
	id string,
	stdout, stderr io.Writer,
) error

func (*AppleHelper) GetImageTag

func (h *AppleHelper) GetImageTag(ctx context.Context, imageID string) (string, error)

func (*AppleHelper) InspectContainers

func (h *AppleHelper) InspectContainers(
	ctx context.Context,
	ids []string,
) ([]config.ContainerDetails, error)

func (*AppleHelper) InspectImage

func (h *AppleHelper) InspectImage(
	ctx context.Context,
	imageName string,
	tryRemote bool,
) (*config.ImageDetails, error)

InspectImage falls back to the remote registry config when tryRemote is set and the image is not present locally.

func (*AppleHelper) Pull

func (h *AppleHelper) Pull(ctx context.Context, opts PullOptions) error

func (*AppleHelper) Push

func (h *AppleHelper) Push(ctx context.Context, image string, stdout, stderr io.Writer) error

func (*AppleHelper) Remove

func (h *AppleHelper) Remove(ctx context.Context, id string) error

func (*AppleHelper) Run

func (h *AppleHelper) Run(ctx context.Context, args []string, s Streams) error

func (*AppleHelper) RunWithDir

func (h *AppleHelper) RunWithDir(ctx context.Context, dir string, args []string, s Streams) error

func (*AppleHelper) StartContainer

func (h *AppleHelper) StartContainer(ctx context.Context, id string) error

func (*AppleHelper) Stop

func (h *AppleHelper) Stop(ctx context.Context, id string) error

func (*AppleHelper) Tag

func (h *AppleHelper) Tag(ctx context.Context, image, tag string) error

func (*AppleHelper) WaitContainerRunning

func (h *AppleHelper) WaitContainerRunning(ctx context.Context, id string) error

type PullOptions

type PullOptions struct {
	Image    string
	Platform string
	Stdout   io.Writer
	Stderr   io.Writer
}

type Streams

type Streams struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

Streams bundles the optional IO for a `container` invocation.

Jump to

Keyboard shortcuts

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