Documentation
¶
Index ¶
- Constants
- func Commit(result *Status, library string) bool
- func Install(result *Status, library string) bool
- func Reboot(result *Status, library string) bool
- func RegisterCommandOptions(progname string)
- func Rollback(result *Status, library string) bool
- func ScanCommandOptions(options map[string]interface{}) error
- type Status
Constants ¶
View Source
const RPMInstallRepoPath = "/system/upgrade/repository/"
RPMInstallRepoPath is the path where RPM contents are expected to installed/extracted.
Variables ¶
This section is empty.
Functions ¶
func Reboot ¶
Reboot runs the prereboot plugins and reboot the system as part of the
update workflow.
func RegisterCommandOptions ¶
func RegisterCommandOptions(progname string)
RegisterCommandOptions registers the command options that are supported
func Rollback ¶
Rollback runs the required rollback plugins of the update workflow in the
new version/partition.
func ScanCommandOptions ¶
ScanCommandOptions scans for the command line options and makes appropriate function call. Input:
- map[string]interface{} where, the options could be following: "progname": Name of the program along with any cmds (ex: asum pm) "cmd-index": Index to the cmd (ex: run)
Types ¶
type Status ¶
type Status struct {
// INFO: The Status contains info of all operations so as to support
// all operations with one call to asum with appropriate flags set to
// continue onto the next operation.
// Ex: Install can receive auto-reboot=true, in which after installation
// is completed successfully, `asum` will run reboot operation.
Install []pm.RunStatus `yaml:",omitempty"`
Reboot []pm.RunStatus `yaml:",omitempty"`
Rollback []pm.RunStatus `yaml:",omitempty"`
Commit []pm.RunStatus `yaml:",omitempty"`
Status string
StdOutErr string
}
Status is the execution/run status of PM on a specified plugin type.
Click to show internal directories.
Click to hide internal directories.