loader

package
v0.117.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChangesInclude     = errors.New("changes_include() failed")
	ErrChangesIncludeOnly = errors.New("changes_include_only() failed")
)
View Source
var (
	ErrCycle = errors.New("import cycle detected")
)

Functions

This section is empty.

Types

type CacheEntry

type CacheEntry struct {
	// contains filtered or unexported fields
}

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(
	ctx context.Context,
	fs fs.FileSystem,
	env map[string]string,
	affectedFiles []string,
	isTest bool,
) *Loader

func (*Loader) LoadFunc

func (loader *Loader) LoadFunc(
	frameFS fs.FileSystem,
) func(thread *starlark.Thread, module string) (starlark.StringDict, error)

func (*Loader) ResolveFS added in v0.86.0

func (loader *Loader) ResolveFS(currentFS fs.FileSystem, locator string) (fs.FileSystem, string, error)

Jump to

Keyboard shortcuts

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