executionscommon

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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