discovery

package
v0.0.0-...-ee163f1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFoundSystem = errors.New("error: not found system")
)

Functions

func GetProfiles

func GetProfiles(excludePartitions ...string) v.Result[[]Profile, error]

func ScanPackage

func ScanPackage(rootfs fs.FS, rootdir string, dir string) v.Result[map[string]underline.Filename, error]

Types

type Profile

type Profile struct {
	Partition env.Partition
	Rootfs    fs.FS
	Root      string
	Version   string
	Packages  map[string]underline.Filename
}

type System

type System struct {
	Partition  env.Partition
	Fs         fs.FS
	Dir        string
	AllProfile []Profile
	Profile    v.Option[*Profile]
}

func GetSystem

func GetSystem() *System

Jump to

Keyboard shortcuts

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