Documentation
¶
Index ¶
- func Confirm(message string) bool
- func ConfirmDataDeletion(resourceType, name string) bool
- func ConfirmDataDeletionWith(in io.Reader, out io.Writer, resourceType, name string) bool
- func ConfirmDeletion(resourceType, name, id string) bool
- func ConfirmDeletionWith(in io.Reader, out io.Writer, resourceType, name, id string) bool
- func ConfirmWith(in io.Reader, out io.Writer, message string) bool
- func ValidateConfirmFlag(confirmValue, resourceName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
Confirm prompts the user for yes/no confirmation Returns true if user confirms, false otherwise
func ConfirmDataDeletion ¶
ConfirmDataDeletion prompts for confirmation of an irreversible data operation Requires the user to type the resource name exactly to confirm Returns true if confirmed, false otherwise
func ConfirmDataDeletionWith ¶
ConfirmDataDeletionWith is ConfirmDataDeletion on the given streams.
func ConfirmDeletion ¶
ConfirmDeletion prompts for confirmation of a destructive operation Shows resource details and requires explicit confirmation
func ConfirmDeletionWith ¶
ConfirmDeletionWith is ConfirmDeletion on the given streams.
func ConfirmWith ¶
ConfirmWith is Confirm on the given streams, for a caller that owns the invocation's input and output instead of the process's. It buffers in per call, so pass a *bufio.Reader when confirming more than once on one in.
func ValidateConfirmFlag ¶
ValidateConfirmFlag checks if the --confirm flag value matches the resource name Used for non-interactive confirmation of data deletion
Types ¶
This section is empty.