Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func NewAuthorizer ¶
func NewAuthorizer(cfg Config) *Authorizer
func (*Authorizer) Enabled ¶
func (a *Authorizer) Enabled() bool
type Config ¶
type Config struct {
Enabled bool `json:"enabled"`
DefaultPolicy string `json:"default_policy"`
Principals []PrincipalRules `json:"principals"`
}
type PrincipalRules ¶
Click to show internal directories.
Click to hide internal directories.