loader

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MPL-2.0 Imports: 24 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 (
	ErrRetrievalFailed     = errors.New("failed to retrieve a module")
	ErrUnsupportedLocation = errors.New("unsupported location")
)
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)

Jump to

Keyboard shortcuts

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