Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestLogger ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
RedirectURI string
Name string
IdentifierURI string
SecretValidityMonths int
}
func GetTestConfig ¶
func GetTestConfig() AppConfig
type Provider ¶
type Provider interface {
CreateOrUpdateApp(AppConfig, context.Context, dex.Connector) (ProviderApp, error)
DeleteApp(string, context.Context) error
GetCredentialsForAuthenticatedApp(AppConfig) (map[string]string, error)
CleanCredentialsForAuthenticatedApp(AppConfig) error
DeleteAuthenticatedApp(AppConfig) error
GetName() string
GetProviderName() string
GetOwner() string
GetType() string
// Self-renewal methods - all providers must implement these
// Providers that don't support renewal should return false from SupportsServiceCredentialRenewal()
SupportsServiceCredentialRenewal() bool
ShouldRotateServiceCredentials(ctx context.Context, config AppConfig) (bool, error)
RotateServiceCredentials(ctx context.Context, config AppConfig) (map[string]string, error)
}
type ProviderConfig ¶ added in v0.14.0
type ProviderConfig struct {
Credential ProviderCredential
Log logr.Logger
ManagementClusterName string
}
type ProviderCredential ¶
type ProviderCredential struct {
Name string `yaml:"name"`
Owner string `yaml:"owner"`
Credentials map[string]string `yaml:"credentials"`
Description string `yaml:"description"`
}
func GetTestCredential ¶
func GetTestCredential() ProviderCredential
func ReadCredentials ¶
func ReadCredentials(fileLocation string) ([]ProviderCredential, error)
func (ProviderCredential) GetConnectorDescription ¶ added in v0.7.0
func (c ProviderCredential) GetConnectorDescription(providerDisplayName string) string
Click to show internal directories.
Click to hide internal directories.