Documentation
¶
Index ¶
- func ChangeComponentSecret(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func NewSecretController() models.Controller
- type SecretHandler
- func (eh SecretHandler) ChangeComponentSecret(appName, envName, componentName, secretName string, ...) (*models.SecretParameters, error)
- func (eh SecretHandler) GetSecrets(appName, envName string) ([]models.Secret, error)
- func (eh SecretHandler) GetSecretsForDeployment(appName, envName, deploymentName string) ([]models.Secret, error)
- type SecretHandlerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeComponentSecret ¶
ChangeComponentSecret Modifies an application environment component secret
func NewSecretController ¶
func NewSecretController() 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 seqeunce they are passed to this function.
func (SecretHandler) ChangeComponentSecret ¶
func (eh SecretHandler) ChangeComponentSecret(appName, envName, componentName, secretName string, componentSecret models.SecretParameters) (*models.SecretParameters, error)
ChangeComponentSecret handler for HandleChangeComponentSecret
func (SecretHandler) GetSecrets ¶
func (eh SecretHandler) GetSecrets(appName, envName string) ([]models.Secret, error)
GetSecrets Lists environment secrets for application
func (SecretHandler) GetSecretsForDeployment ¶
func (eh SecretHandler) GetSecretsForDeployment(appName, envName, deploymentName string) ([]models.Secret, error)
GetSecretsForDeployment Lists environment secrets for application
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 WithEventHandler ¶
func WithEventHandler(eventHandler events.EventHandler) SecretHandlerOptions
WithEventHandler configures the eventHandler used by SecretHandler