Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RootCmd string `json:"rootCmd" koanf:"rootCmd"`
UseRootCmd bool `json:"useRootCmd" koanf:"useRootCmd"`
PagerStyle string `json:"pagerStyle" koanf:"pagerStyle"`
IgnorePkgUpdates []string `json:"ignorePkgUpdates" koanf:"ignorePkgUpdates"`
Repos []Repo `json:"repo" koanf:"repo"`
AutoPull bool `json:"autoPull" koanf:"autoPull"`
LogLevel string `json:"logLevel" koanf:"logLevel"`
UpdateSystemOnUpgrade bool `json:"updateSystemOnUpgrade" koanf:"updateSystemOnUpgrade"`
}
Config represents the ALR configuration file
type Directories ¶
type Repo ¶
type Repo struct {
Name string `json:"name" koanf:"name"`
URL string `json:"url" koanf:"url"`
Ref string `json:"ref" koanf:"ref"`
Mirrors []string `json:"mirrors" koanf:"mirrors"`
}
Repo represents a ALR repo within a configuration file
type RepoConfig ¶
type RepoConfig struct {
Repo struct {
MinVersion string `toml:"minVersion"`
URL string `toml:"url"`
Ref string `toml:"ref"`
Mirrors []string `toml:"mirrors"`
}
}
RepoConfig represents a ALR repo's alr-repo.toml file.
type ScriptFile ¶
func (*ScriptFile) GobDecode ¶
func (s *ScriptFile) GobDecode(data []byte) error
func (*ScriptFile) GobEncode ¶
func (s *ScriptFile) GobEncode() ([]byte, error)
type Scripts ¶
type Scripts struct {
PreInstall string `sh:"preinstall"`
PostInstall string `sh:"postinstall"`
PreRemove string `sh:"preremove"`
PostRemove string `sh:"postremove"`
PreUpgrade string `sh:"preupgrade"`
PostUpgrade string `sh:"postupgrade"`
PreTrans string `sh:"pretrans"`
PostTrans string `sh:"posttrans"`
}
Click to show internal directories.
Click to hide internal directories.