Documentation
¶
Overview ¶
Package providers hosts concrete provider implementations used by the registry
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSpecOAuthRequired indicates the provider spec is missing OAuth configuration ErrSpecOAuthRequired = errors.New("integrations/providers: oauth spec required") // ErrSpecWorkloadIdentityRequired indicates the provider spec is missing workload identity configuration ErrSpecWorkloadIdentityRequired = errors.New("integrations/providers: workload identity spec required") ErrTokenUnavailable = errors.New("integrations/providers: oauth token unavailable") // ErrRelyingPartyInit indicates Zitadel RP construction failed ErrRelyingPartyInit = errors.New("integrations/providers: relying party initialization failed") // ErrStateGeneration indicates random state generation failed ErrStateGeneration = errors.New("integrations/providers: state generation failed") // ErrCodeExchange indicates the authorization code exchange failed ErrCodeExchange = errors.New("integrations/providers: code exchange failed") // ErrTokenRefresh indicates token refresh failed ErrTokenRefresh = errors.New("integrations/providers: token refresh failed") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
// Type returns the provider type this builder handles
Type() types.ProviderType
// Build constructs the provider instance from the spec
Build(ctx context.Context, spec config.ProviderSpec) (Provider, error)
}
Builder creates provider instances from specs
type BuilderFunc ¶
type BuilderFunc struct {
ProviderType types.ProviderType
BuildFunc func(ctx context.Context, spec config.ProviderSpec) (Provider, error)
}
BuilderFunc adapts a function to the Builder interface
func (BuilderFunc) Build ¶
func (f BuilderFunc) Build(ctx context.Context, spec config.ProviderSpec) (Provider, error)
Build constructs the provider using the wrapped function
func (BuilderFunc) Type ¶
func (f BuilderFunc) Type() types.ProviderType
Type returns the provider identifier handled by the builder
Directories
¶
| Path | Synopsis |
|---|---|
|
Package catalog exposes the list of default provider builders
|
Package catalog exposes the list of default provider builders |
Click to show internal directories.
Click to hide internal directories.