pkgs

package
v0.0.0-...-7ef443d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS interface {
	fs.StatFS
	LocalAbsPath(virtualPath VirtualPath) (string, error)
}

type Pkg

type Pkg interface {
	Name() string
	Scripts() ([]*speclang.Script, error)
	PkgFS() FS
	SourceDirective() *speclang.Directive
}

type ResolveError

type ResolveError struct {
	PkgName string
	Err     error
}

func (*ResolveError) Error

func (e *ResolveError) Error() string

func (*ResolveError) Unwrap

func (e *ResolveError) Unwrap() error

type Resolver

type Resolver interface {
	ResolvePkg(ctx context.Context, pkgName string, d *speclang.Directive) (Pkg, error)
}

func NewResolver

func NewResolver(cacheManager *cache.Manager, logger *log.Logger) Resolver

type VirtualPath

type VirtualPath string

func CanonicalizePath

func CanonicalizePath(p string) (VirtualPath, error)

func (VirtualPath) Prefixes

func (p VirtualPath) Prefixes() iter.Seq[VirtualPath]

Jump to

Keyboard shortcuts

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