Documentation ¶
Index ¶
- Constants
- func ConvertProcessScopesToReference(processes []*resources.ProcessReferenceDataItem) []*resources.ReferenceDataItem
- func PromptScope(ask question.Asker, scopeDescription string, ...) ([]string, error)
- func PromptScopes(asker question.Asker, projectVariables *variables.VariableSet, ...) error
- func PromptValue(ask question.Asker, variableType string, callbacks *VariableCallbacks) (string, error)
- func RegisterScopeFlags(cmd *cobra.Command, scopeFlags *ScopeFlags)
- func ToScopeValues(variable *variables.Variable, ...) (*variables.VariableScopeValues, error)
- func ToVariableScope(projectVariables *variables.VariableSet, opts *ScopeFlags, ...) (*variables.VariableScope, error)
- type GetAccountsByTypeCallback
- type GetAllCertificatesCallback
- type GetAllWorkerPoolsCallback
- type GetProjectVariablesCallback
- type GetVariableByIdCallback
- type ScopeFlags
- type VariableCallbacks
Constants ¶
View Source
const ( FlagEnvironmentScope = "environment-scope" FlagTargetScope = "target-scope" FlagStepScope = "step-scope" FlagRoleScope = "role-scope" FlagChannelScope = "channel-scope" FlagTagScope = "tag-scope" FlagProcessScope = "process-scope" )
Variables ¶
This section is empty.
Functions ¶
func ConvertProcessScopesToReference ¶
func ConvertProcessScopesToReference(processes []*resources.ProcessReferenceDataItem) []*resources.ReferenceDataItem
func PromptScope ¶
func PromptScope(ask question.Asker, scopeDescription string, items []*resources.ReferenceDataItem, displaySelector func(i *resources.ReferenceDataItem) string) ([]string, error)
func PromptScopes ¶
func PromptScopes(asker question.Asker, projectVariables *variables.VariableSet, flags *ScopeFlags, isPrompted bool) error
func PromptValue ¶
func RegisterScopeFlags ¶
func RegisterScopeFlags(cmd *cobra.Command, scopeFlags *ScopeFlags)
func ToScopeValues ¶
func ToScopeValues(variable *variables.Variable, variableScopeValues *variables.VariableScopeValues) (*variables.VariableScopeValues, error)
func ToVariableScope ¶
func ToVariableScope(projectVariables *variables.VariableSet, opts *ScopeFlags, project *projects.Project) (*variables.VariableScope, error)
Types ¶
type GetAccountsByTypeCallback ¶
type GetAccountsByTypeCallback func(accountType accounts.AccountType) ([]accounts.IAccount, error)
type GetAllCertificatesCallback ¶
type GetAllCertificatesCallback func() ([]*certificates.CertificateResource, error)
type GetAllWorkerPoolsCallback ¶
type GetAllWorkerPoolsCallback func() ([]*workerpools.WorkerPoolListResult, error)
type GetProjectVariablesCallback ¶
type GetProjectVariablesCallback func(projectId string) (*variables.VariableSet, error)
type GetVariableByIdCallback ¶
type ScopeFlags ¶
type ScopeFlags struct { EnvironmentsScopes *flag.Flag[[]string] ChannelScopes *flag.Flag[[]string] TargetScopes *flag.Flag[[]string] StepScopes *flag.Flag[[]string] RoleScopes *flag.Flag[[]string] TagScopes *flag.Flag[[]string] ProcessScopes *flag.Flag[[]string] }
func NewScopeFlags ¶
func NewScopeFlags() *ScopeFlags
type VariableCallbacks ¶
type VariableCallbacks struct { GetAccountsByType GetAccountsByTypeCallback GetAllWorkerPools GetAllWorkerPoolsCallback GetAllCertificates GetAllCertificatesCallback GetProjectVariables GetProjectVariablesCallback GetVariableById GetVariableByIdCallback }
func NewVariableCallbacks ¶
func NewVariableCallbacks(dependencies *cmd.Dependencies) *VariableCallbacks
Click to show internal directories.
Click to hide internal directories.