strategy

package
v0.0.0-...-f942f97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BasicAuthUsernameKey = "username"
	BasicAuthPasswordKey = "password"
)
View Source
const (
	CertificateGenPrivateKeyKey = "key"
	CertificateGenCertKey       = "crt"
	CertificateGenCNKey         = "commonName"
)
View Source
const (
	OauthClientIDKey     = "clientId"
	OauthClientSecretKey = "clientSecret"
	HeadersKey           = "headers"
	QueryParametersKey   = "queryParameters"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessStrategy

type AccessStrategy interface {
	ToCredentials(secretData SecretData, appCredentials *applications.Credentials) (model.CredentialsWithCSRF, apperrors.AppError)
}

type Factory

type Factory interface {
	NewSecretModificationStrategy(credentials *model.CredentialsWithCSRF) (ModificationStrategy, apperrors.AppError)
	NewSecretAccessStrategy(credentials *applications.Credentials) (AccessStrategy, apperrors.AppError)
}

func NewSecretsStrategyFactory

func NewSecretsStrategyFactory(certificateGenerator certificates.Generator) Factory

type ModificationStrategy

type ModificationStrategy interface {
	CredentialsProvided(credentials *model.CredentialsWithCSRF) bool
	CreateSecretData(credentials *model.CredentialsWithCSRF) (SecretData, apperrors.AppError)
	ToCredentialsInfo(credentials *model.CredentialsWithCSRF, secretName string) applications.Credentials
	ShouldUpdate(currentData SecretData, newData SecretData) bool
}

type SecretData

type SecretData map[string][]byte

Directories

Path Synopsis
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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