Documentation ¶
Index ¶
- Constants
- func Decision(authorize bool) *authorizer.Decision
- func Policy(path string) middleware.Policy
- func Request(o ...Override) *authorizer.IsRequest
- type Case
- type Options
- type Override
- func Identity(id string) Override
- func IdentityType(idtype api.IdentityType) Override
- func PolicyInstanceLabel(label string) Override
- func PolicyName(name string) Override
- func PolicyPath(path string) Override
- func Resource(resource *structpb.Struct) Override
- func WithDecision(decision string) Override
- type Overrides
Constants ¶
View Source
const ( DefaultIdentityType = api.IdentityType_IDENTITY_TYPE_SUB DefaultUsername = "username" DefaultPolicyName = "policyName" DefaultDecision = "allowed" DefaultInstanceLabel = "label" 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 PolicyInstanceLabel ¶
func PolicyName ¶
func PolicyPath ¶
func WithDecision ¶
Click to show internal directories.
Click to hide internal directories.