Documentation ¶
Index ¶
- Constants
- func GetAllLibraryVariableSets(client *client.Client) ([]*variables.LibraryVariableSet, error)
- func GetSelectOptions(t *actiontemplates.ActionTemplateParameter) []*selectors.SelectOption[string]
- func PromptValue(ask question.Asker, variableType VariableType, callbacks *VariableCallbacks, ...) (string, error)
- type GetAccountsByTypeCallback
- type GetAllCertificatesCallback
- type GetAllLibraryVariableSetsCallback
- type GetAllWorkerPoolsCallback
- type GetProjectVariablesByGitRefCallback
- type GetProjectVariablesCallback
- type GetTenantVariablesCallback
- type GetVariableByIdCallback
- type VariableCallbacks
- type VariableType
Constants ¶
View Source
const ( VariableTypeString = VariableType("String") VariableTypeSensitive = VariableType("Sensitive") VariableTypeAwsAccount = VariableType("AmazonWebServicesAccount") VariableTypeAzureAccount = VariableType("AzureAccount") VariableTypeGoogleCloudAccount = VariableType("GoogleCloudAccount") VariableTypeWorkerPool = VariableType("WorkerPool") VariableTypeCertificate = VariableType("Certificate") VariableTypeBoolean = VariableType("Boolean") VariableTypeSelect = VariableType("Select") )
Variables ¶
This section is empty.
Functions ¶
func GetAllLibraryVariableSets ¶
func GetAllLibraryVariableSets(client *client.Client) ([]*variables.LibraryVariableSet, error)
func GetSelectOptions ¶
func GetSelectOptions(t *actiontemplates.ActionTemplateParameter) []*selectors.SelectOption[string]
func PromptValue ¶
func PromptValue(ask question.Asker, variableType VariableType, callbacks *VariableCallbacks, template *actiontemplates.ActionTemplateParameter) (string, error)
Types ¶
type GetAccountsByTypeCallback ¶
type GetAccountsByTypeCallback func(accountType accounts.AccountType) ([]accounts.IAccount, error)
type GetAllCertificatesCallback ¶
type GetAllCertificatesCallback func() ([]*certificates.CertificateResource, error)
type GetAllLibraryVariableSetsCallback ¶
type GetAllLibraryVariableSetsCallback func() ([]*variables.LibraryVariableSet, error)
type GetAllWorkerPoolsCallback ¶
type GetAllWorkerPoolsCallback func() ([]*workerpools.WorkerPoolListResult, error)
type GetProjectVariablesByGitRefCallback ¶ added in v1.5.0
type GetProjectVariablesCallback ¶
type GetProjectVariablesCallback func(projectId string) (*variables.VariableSet, error)
type GetTenantVariablesCallback ¶
type GetTenantVariablesCallback func(tenant *tenants.Tenant) (*variables.TenantVariables, error)
type GetVariableByIdCallback ¶
type VariableCallbacks ¶
type VariableCallbacks struct { GetAccountsByType GetAccountsByTypeCallback GetAllWorkerPools GetAllWorkerPoolsCallback GetAllCertificates GetAllCertificatesCallback GetProjectVariables GetProjectVariablesCallback GetProjectVariablesByGitRef GetProjectVariablesByGitRefCallback GetVariableById GetVariableByIdCallback GetTenantVariables GetTenantVariablesCallback }
func NewVariableCallbacks ¶
func NewVariableCallbacks(dependencies *cmd.Dependencies) *VariableCallbacks
type VariableType ¶
type VariableType string
Click to show internal directories.
Click to hide internal directories.