Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultIdentityType = api.IdentityType_IDENTITY_TYPE_SUB DefaultUsername = "username" DefaultPolicyName = "policyName" DefaultDecision = "allowed" OverridePolicyPath = "override.policy.path" )
Variables ¶
This section is empty.
Functions ¶
func Policy ¶
func Policy(path string) *middleware.Policy
Types ¶
type Case ¶
type Case struct { Name string Client *mock.Authorizer }
type Override ¶
type Override func(*Overrides)
func IdentityType ¶
func IdentityType(idtype api.IdentityType) Override
func PolicyName ¶
func PolicyPath ¶
func WithDecision ¶
Click to show internal directories.
Click to hide internal directories.