Documentation ¶
Index ¶
Constants ¶
View Source
const ( CapabilityKey = "capabilities" PartnerKey = "allowedResources.allowedPartners" )
View Source
const ( OutcomeLabel = "outcome" ReasonLabel = "reason" ClientIDLabel = "clientid" EndpointLabel = "endpoint" PartnerIDLabel = "partnerid" )
labels
View Source
const ( RejectedOutcome = "rejected" AcceptedOutcome = "accepted" // reasons TokenMissing = "auth_missing" UndeterminedPartnerID = "undetermined_partner_ID" UndeterminedCapabilities = "undetermined_capabilities" EmptyCapabilitiesList = "empty_capabilities_list" NoCapabilitiesMatch = "no_capabilities_match" )
outcomes
View Source
const (
AuthCapabilityCheckOutcome = "auth_capability_check"
)
Names for our metrics
Variables ¶
View Source
var ( ErrNoVals = errors.New("expected at least one value") ErrNoAuth = errors.New("couldn't get request info: authorization not found") ErrNonstringVal = errors.New("expected value to be a string") ErrNoValidCapabilityFound = errors.New("no valid capability for endpoint") ErrNilAttributes = fmt.Errorf("nil attributes interface") )
Functions ¶
func NewCapabilityChecker ¶
Types ¶
type AuthCapabilityCheckMeasures ¶
AuthCapabilityCheckMeasures describes the defined metrics that will be used by clients
func NewAuthCapabilityCheckMeasures ¶
func NewAuthCapabilityCheckMeasures(p provider.Provider) *AuthCapabilityCheckMeasures
NewAuthCapabilityCheckMeasures realizes desired metrics
Click to show internal directories.
Click to hide internal directories.