executionscommon

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskExcludedSteps

func AskExcludedSteps(asker question.Asker, steps []*deployments.DeploymentStep) ([]string, error)

func AskGuidedFailureMode

func AskGuidedFailureMode(asker question.Asker) (string, error)

func AskPackageDownload

func AskPackageDownload(asker question.Asker) (bool, 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 LookupGuidedFailureModeString

func LookupGuidedFailureModeString(value string) string

func LookupPackageDownloadString

func LookupPackageDownloadString(value bool) string

func ParseVariableStringArray

func ParseVariableStringArray(variables []string) (map[string]string, error)

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

func ToVariableStringArray(variables map[string]string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL