providers

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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 indicates the stored credential did not include an oauth2 token
	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

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

type Provider

type Provider interface {
	types.Provider
}

Provider ensures all concrete providers satisfy the shared contract

Directories

Path Synopsis
Package catalog exposes the list of default provider builders
Package catalog exposes the list of default provider builders

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL