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 ¶
Click to show internal directories.
Click to hide internal directories.