Documentation
¶
Index ¶
- Constants
- func DecodeInitArgs(raw core.JSON) (map[string]any, error)
- func IsBuiltinSDKName(source string) bool
- func IsModuleSDKBuiltin(module string) bool
- func ScopeModuleForSDKOperation(ctx context.Context, mod *core.Module, op string, dag *dagql.Server) (inst dagql.ObjectResult[*core.Module], err error)
- type Loader
- type WorkspaceModule
Constants ¶
const (
GoSDKModuleIDPath = "typedefs.json"
)
const (
RuntimeWorkdirPath = "/scratch"
)
Variables ¶
This section is empty.
Functions ¶
func IsBuiltinSDKName ¶
IsBuiltinSDKName reports whether source names a built-in SDK/runtime bundled in the engine (e.g. "go", "python", "dang"), optionally with an "@version" suffix — as opposed to an external module ref or local path. Such names are resolved in-engine when a module's runtime loads; they are not standalone modules that can be loaded from a path or ref.
func IsModuleSDKBuiltin ¶ added in v0.18.19
Return true if the given module is a builtin SDK.
Types ¶
type Loader ¶
type Loader struct{}
func (*Loader) SDKForModule ¶
func (l *Loader) SDKForModule( ctx context.Context, query *core.Query, sdk *core.SDKConfig, parentSrc *core.ModuleSource, ) (_ core.SDK, rerr error)
SDKForModule loads an SDK module based on the given SDK configuration.
If it's a builtin SDK, it will load it from the engine container. Otherwise, it will load it from the given source either from a URL or from a local path.
type WorkspaceModule ¶
WorkspaceModule describes the SDK module a workspace should install for a child module runtime.
func WorkspaceModuleForRuntime ¶
func WorkspaceModuleForRuntime(runtime string) (WorkspaceModule, bool, error)
WorkspaceModuleForRuntime returns the workspace module that exposes a built-in runtime SDK. Unknown external SDK refs are intentionally left for the normal SDK loader and do not have a static workspace module mapping here.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
dang
|
|
|
shared
Package dangshared holds the Dang-version-agnostic plumbing shared by every supported major version of the Dang runtime (core/sdk/dang/v1, v2, ...).
|
Package dangshared holds the Dang-version-agnostic plumbing shared by every supported major version of the Dang runtime (core/sdk/dang/v1, v2, ...). |
|
v1
Package dangv1 evaluates Dagger modules written against Dang v1 (github.com/vito/dang: `.{ }` is selection, `.{{ }}` does not exist).
|
Package dangv1 evaluates Dagger modules written against Dang v1 (github.com/vito/dang: `.{ }` is selection, `.{{ }}` does not exist). |
|
v2
Package dangv2 evaluates Dagger modules written against Dang v2 (github.com/vito/dang/v2: `.{ }` is dot-block application, `.{{ }}` is selection).
|
Package dangv2 evaluates Dagger modules written against Dang v2 (github.com/vito/dang/v2: `.{ }` is dot-block application, `.{{ }}` is selection). |