buildfiles

package
v0.0.0-...-8e6cb86 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStarlarkThread

func NewStarlarkThread() *starlark.Thread

Types

type RunOptions

type RunOptions struct {
	ThreadModifier   func(thread *starlark.Thread, pkg *packages.Package)
	UniverseFactory  func() starlark.StringDict
	CacheDirPath     string
	ProgramExtraHash func(hash.Hash)
	RootPkg          *packages.Package
}

func (RunOptions) Copy

func (o RunOptions) Copy() RunOptions

type State

type State struct {
	Patterns []string
	Ignore   []string
	Packages *packages.Registry
	// contains filtered or unexported fields
}

func NewState

func NewState(s State) *State

func (*State) CollectFiles

func (s *State) CollectFiles(ctx context.Context, root string) ([]string, error)

func (*State) CollectFilesInRoot

func (s *State) CollectFilesInRoot(ctx context.Context, root string) ([]string, error)

func (*State) RunBuildFile

func (s *State) RunBuildFile(pkg *packages.Package, path string, options RunOptions) error

func (*State) RunBuildFiles

func (s *State) RunBuildFiles(ctx context.Context, files []string, options RunOptions) error

Jump to

Keyboard shortcuts

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