Documentation
¶
Index ¶
Constants ¶
View Source
const (
GoSDKModuleIDPath = "typedefs.json"
)
View Source
const (
RuntimeWorkdirPath = "/scratch"
)
Variables ¶
This section is empty.
Functions ¶
func IsModuleSDKBuiltin ¶ added in v0.18.19
Return true if the given module is a builtin SDK.
Types ¶
type DangRuntime ¶ added in v0.20.2
type DangRuntime struct {
// contains filtered or unexported fields
}
DangRuntime is a native Dang runtime that doesn't use containers
func (*DangRuntime) AsContainer ¶ added in v0.20.2
func (r *DangRuntime) AsContainer() (dagql.ObjectResult[*core.Container], bool)
func (*DangRuntime) Call ¶ added in v0.20.2
func (r *DangRuntime) Call( ctx context.Context, _ *engineutil.ExecutionMetadata, fnCall *core.FunctionCall, moduleContext dagql.ObjectResult[*core.Module], envContext dagql.ObjectResult[*core.Env], ) (res []byte, rerr error)
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.
Click to show internal directories.
Click to hide internal directories.