Documentation ¶
Index ¶
- func CheckRoot() error
- func Execute()
- func InitCmd(root *cobra.Command) *cobra.Command
- func NewBuildDisk(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewBuildISO(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewCloudInitCmd(root *cobra.Command) *cobra.Command
- func NewInstallCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewMountCmd(root *cobra.Command) *cobra.Command
- func NewPullImageCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewResetCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewRunStage(root *cobra.Command) *cobra.Command
- func NewStateCmd(root *cobra.Command) *cobra.Command
- func NewUpgradeCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewUpgradeRecoveryCmd(root *cobra.Command, addCheckRoot bool) *cobra.Command
- func NewVersionCmd(root *cobra.Command) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRoot ¶
func CheckRoot() error
CheckRoot is a helper to return on PreRunE, so we can add it to commands that require root
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewBuildDisk ¶
NewBuildDisk returns a new instance of the build-disk subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewBuildISO ¶
NewBuildISO returns a new instance of the buid-iso subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewInstallCmd ¶
NewInstallCmd returns a new instance of the install subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewRootCmd ¶
func NewUpgradeCmd ¶
NewUpgradeCmd returns a new instance of the upgrade subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
func NewUpgradeRecoveryCmd ¶
NewUpgradeCmd returns a new instance of the upgrade subcommand and appends it to the root command. requireRoot is to initiate it with or without the CheckRoot pre-run check. This method is mostly used for testing purposes.
Types ¶
This section is empty.