Documentation
¶
Index ¶
- func AddConfirmFlag(cmd *cobra.Command)
- func AddDisruptiveActionFlags(cmd *cobra.Command)
- func NewServerCmd(newClient clientFactory, ios *utils.IOStreams) *cobra.Command
- func RunDisruptiveServerAction(ios *utils.IOStreams, newClient clientFactory, ...) error
- func RunServerAction(ios *utils.IOStreams, newClient clientFactory, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfirmFlag ¶ added in v1.16.0
AddConfirmFlag registers the shared -y flag of an action that asks before it runs.
func AddDisruptiveActionFlags ¶ added in v1.14.0
AddDisruptiveActionFlags registers the shared -y/--force flags.
func NewServerCmd ¶ added in v1.20.0
func RunDisruptiveServerAction ¶ added in v1.14.0
func RunDisruptiveServerAction(ios *utils.IOStreams, newClient clientFactory, serverName, action, confirmMsg, successMsg, failMsg string, yes, force bool) error
RunDisruptiveServerAction runs the action with confirmation, MFA retry, and busy-guard handling.
func RunServerAction ¶ added in v1.16.0
func RunServerAction(ios *utils.IOStreams, newClient clientFactory, serverName, action, confirmMsg, successMsg, failMsg string, yes bool) error
RunServerAction runs a non-disruptive action with confirmation and MFA retry. The server applies no busy guard to it, so there is no --force to pass.
Types ¶
This section is empty.