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
func DefaultCloudChains() map[catalogs.ProviderAuthenticationPrimitive]credentials.CloudChain
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
ProductionRegistry returns Starport's compiled authentication primitives.
Click to show internal directories.
Click to hide internal directories.