providers

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 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")
	// ErrProviderNil indicates a builder returned a nil provider without an error
	ErrProviderNil = errors.New("integrations/providers: provider is nil")
)

Functions

This section is empty.

Types

type BaseProvider added in v1.9.3

type BaseProvider struct {
	// Provider is the unique identifier for this provider (e.g. "github", "slack", etc.)
	Provider types.ProviderType
	// Caps is a set of capability flags for this provider
	Caps types.ProviderCapabilities
	// Ops is a list of operations published by this provider
	Ops []types.OperationDescriptor
	// Clients is a list of client descriptors published by this provider
	Clients []types.ClientDescriptor
}

BaseProvider stores shared provider metadata

func NewBaseProvider added in v1.9.3

NewBaseProvider constructs a BaseProvider with shared metadata

func (*BaseProvider) Capabilities added in v1.9.3

func (p *BaseProvider) Capabilities() types.ProviderCapabilities

Capabilities returns capability flags

func (*BaseProvider) ClientDescriptors added in v1.9.3

func (p *BaseProvider) ClientDescriptors() []types.ClientDescriptor

ClientDescriptors returns provider-published client descriptors

func (*BaseProvider) Operations added in v1.9.3

func (p *BaseProvider) Operations() []types.OperationDescriptor

Operations returns provider-published operations

func (*BaseProvider) Type added in v1.9.3

func (p *BaseProvider) Type() types.ProviderType

Type returns the provider identifier

type Builder

type Builder interface {
	// Type returns the provider type this builder constructs
	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 identifies the provider type this builder constructs
	ProviderType types.ProviderType
	// BuildFunc is the function that constructs the provider instance from the spec
	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 apikey implements the apikey integration provider.
Package apikey implements the apikey integration provider.
Package aws implements the consolidated AWS integration provider.
Package aws implements the consolidated AWS integration provider.
Package awssts implements the awssts integration provider.
Package awssts implements the awssts integration provider.
Package azureentraid implements the azureentraid integration provider.
Package azureentraid implements the azureentraid integration provider.
Package azuresecuritycenter implements the azuresecuritycenter integration provider.
Package azuresecuritycenter implements the azuresecuritycenter integration provider.
Package buildkite implements the buildkite integration provider.
Package buildkite implements the buildkite integration provider.
Package catalog exposes the list of default provider builders
Package catalog exposes the list of default provider builders
Package cloudflare implements the cloudflare integration provider.
Package cloudflare implements the cloudflare integration provider.
Package gcpscc implements the gcpscc integration provider.
Package gcpscc implements the gcpscc integration provider.
Package github implements the github integration provider.
Package github implements the github integration provider.
Package googleworkspace implements the googleworkspace integration provider.
Package googleworkspace implements the googleworkspace integration provider.
Package microsoftteams implements the microsoftteams integration provider.
Package microsoftteams implements the microsoftteams integration provider.
Package oauth implements the oauth integration provider.
Package oauth implements the oauth integration provider.
Package oidcgeneric implements the oidcgeneric integration provider.
Package oidcgeneric implements the oidcgeneric integration provider.
Package okta implements the okta integration provider.
Package okta implements the okta integration provider.
Package schematest provides shared test helpers for validating JSON schema structures across integration provider test files.
Package schematest provides shared test helpers for validating JSON schema structures across integration provider test files.
Package slack implements the slack integration provider.
Package slack implements the slack integration provider.
Package vercel implements the vercel integration provider.
Package vercel implements the vercel integration provider.

Jump to

Keyboard shortcuts

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