update

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: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagTenant             = "tenant"
	FlagProject            = "project"
	FlagEnvironment        = "environment"
	FlagLibraryVariableSet = "library-variable-set"
	FlagName               = "name"
	FlagValue              = "value"

	VariableOwnerTypeCommon  = "common"
	VariableOwnerTypeProject = "project"
)

Variables

This section is empty.

Functions

func NewCmdUpdate

func NewCmdUpdate(f factory.Factory) *cobra.Command

func PromptForEnvironment

func PromptForEnvironment(opts *UpdateOptions, variables *variables.TenantVariables) error

func PromptMissing

func PromptMissing(opts *UpdateOptions) error

Types

type PossibleVariable

type PossibleVariable struct {
	ID           string
	TemplateID   string
	Owner        string
	VariableName string
}

func PromptForVariable

func PromptForVariable(opts *UpdateOptions, tenantVariables *variables.TenantVariables, variableFilter func(opts *UpdateOptions, tenantVariables *variables.TenantVariables) []*PossibleVariable) (*PossibleVariable, error)

type UpdateFlags

type UpdateFlags struct {
	Tenant             *flag.Flag[string]
	Project            *flag.Flag[string]
	Environment        *flag.Flag[string]
	LibraryVariableSet *flag.Flag[string]
	Name               *flag.Flag[string]
	Value              *flag.Flag[string]
}

func NewUpdateFlags

func NewUpdateFlags() *UpdateFlags

Jump to

Keyboard shortcuts

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