Documentation ¶
Index ¶
- func AskExcludedSteps(asker question.Asker, steps []*deployments.DeploymentStep) ([]string, error)
- func AskGuidedFailureMode(asker question.Asker) (string, error)
- func AskPackageDownload(asker question.Asker) (bool, error)
- func AskTenantsAndTags(asker question.Asker, octopus *octopusApiClient.Client, projectID string, ...) ([]string, []string, error)
- func AskVariables(asker question.Asker, variableSet *variables.VariableSet, ...) (map[string]string, error)
- func FindEnvironments(client *octopusApiClient.Client, environmentNamesOrIds []string) ([]*environments.Environment, error)
- func LookupGuidedFailureModeString(value string) string
- func LookupPackageDownloadString(value bool) string
- func ParseVariableStringArray(variables []string) (map[string]string, error)
- func ScheduledStartTimeAnswerFormatter(datePicker *surveyext.DatePicker, t time.Time) string
- func ToVariableStringArray(variables map[string]string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskExcludedSteps ¶
func AskExcludedSteps(asker question.Asker, steps []*deployments.DeploymentStep) ([]string, error)
func AskTenantsAndTags ¶
func AskTenantsAndTags(asker question.Asker, octopus *octopusApiClient.Client, projectID string, env []*environments.Environment, required bool) ([]string, []string, error)
func AskVariables ¶
func AskVariables(asker question.Asker, variableSet *variables.VariableSet, variablesFromCmd map[string]string) (map[string]string, error)
AskVariables returns the map of ALL variables to send to the server, whether they were prompted for, or came from the command line. variablesFromCmd is copied into the result, you don't need to merge them yourselves. Return values: 0: Variables to send to the server, 1: List of sensitive variable names for masking automation command, 2: error
func FindEnvironments ¶
func FindEnvironments(client *octopusApiClient.Client, environmentNamesOrIds []string) ([]*environments.Environment, error)
given an array of environment names, maps these all to actual objects by querying the server
func ScheduledStartTimeAnswerFormatter ¶
func ScheduledStartTimeAnswerFormatter(datePicker *surveyext.DatePicker, t time.Time) string
ScheduledStartTimeAnswerFormatter is passed to the DatePicker so that if the user selects a time within the next one minute after 'now', it will show the answer as the string "Now" rather than the actual datetime string
func ToVariableStringArray ¶
Types ¶
This section is empty.