Documentation ¶
Index ¶
- func Confirm(message string) bool
- func ConfirmCiConfigurationRemoval(serviceName string) bool
- func ConfirmDotKeystonDirRemoval() bool
- func ConfirmFileRemove(filePath, environmentName string, forceYes bool) bool
- func ConfirmFileReset(forceYes bool) bool
- func ConfirmHookOverwrite(hook *core.Hook) bool
- func ConfirmHookRemoval(hook *core.Hook) bool
- func ConfirmOverrideFileContents() bool
- func ConfirmOverrideSecretValue(forceYes bool) bool
- func ConfirmProjectDestruction(projectName string, skipPrompts bool) bool
- func ConfirmRevokeAccessToMember(memberId string, forceYes bool) bool
- func ConfirmSendEnvironmentToCiService(environmentName string, skipPrompts bool) bool
- func DeviceName(existingName string, forceDefault bool) string
- func OrganizationsSelect(organizations []models.Organization) models.Organization
- func PasswordToDecrypt() string
- func PasswordToEncrypt() string
- func PromptRole(memberId string, roles []models.Role) (models.Role, error)
- func Select(message string, items []string) (index int, selected string)
- func SelectAuthService(serviceName string) string
- func SelectDevice(devices []models.Device) models.Device
- func ServiceConfigurationToRemove() string
- func ServiceIntegrationName() string
- func StringInput(message string, defaultValue string) string
- func StringInputWithValidation(message string, defaultValue string, validation promptui.ValidateFunc) string
- func ValueForEnvironment(secretName, environmentName, defaultValue string) string
- type SelectCIServiceItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
Base confirm prompt `message` is the question to confirm (e.g. "Continue"). promptui will append a question mark at the end
func ConfirmCiConfigurationRemoval ¶
ConfirmCiConfigurationRemoval function asks confirmation for the CI service removal
func ConfirmDotKeystonDirRemoval ¶
func ConfirmDotKeystonDirRemoval() bool
ConfirmDotKeystonDirRemoval function aks confirmation for complete .keystone removal
func ConfirmFileRemove ¶
ConfirmFileRemove function asks confirmation for file removal
func ConfirmFileReset ¶
ConfirmFileReset function asks confirmation to reset the local contents of a file
func ConfirmHookOverwrite ¶
ConfirmHookOverwrite function asks the user to confirm they want to overwrite the hook
func ConfirmHookRemoval ¶
func ConfirmOverrideFileContents ¶
func ConfirmOverrideFileContents() bool
ConfirmOverrideFileContents function asks confirmation for ovirriding existing file contents
func ConfirmOverrideSecretValue ¶
ConfirmOverrideSecretValue function asks confirmation to override existing secret value
func ConfirmProjectDestruction ¶
ConfirmProjectDestruction function as confirmation for project destruction
func ConfirmRevokeAccessToMember ¶
ConfirmRevokeAccessToMember asks the user to confirm they want to revoke the access to the given member, unless `forceYes` is true, in which case it returns true without asking the user.
func ConfirmSendEnvironmentToCiService ¶
ConfirmSendEnvironmentToCiService function asks confirmation to send environment to CI service
func DeviceName ¶
DeviceName asks the user to enter a device name. If there is no existing name, it will use the device hostname as default
func OrganizationsSelect ¶
func OrganizationsSelect( organizations []models.Organization, ) models.Organization
Asks the usre to select from a list of organizations
func PasswordToDecrypt ¶
func PasswordToDecrypt() string
PasswordToDecrypt function promps the user the passphrase to decrypt the backup
func PasswordToEncrypt ¶
func PasswordToEncrypt() string
PasswordToEncrypt function prompts the user a passphrase to encrypt the backup
func PromptRole ¶
Prompts to select a role for a user `memberId` is a `username@service` userID `roles` is a list of roles to select from Returns the selected role
func Select ¶
Default selection user interface. `message` is a message to give some context to the user `items` is a list of things to select from. Return the index of the item selected in the `items` list, and the string
func SelectAuthService ¶
SelectAuthService function asks the user which third party to use for authentication
func SelectDevice ¶
Asks the user to select from a list of devices
func ServiceConfigurationToRemove ¶
func ServiceConfigurationToRemove() string
ServiceConfigurationToRemove function prompts the CI service name to remove
func ServiceIntegrationName ¶
func ServiceIntegrationName() string
ServiceIntegrationName function prompts the CI integration name
func StringInput ¶
Ask the user to enter a free form input
func StringInputWithValidation ¶
func StringInputWithValidation( message string, defaultValue string, validation promptui.ValidateFunc, ) string
Ask the user to enter a free form input, but runs the user input against a validation function
func ValueForEnvironment ¶
ValueForEnvironment function prompts the secret value for an environment
Types ¶
type SelectCIServiceItem ¶
Items for SelectCIService prompt
func SelectCIService ¶
func SelectCIService(items []SelectCIServiceItem) SelectCIServiceItem
Asks the user to select from a list of CI services