Documentation ¶
Overview ¶
Package dagger GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- Variables
- 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 WithEngineCallback ¶
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,omitempty"` Env map[string]string `json:"env,omitempty"` Labels map[string]string `json:"label,omitempty"` Entrypoint []string `json:"entrypoint,omitempty"` Cmd []string `json:"cmd,omitempty"` User string `json:"user,omitempty"` }
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.