Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifier ¶
Struct to model the instance identifier provided by the user (either instance-id or display-name)
func GetValidatedInstanceIdentifier ¶
GetValidatedInstanceIdentifier gets and validates the instance identifier provided by the user through the command-line flags. It checks for either an instance ID or a display name and validates the provided value.
p is the printer used for logging. cmd is the cobra command that holds the flags.
Returns an Identifier struct containing the flag and its value if a valid identifier is provided, otherwise returns an error. Indirect unit tests of GetValidatedInstanceIdentifier are done within the respective CLI packages.
Click to show internal directories.
Click to hide internal directories.