Documentation
¶
Index ¶
- func NewSecretController(tlsValidator tlsvalidation.Validator) models.Controller
- type SecretHandler
- func (eh *SecretHandler) ChangeComponentSecret(ctx context.Context, appName, envName, componentName, secretName string, ...) error
- func (eh *SecretHandler) GetAzureKeyVaultSecretVersions(appName, envName, componentName, azureKeyVaultName, secretId string) ([]models.AzureKeyVaultSecretVersion, error)
- func (eh *SecretHandler) UpdateComponentExternalDNSSecretData(ctx context.Context, appName, envName, componentName, fqdn string, ...) error
- type SecretHandlerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretController ¶
func NewSecretController(tlsValidator tlsvalidation.Validator) models.Controller
NewSecretController Constructor
Types ¶
type SecretHandler ¶
type SecretHandler struct {
// contains filtered or unexported fields
}
SecretHandler Instance variables
func Init ¶
func Init(opts ...SecretHandlerOptions) *SecretHandler
Init Constructor. Use the WithAccounts configuration function to configure a 'ready to use' SecretHandler. SecretHandlerOptions are processed in the sequence they are passed to this function.
func (*SecretHandler) ChangeComponentSecret ¶
func (eh *SecretHandler) ChangeComponentSecret(ctx context.Context, appName, envName, componentName, secretName string, componentSecret models.SecretParameters) error
ChangeComponentSecret handler for HandleChangeComponentSecret
func (*SecretHandler) GetAzureKeyVaultSecretVersions ¶
func (eh *SecretHandler) GetAzureKeyVaultSecretVersions(appName, envName, componentName, azureKeyVaultName, secretId string) ([]models.AzureKeyVaultSecretVersion, error)
GetAzureKeyVaultSecretVersions Gets list of Azure Key vault secret versions for the storage in the component
func (*SecretHandler) UpdateComponentExternalDNSSecretData ¶
type SecretHandlerOptions ¶
type SecretHandlerOptions func(*SecretHandler)
SecretHandlerOptions defines a configuration function
func WithAccounts ¶
func WithAccounts(accounts apiModels.Accounts) SecretHandlerOptions
WithAccounts configures all SecretHandler fields
func WithTLSValidator ¶
func WithTLSValidator(tlsValidator tlsvalidation.Validator) SecretHandlerOptions
WithAccounts configures all SecretHandler fields
Click to show internal directories.
Click to hide internal directories.