Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultSeperator = "."
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuthCtxType ¶ added in v0.2.0
type AuthCtxType string
const AuthCtxKey AuthCtxType = "GoAuthzCtx"
type Authz ¶
type Authz struct {
// contains filtered or unexported fields
}
Authz exposes a single API for authorization
func (*Authz) RegisterPolicy ¶
type AuthzOpts ¶
type AuthzOpts struct {
AuthCtxKey AuthCtxType
Seperator string
}
type BasePolicy ¶
type BasePolicy struct {
// contains filtered or unexported fields
}
func NewBasePolicy ¶
func NewBasePolicy() *BasePolicy
func (*BasePolicy) GetRules ¶
func (bP *BasePolicy) GetRules() RuleStore
func (*BasePolicy) SetRule ¶
func (bP *BasePolicy) SetRule(name string, rule Rule)
type DefaultPolicy ¶
type DefaultPolicy struct {
*BasePolicy
}
func (*DefaultPolicy) GetName ¶
func (df *DefaultPolicy) GetName() string
Click to show internal directories.
Click to hide internal directories.