apple

package
v1.0.34 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package apple implements the RuntimeProvider interface for Apple's container runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider implements RuntimeProvider for Apple's container runtime.

func NewProvider

func NewProvider(containerPath string) *Provider

NewProvider creates a new Provider with the given container binary path. If containerPath is empty, it defaults to "container".

func (*Provider) IsInstalled

func (p *Provider) IsInstalled() bool

IsInstalled reports whether the container binary is available on the system.

func (*Provider) KillJob

func (p *Provider) KillJob(ctx context.Context, jobID string) error

KillJob terminates the job with the given ID.

func (*Provider) ListJobs

func (p *Provider) ListJobs(ctx context.Context) ([]*runtime.Job, error)

ListJobs returns all jobs managed by this runtime.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the human-readable name of the runtime.

func (*Provider) PullImage

func (p *Provider) PullImage(ctx context.Context, image string) error

PullImage pulls the specified container image.

func (*Provider) RunJob

func (p *Provider) RunJob(ctx context.Context, opts runtime.JobOptions) error

RunJob runs a job with the specified options.

func (*Provider) Validate

func (p *Provider) Validate(ctx context.Context) error

Validate checks that the runtime is properly configured and functional.

Jump to

Keyboard shortcuts

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