packages

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitURI

type GitURI struct {
	Repo string
	Ref  string
	Path string
}

type Package

type Package struct {
	Path        string
	Root        xfs.Path
	Globals     starlark.StringDict `json:"-" msgpack:"-"`
	Globalsm    sync.Mutex          `json:"-" msgpack:"-"`
	SourceFiles []string
}

func (*Package) Addr

func (p *Package) Addr() string

func (*Package) Child

func (p *Package) Child(childPath string) Package

func (*Package) Name

func (p *Package) Name() string

func (*Package) TargetAddr

func (p *Package) TargetAddr(name string) string

type Registry

type Registry struct {
	Root           *hroot.State
	Roots          map[string]config.Root
	RootsCachePath string
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(r Registry) *Registry

func (*Registry) All

func (e *Registry) All() []*Package

func (*Registry) FetchRoot

func (e *Registry) FetchRoot(ctx context.Context, name string, cfg config.Root) (xfs.Path, error)

func (*Registry) Get

func (e *Registry) Get(path string) *Package

func (*Registry) GetOrCreate

func (e *Registry) GetOrCreate(spec Package) *Package

func (*Registry) LoadFromRoots

func (e *Registry) LoadFromRoots(pkgName string) (*Package, error)

type SourceFile

type SourceFile struct {
	Path string
}

Jump to

Keyboard shortcuts

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