Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDevelopmentPathsRequired = errors.New("backendplugins/discovery: development mode requires explicit paths") ErrNoRoots = errors.New("backendplugins/discovery: no discovery roots configured") )
Functions ¶
func UpstreamDefaultRoot ¶
func UpstreamDefaultRoot() string
UpstreamDefaultRoot returns the OS-specific upstream machine default plugin root.
Types ¶
type Config ¶
type Config struct {
ExplicitPaths []string
PackagerRoots []string
IncludeUpstreamDefaults bool
Development bool
FS FS
SpawnProbe SpawnProbe
}
Config configures deterministic non-executing discovery.
type Descriptor ¶
type Descriptor struct {
SafeID string
Root string
ManifestPath string
Manifest sdkmanifest.Manifest
Status Status
Reason string
}
Descriptor is an immutable discovery record.
type FS ¶
type FS interface {
Lstat(name string) (fs.FileInfo, error)
ReadDir(name string) ([]fs.DirEntry, error)
Open(name string) (*os.File, error)
}
FS is the minimal filesystem surface discovery needs.
type Result ¶
type Result struct {
Descriptors []Descriptor
}
Result is the immutable discovery snapshot.
type SpawnProbe ¶
type SpawnProbe interface {
NoteLaunchAttempt()
}
SpawnProbe is an optional per-Discoverer hook. Production discovery never calls it.
Click to show internal directories.
Click to hide internal directories.