Documentation
¶
Index ¶
- type AppleHelper
- func (h *AppleHelper) ClientVersion(ctx context.Context) string
- func (h *AppleHelper) EnsureBuilderRunning(ctx context.Context) error
- func (h *AppleHelper) EnsureSystemRunning(ctx context.Context) error
- func (h *AppleHelper) FindContainerByID(ctx context.Context, ids []string) (*config.ContainerDetails, error)
- func (h *AppleHelper) FindDevContainer(ctx context.Context, labels []string) (*config.ContainerDetails, error)
- func (h *AppleHelper) GetContainerLogs(ctx context.Context, id string, stdout, stderr io.Writer) error
- func (h *AppleHelper) GetImageTag(ctx context.Context, imageID string) (string, error)
- func (h *AppleHelper) InspectContainers(ctx context.Context, ids []string) ([]config.ContainerDetails, error)
- func (h *AppleHelper) InspectImage(ctx context.Context, imageName string, tryRemote bool) (*config.ImageDetails, error)
- func (h *AppleHelper) Pull(ctx context.Context, opts PullOptions) error
- func (h *AppleHelper) Push(ctx context.Context, image string, stdout, stderr io.Writer) error
- func (h *AppleHelper) Remove(ctx context.Context, id string) error
- func (h *AppleHelper) Run(ctx context.Context, args []string, s Streams) error
- func (h *AppleHelper) RunWithDir(ctx context.Context, dir string, args []string, s Streams) error
- func (h *AppleHelper) StartContainer(ctx context.Context, id string) error
- func (h *AppleHelper) Stop(ctx context.Context, id string) error
- func (h *AppleHelper) Tag(ctx context.Context, image, tag string) error
- func (h *AppleHelper) WaitContainerRunning(ctx context.Context, id string) error
- type PullOptions
- type Streams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppleHelper ¶
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 (*AppleHelper) GetImageTag ¶
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) RunWithDir ¶
func (*AppleHelper) StartContainer ¶
func (h *AppleHelper) StartContainer(ctx context.Context, id string) error
func (*AppleHelper) WaitContainerRunning ¶
func (h *AppleHelper) WaitContainerRunning(ctx context.Context, id string) error
type PullOptions ¶
Click to show internal directories.
Click to hide internal directories.