Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationData ¶
type AuthenticationEntity ¶
type AuthenticationEntity struct { Identity Identity `json:"identity"` AuthenticationType AuthenticationType `json:"authentication_type"` AuthenticationData AuthenticationData `json:"authentication_data"` }
type AuthenticationType ¶
type AuthenticationType string
const ( TokenType AuthenticationType = "token" BasicAuthType AuthenticationType = "basic-auth" )
type SecretProvider ¶
type SecretProvider struct { AuthenticationEntities []AuthenticationEntity AuthenticationEntityMapping map[AuthenticationType]map[Identity]AuthenticationEntity }
func NewSecretProvider ¶
func NewSecretProvider(filePath string) (*SecretProvider, error)
func (*SecretProvider) GetApplicationBasicAuth ¶
func (o *SecretProvider) GetApplicationBasicAuth(Identity Identity) (username, passwd string, err error)
func (*SecretProvider) GetApplicationToken ¶
func (o *SecretProvider) GetApplicationToken(Identity Identity) (token string, err error)
Click to show internal directories.
Click to hide internal directories.