Documentation
¶
Index ¶
- func Add(entry *Entry) error
- func CreateDefault() error
- func Privileged(path string) bool
- func Store() (*storm.DB, error)
- func Switch(name string) error
- type Config
- type Entry
- func Current() (*Entry, error)
- func Destroy(name string) (*Entry, error)
- func Get(name string) (*Entry, error)
- func Init(name string, path string, pltfrm *platform.Platform, createConfig bool, ...) (*Entry, error)
- func List() ([]*Entry, error)
- func Lookup(path string) (*Entry, error)
- func Virtual() *Entry
- type Tree
- func (t *Tree) Lock() error
- func (t *Tree) Pool(platforms []*platform.Platform, empty bool, repos ...*ops.Repository) (*ops.Pool, error)
- func (t *Tree) Privileged() bool
- func (t *Tree) Ready() bool
- func (t *Tree) RepoLoad(platforms []*platform.Platform, repo *ops.Repository, all bool) error
- func (t *Tree) StateToRepo() (*ops.Repository, error)
- func (t *Tree) Unlock() error
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefault ¶
func CreateDefault() error
func Privileged ¶ added in v0.2.0
Types ¶
type Config ¶
type Config struct {
OS os.OS `pkl:"os"`
Arch arch.Arch `pkl:"arch"`
Security security.Mode `pkl:"security"`
Repositories []ops.Repository `pkl:"repositories"`
}
func (*Config) Repository ¶
func (c *Config) Repository(name string) (*ops.Repository, error)
type Tree ¶
type Tree struct {
*slog.Logger
Name string
Path string
Config *Config
Platform *platform.Platform
Cache *cache.Cache
Signing *pki.Signing
Trust *pki.Trust
Security security.Security
State *state.State
// contains filtered or unexported fields
}
func (*Tree) Privileged ¶ added in v0.2.0
func (*Tree) StateToRepo ¶
func (t *Tree) StateToRepo() (*ops.Repository, error)
Click to show internal directories.
Click to hide internal directories.