Documentation
¶
Index ¶
- Variables
- func Draining(stop context.Context, timeout time.Duration) (context.Context, context.CancelFunc)
- func NewSandboxRuntime(cfg sandbox.RuntimeConfig, ...) (sandbox.SandboxRuntime, error)
- func ValidateRuntimeConfig(cfg sandbox.RuntimeConfig) error
- type Client
- func (c *Client) Broker(ctx context.Context, j Job, name, connection string, input any, result any) error
- func (c *Client) BuiltinOrgs(ctx context.Context, secret string) ([]string, error)
- func (c *Client) Claim(ctx context.Context) (Job, error)
- func (c *Client) Complete(ctx context.Context, j Job, result workflow.Completion) error
- func (c *Client) CustomAuthorize(ctx context.Context, j Job) (customcmd.Authorized, error)
- func (c *Client) CustomReport(ctx context.Context, j Job, in customcmd.ReportInput) (customcmd.Authorized, error)
- func (c *Client) Enroll(ctx context.Context, token string) error
- func (c *Client) EnrollBuiltin(ctx context.Context, secret, org string) error
- func (*Client) GoString() string
- func (c *Client) Heartbeat(ctx context.Context, j Job) (runner.Heartbeat, error)
- func (c *Client) Load() error
- func (c *Client) ModelTurn(ctx context.Context, j Job, in model.Turn) (model.TurnResult, error)
- func (c *Client) Progress(ctx context.Context, j Job, state domain.TaskState) error
- func (c *Client) RepairCheckpoint(ctx context.Context, j Job, in repair.Checkpoint) error
- func (c *Client) RepairContext(ctx context.Context, j Job) (repair.ExecutionContext, error)
- func (c *Client) RepairLogs(ctx context.Context, j Job, entries []repair.LogEntry) error
- func (c *Client) RepairNativeChecks(ctx context.Context, j Job, in repair.Publication) error
- func (c *Client) RepairPublish(ctx context.Context, j Job, in repair.Publication) (repair.Run, error)
- func (c *Client) RepairReport(ctx context.Context, j Job, in repair.Report) (repair.Run, error)
- func (c *Client) RepairRun(ctx context.Context, j Job) (repair.Run, error)
- func (c *Client) RepairSnapshot(ctx context.Context, j Job, sha string) (sandbox.Snapshot, error)
- func (c *Client) RepairStage(ctx context.Context, j Job) (repair.Run, error)
- func (c *Client) Rotate(ctx context.Context) error
- func (c *Client) Run(ctx context.Context, process Processor) error
- func (c *Client) Step(ctx context.Context, process Processor) (bool, error)
- func (*Client) String() string
- func (c *Client) Supervisor() (runner.Runner, string)
- func (c *Client) Upload(ctx context.Context, j Job, name, media string, data []byte) (artifact.Metadata, error)
- type Config
- type Job
- type Processor
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrControlPlane = errors.New("runner control plane unavailable or rejected request")
View Source
var ErrSourceMoved = errors.New("native source or target moved")
View Source
var ErrTransientControlPlane = errors.New("runner control plane temporarily unavailable")
Functions ¶
func NewSandboxRuntime ¶
func NewSandboxRuntime(cfg sandbox.RuntimeConfig, fetch func(context.Context, sandbox.WorkspaceRequest) (sandbox.Snapshot, error)) (sandbox.SandboxRuntime, error)
func ValidateRuntimeConfig ¶
func ValidateRuntimeConfig(cfg sandbox.RuntimeConfig) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BuiltinOrgs ¶
func (*Client) CustomAuthorize ¶
func (*Client) CustomReport ¶
func (c *Client) CustomReport(ctx context.Context, j Job, in customcmd.ReportInput) (customcmd.Authorized, error)
func (*Client) EnrollBuiltin ¶
func (*Client) RepairCheckpoint ¶
func (*Client) RepairContext ¶
func (*Client) RepairLogs ¶
func (*Client) RepairNativeChecks ¶
func (*Client) RepairPublish ¶
func (*Client) RepairReport ¶
func (*Client) RepairSnapshot ¶
func (*Client) RepairStage ¶
type Config ¶
type Config struct {
Endpoint string `json:"endpoint"`
Development bool `json:"development"`
Name string `json:"name"`
Slots int `json:"slots"`
Internal bool `json:"internal"`
CredentialFile string `json:"credential_file"`
DrainTimeout time.Duration `json:"drain_timeout"`
Client *http.Client `json:"-"`
}
type Job ¶
type Processor ¶
func RepairProcessor ¶
func RepairProcessor(config sandbox.RuntimeConfig) Processor
func RepairProcessorWithCloser ¶
func RepairProcessorWithCloser(config sandbox.RuntimeConfig) (Processor, func() error)
Click to show internal directories.
Click to hide internal directories.