Documentation
¶
Overview ¶
Code generated by gengo:runtimedoc DO NOT EDIT.
Index ¶
- Variables
- func NewID() string
- func Run(ctx context.Context, name string, fn func(ctx context.Context) error) error
- func Tracer() trace.Tracer
- type Client
- type Engine
- type EngineOptionFunc
- type EngineWithScope
- type EnvVariable
- type Hosts
- type ImageConfig
- type Label
- type Params
- type PiperRunnerHost
- type Platform
- type Runner
- type Scope
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRunnerHost = fmt.Sprintf("docker-image://ghcr.io/dagger/engine:%s", engineVersion())
View Source
var RunnerContext = contextx.New[Runner]()
View Source
var ScopeContext = contextx.New[Scope](contextx.WithDefaultsFunc(func() Scope { return Scope{} }))
Functions ¶
Types ¶
type Engine ¶
type EngineOptionFunc ¶
type EngineOptionFunc = func(x *options)
func WithCloudURLCallback ¶
func WithEngineLogs ¶
func WithEngineLogs(exporter sdklog.Exporter) EngineOptionFunc
func WithEngineTrace ¶
func WithEngineTrace(exporter trace.SpanExporter) EngineOptionFunc
type EngineWithScope ¶
type EnvVariable ¶
func (*EnvVariable) RuntimeDoc ¶
func (v *EnvVariable) RuntimeDoc(names ...string) ([]string, bool)
type Hosts ¶
type Hosts struct {
Default *PiperRunnerHost
Platformed map[Platform][]*PiperRunnerHost
}
func (*Hosts) AddHost ¶
func (h *Hosts) AddHost(runnerHost *PiperRunnerHost)
func (*Hosts) GetHost ¶
func (h *Hosts) GetHost(platform Platform) *PiperRunnerHost
type ImageConfig ¶
type ImageConfig struct {
WorkingDir string `json:"workdir,omitzero"`
Env map[string]string `json:"env,omitzero"`
Labels map[string]string `json:"label,omitzero"`
Entrypoint []string `json:"entrypoint,omitzero"`
Cmd []string `json:"cmd,omitzero"`
User string `json:"user,omitzero"`
}
func ResolveImageConfig ¶
func ResolveImageConfig(ctx context.Context, c *Client, id dagger.ContainerID) (ImageConfig, error)
func (*ImageConfig) RuntimeDoc ¶
func (v *ImageConfig) RuntimeDoc(names ...string) ([]string, bool)
type Params ¶
type Params = engineclient.Params
type PiperRunnerHost ¶
func ParsePiperRunnerHosts ¶
func ParsePiperRunnerHosts(str string) ([]PiperRunnerHost, error)
func RunnerHost ¶
func RunnerHost() *PiperRunnerHost
func (*PiperRunnerHost) RuntimeDoc ¶
func (v *PiperRunnerHost) RuntimeDoc(names ...string) ([]string, bool)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.