Documentation
¶
Index ¶
- func ApplyPackLoader(p *scriptling.Scriptling, packLoader *pack.Loader)
- func BaseDir(file string) (string, error)
- func BuildLibDirs(baseDir string, extra []string) []string
- func ChainLoader(primary, fallback scriptling.LibraryLoader) scriptling.LibraryLoader
- func NewPackLoader(sources []string, insecure bool, cacheDir string) (*pack.Loader, error)
- func ParseAllowedPaths(paths string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPackLoader ¶
func ApplyPackLoader(p *scriptling.Scriptling, packLoader *pack.Loader)
ApplyPackLoader adds the package loader behind the current interpreter loader.
func BaseDir ¶
BaseDir returns the script directory, or the current working directory when no file is provided.
func BuildLibDirs ¶
BuildLibDirs constructs the ordered list of library search directories.
func ChainLoader ¶
func ChainLoader(primary, fallback scriptling.LibraryLoader) scriptling.LibraryLoader
ChainLoader combines a primary and fallback loader.
func NewPackLoader ¶
NewPackLoader loads package sources into a loader.
func ParseAllowedPaths ¶
ParseAllowedPaths parses a comma-separated list of paths. Returns nil for no restrictions, empty slice for deny-all (paths == "-").
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.