sdk

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

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

func IsModuleSDKBuiltin(module string) bool

Return true if the given module is a builtin SDK.

func ScopeModuleForSDKOperation added in v0.21.0

func ScopeModuleForSDKOperation(
	ctx context.Context,
	mod *core.Module,
	op string,
	dag *dagql.Server,
) (inst dagql.ObjectResult[*core.Module], err error)

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 NewLoader

func NewLoader() *Loader

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL