Documentation ¶
Index ¶
- func GenericInstallerRegistry(configFile string, registry core.InstallerRegistry) (err error)
- func GetInstallers(name string) (installers []core.Installer, ok bool)
- func HasPackage(name string) bool
- func InstallWithProxy(name string, proxy map[string]string) (err error)
- func Uninstall(name string) (err error)
- type CmdWithArgs
- type DefaultInstallerRegistry
- type WriteTo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenericInstallerRegistry ¶ added in v0.0.63
func GenericInstallerRegistry(configFile string, registry core.InstallerRegistry) (err error)
GenericInstallerRegistry registries a generic installer
func GetInstallers ¶
GetInstallers returns all the installers belong to a package
func HasPackage ¶
HasPackage finds if the target package installer exist
func InstallWithProxy ¶ added in v0.0.71
InstallWithProxy installs a package with name
Types ¶
type CmdWithArgs ¶ added in v0.0.63
type CmdWithArgs struct { Cmd string `yaml:"cmd"` Args []string `yaml:"args"` SystemCall bool `yaml:"systemCall"` WriteTo *WriteTo `yaml:"writeTo"` }
CmdWithArgs is a command with arguments
type DefaultInstallerRegistry ¶
type DefaultInstallerRegistry struct {
// contains filtered or unexported fields
}
DefaultInstallerRegistry is the default installer registry
type WriteTo ¶ added in v0.0.77
type WriteTo struct { File string Mod string Content string When string // contains filtered or unexported fields }
WriteTo represents the task to write content to file
func (*WriteTo) Should ¶ added in v0.0.80
Should eval the "when" expr, then return bool value. Return true if the "when" expr is empty. See also https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md
Click to show internal directories.
Click to hide internal directories.