loader

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCycle           = errors.New("import cycle detected")
	ErrRetrievalFailed = errors.New("failed to retrieve module")
)
View Source
var ErrChangesInclude = errors.New("changes_include() failed")

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() func(thread *starlark.Thread, module string) (starlark.StringDict, error)

func (*Loader) Retrieve

func (loader *Loader) Retrieve(module string) ([]byte, error)

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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