Documentation
¶
Overview ¶
Package apple implements the RuntimeProvider interface for Apple's container runtime.
Index ¶
- type Provider
- func (p *Provider) DeleteJobLog(jobID string) error
- func (p *Provider) GetCompletedJobIDs() ([]string, error)
- func (p *Provider) GetRunningJobIDs(ctx context.Context) ([]string, error)
- func (p *Provider) IsInstalled() bool
- func (p *Provider) KillJob(ctx context.Context, jobID string) error
- func (p *Provider) Name() string
- func (p *Provider) PullImage(ctx context.Context, image string) error
- func (p *Provider) RunJob(ctx context.Context, opts runtime.JobOptions) error
- func (p *Provider) ValidateJobID(jobID string) error
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 ¶
NewProvider creates a new Provider with the given container binary path. If containerPath is empty, it defaults to "container".
func (*Provider) DeleteJobLog ¶ added in v1.0.39
DeleteJobLog removes the log file for the specified job. Log files are stored in ~/Library/Logs/ai.plan42.runner/.
func (*Provider) GetCompletedJobIDs ¶ added in v1.0.39
GetCompletedJobIDs returns IDs of all completed jobs with log files. Log files are stored in ~/Library/Logs/ai.plan42.runner/.
func (*Provider) GetRunningJobIDs ¶ added in v1.0.39
GetRunningJobIDs returns IDs of all running containers matching the plan42-* pattern.
func (*Provider) IsInstalled ¶
IsInstalled reports whether the container binary is available on the system.
func (*Provider) KillJob ¶
KillJob terminates the job with the given ID. This streams output directly to os.Stdout/os.Stderr and panics on exit error, matching the original behavior in container.go.
func (*Provider) RunJob ¶
RunJob runs a job with the specified options. The provider computes the log file path internally based on JobID, storing logs in ~/Library/Logs/ai.plan42.runner/{JobID}.
func (*Provider) ValidateJobID ¶ added in v1.0.39
ValidateJobID checks if the given job ID is valid for this runtime. A valid job ID has the format "plan42-{taskID}-{turnIndex}".