Documentation ¶
Index ¶
Constants ¶
View Source
const (
LocalDefaultFileName = "config.yml"
)
Variables ¶
View Source
var LoadConfiguration = func() (*Configuration, error) { s, err := NewLocal(nil) if err != nil { return nil, err } return s.LoadConfiguration() }
View Source
var LocalDefaultLocation = func() string { return fmt.Sprintf("%s/.config/system-configurator", resolveHomeDir()) }
View Source
var WriteConfiguration = func(cfg *Configuration) error { s, err := NewLocal(nil) if err != nil { return err } return s.WriteConfiguration(cfg) }
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
func (*Configuration) AddPackage ¶
func (c *Configuration) AddPackage(pkg *model.Package) error
func (*Configuration) FindPackage ¶
func (c *Configuration) FindPackage(name string) (*model.Package, int)
func (*Configuration) RemovePackage ¶
func (c *Configuration) RemovePackage(name string) error
func (*Configuration) ResolvedPkgs ¶
func (c *Configuration) ResolvedPkgs() ([]*model.Package, error)
Click to show internal directories.
Click to hide internal directories.