providerauth

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package providerauth applies catalog-declared authentication primitives to provider inference requests.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrPrimitiveUnsupported reports an authentication primitive without a
	// compiled request applicator.
	ErrPrimitiveUnsupported = errors.New("provider authentication primitive is unsupported")
	// ErrMaterialRequired reports an authenticated request without resolved
	// credential material.
	ErrMaterialRequired = errors.New("provider credential material is required")
	// ErrPlacementValueRequired reports a placement whose selected material
	// does not contain the named field.
	ErrPlacementValueRequired = errors.New("provider credential placement value is required")
)

Functions

func DefaultCloudChains added in v1.0.2

DefaultCloudChains returns compiled authentication primitives without a provider membership list.

Types

type Applicator added in v1.0.2

type Applicator func(credentials.Material, *http.Request) error

Applicator applies one compiled authentication primitive to an HTTP request. Provider membership and credential values are outside this contract.

type Registry added in v1.0.2

type Registry struct {
	// contains filtered or unexported fields
}

Registry stores request applicators by authentication primitive.

func NewRegistry added in v1.0.2

func NewRegistry(applicators map[catalogs.ProviderAuthenticationPrimitive]Applicator) (*Registry, error)

NewRegistry validates and stores request applicators by authentication primitive.

func ProductionRegistry added in v1.0.2

func ProductionRegistry() (*Registry, error)

ProductionRegistry returns Starport's compiled authentication primitives.

func (*Registry) Apply added in v1.0.2

func (r *Registry) Apply(material credentials.Material, request *http.Request) error

Apply selects an applicator from the material's exact catalog profile.

func (*Registry) Supports added in v1.0.2

func (r *Registry) Supports(primitive catalogs.ProviderAuthenticationPrimitive) bool

Supports reports whether Starport compiled the authentication primitive.

Jump to

Keyboard shortcuts

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