Documentation ¶
Index ¶
- func ManagerFactories() map[string]ManagerFactory
- func NewVariables(secrets Secrets, teamName string, pipelineName string, allowRootPath bool) vars.Variables
- func Register(name string, managerFactory ManagerFactory)
- type CacheEntry
- type CachedSecrets
- type CredentialManagementConfig
- type HealthResponse
- type Manager
- type ManagerFactory
- type Managers
- type Params
- type RetryableSecrets
- type SecretCacheConfig
- type SecretLookupPath
- type SecretLookupWithPrefix
- type SecretLookupWithTemplate
- type SecretRetryConfig
- type SecretTemplate
- type Secrets
- type SecretsFactory
- type SetPipelinePlan
- type Source
- type String
- type TaskParamsValidator
- type TaskVarsValidator
- type VarSourcePool
- type VariableLookupFromSecrets
- type VersionedResourceType
- type VersionedResourceTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManagerFactories ¶
func ManagerFactories() map[string]ManagerFactory
func NewVariables ¶
func Register ¶
func Register(name string, managerFactory ManagerFactory)
Types ¶
type CacheEntry ¶
type CacheEntry struct {
// contains filtered or unexported fields
}
type CachedSecrets ¶
type CachedSecrets struct {
// contains filtered or unexported fields
}
func NewCachedSecrets ¶
func NewCachedSecrets(secrets Secrets, cacheConfig SecretCacheConfig) *CachedSecrets
func (*CachedSecrets) NewSecretLookupPaths ¶
func (cs *CachedSecrets) NewSecretLookupPaths(teamName string, pipelineName string, allowRootPath bool) []SecretLookupPath
type CredentialManagementConfig ¶
type CredentialManagementConfig struct { RetryConfig SecretRetryConfig CacheConfig SecretCacheConfig }
type HealthResponse ¶
type ManagerFactory ¶
type RetryableSecrets ¶
type RetryableSecrets struct {
// contains filtered or unexported fields
}
func (RetryableSecrets) NewSecretLookupPaths ¶
func (rs RetryableSecrets) NewSecretLookupPaths(teamName string, pipelineName string, allowRootPath bool) []SecretLookupPath
NewSecretLookupPaths defines how variables will be searched in the underlying secret manager
type SecretCacheConfig ¶
type SecretCacheConfig struct { Enabled bool `long:"secret-cache-enabled" description:"Enable in-memory cache for secrets"` Duration time.Duration `` /* 204-byte string literal not displayed */ DurationNotFound time.Duration `` /* 150-byte string literal not displayed */ PurgeInterval time.Duration `` /* 134-byte string literal not displayed */ }
type SecretLookupPath ¶
type SecretLookupPath interface {
VariableToSecretPath(vars.VariableReference) (vars.VariableReference, error)
}
SecretLookupPath transforms variable name into full secret path
func NewSecretLookupWithPrefix ¶
func NewSecretLookupWithPrefix(prefix string) SecretLookupPath
func NewSecretLookupWithTemplate ¶
func NewSecretLookupWithTemplate(pathTemplate *SecretTemplate, teamName string, pipelineName string) SecretLookupPath
type SecretLookupWithPrefix ¶
type SecretLookupWithPrefix struct {
Prefix string
}
SecretLookupWithPrefix is an implementation which returns [prefix][separator][varName]
func (SecretLookupWithPrefix) VariableToSecretPath ¶
func (sl SecretLookupWithPrefix) VariableToSecretPath(ref vars.VariableReference) (vars.VariableReference, error)
type SecretLookupWithTemplate ¶
type SecretLookupWithTemplate struct { PathTemplate *SecretTemplate TeamName string PipelineName string }
func (SecretLookupWithTemplate) VariableToSecretPath ¶
func (sl SecretLookupWithTemplate) VariableToSecretPath(ref vars.VariableReference) (vars.VariableReference, error)
type SecretRetryConfig ¶
type SecretTemplate ¶
SecretLookupWithTemplate uses the given template to construct a lookup path specific to a team and (optionally) pipeline
func BuildSecretTemplate ¶
func BuildSecretTemplate(name, tmpl string) (*SecretTemplate, error)
type Secrets ¶
type Secrets interface { // Every credential manager needs to be able to return (secret, secret_expiration_time, exists, error) based on the secret path Get(string) (interface{}, *time.Time, bool, error) // NewSecretLookupPaths returns an instance of lookup policy, which can transform pipeline ((var)) into one or more secret paths, based on team name and pipeline name NewSecretLookupPaths(string, string, bool) []SecretLookupPath }
func NewRetryableSecrets ¶
func NewRetryableSecrets(secrets Secrets, retryConfig SecretRetryConfig) Secrets
type SecretsFactory ¶
type SecretsFactory interface { // NewSecrets returns an instance of a secret manager, capable of retrieving individual secrets NewSecrets() Secrets }
type SetPipelinePlan ¶
type SetPipelinePlan struct {
// contains filtered or unexported fields
}
func NewSetPipelinePlan ¶
func NewSetPipelinePlan(variables vars.Variables, plan atc.SetPipelinePlan) SetPipelinePlan
func (SetPipelinePlan) Evaluate ¶
func (s SetPipelinePlan) Evaluate() (atc.SetPipelinePlan, error)
type TaskParamsValidator ¶
type TaskParamsValidator struct {
// contains filtered or unexported fields
}
func NewTaskParamsValidator ¶
func NewTaskParamsValidator(variables vars.Variables, params atc.Params) TaskParamsValidator
func (TaskParamsValidator) Validate ¶
func (s TaskParamsValidator) Validate() error
type TaskVarsValidator ¶
type TaskVarsValidator struct {
// contains filtered or unexported fields
}
func NewTaskVarsValidator ¶
func NewTaskVarsValidator(variables vars.Variables, taskVars atc.Params) TaskVarsValidator
func (TaskVarsValidator) Validate ¶
func (s TaskVarsValidator) Validate() error
type VarSourcePool ¶
type VariableLookupFromSecrets ¶
type VariableLookupFromSecrets struct { Secrets Secrets LookupPaths []SecretLookupPath }
func (VariableLookupFromSecrets) Get ¶
func (sl VariableLookupFromSecrets) Get(varDef vars.VariableDefinition) (interface{}, bool, error)
func (VariableLookupFromSecrets) List ¶
func (sl VariableLookupFromSecrets) List() ([]vars.VariableDefinition, error)
type VersionedResourceType ¶
type VersionedResourceType struct { atc.VersionedResourceType Source Source }
type VersionedResourceTypes ¶
type VersionedResourceTypes []VersionedResourceType
func NewVersionedResourceTypes ¶
func NewVersionedResourceTypes(variables vars.Variables, rawTypes atc.VersionedResourceTypes) VersionedResourceTypes
func (VersionedResourceTypes) Evaluate ¶
func (types VersionedResourceTypes) Evaluate() (atc.VersionedResourceTypes, error)
func (VersionedResourceTypes) Lookup ¶
func (types VersionedResourceTypes) Lookup(name string) (VersionedResourceType, bool)
func (VersionedResourceTypes) Without ¶
func (types VersionedResourceTypes) Without(name string) VersionedResourceTypes
Source Files ¶
Click to show internal directories.
Click to hide internal directories.