secrets

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeComponentSecret

func ChangeComponentSecret(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

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) error

ChangeComponentSecret handler for HandleChangeComponentSecret

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

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL