Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct {
Managed configoptional.Optional[ManagedIdentity] `mapstructure:"managed_identity"`
Workload configoptional.Optional[WorkloadIdentity] `mapstructure:"workload_identity"`
ServicePrincipal configoptional.Optional[ServicePrincipal] `mapstructure:"service_principal"`
Server configoptional.Optional[Server] `mapstructure:"server"`
UseDefault bool `mapstructure:"use_default"`
Scopes []string `mapstructure:"scopes"`
// contains filtered or unexported fields
}
type ManagedIdentity ¶
type ManagedIdentity struct {
// if left empty, then it is system managed
ClientID string `mapstructure:"client_id"`
// contains filtered or unexported fields
}
func (*ManagedIdentity) Validate ¶
func (*ManagedIdentity) Validate() error
type ServicePrincipal ¶
type ServicePrincipal struct {
TenantID string `mapstructure:"tenant_id"`
ClientID string `mapstructure:"client_id"`
ClientSecret string `mapstructure:"client_secret"`
ClientCertificatePath string `mapstructure:"client_certificate_path"`
// contains filtered or unexported fields
}
func (*ServicePrincipal) Validate ¶
func (cfg *ServicePrincipal) Validate() error
type WorkloadIdentity ¶
type WorkloadIdentity struct {
ClientID string `mapstructure:"client_id"`
TenantID string `mapstructure:"tenant_id"`
FederatedTokenFile string `mapstructure:"federated_token_file"`
// contains filtered or unexported fields
}
func (*WorkloadIdentity) Validate ¶
func (cfg *WorkloadIdentity) Validate() error
Click to show internal directories.
Click to hide internal directories.