Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OperationIn ¶
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func NewAuthorizer ¶
func NewAuthorizer() (*Authorizer, error)
func (*Authorizer) IsAuthorized ¶
func (a *Authorizer) IsAuthorized(role sqlcv1.TenantMemberRole, operation string) bool
type PermissionMap ¶
func LoadYaml ¶
func LoadYaml() (*PermissionMap, error)
func (*PermissionMap) HasPermission ¶
func (p *PermissionMap) HasPermission(roleName string, operation string) bool
func (*PermissionMap) ValidInheritance ¶
func (p *PermissionMap) ValidInheritance(roleName string) error
func (*PermissionMap) Validate ¶
func (p *PermissionMap) Validate() error
func (*PermissionMap) ValidateSpec ¶
func (p *PermissionMap) ValidateSpec(spec openapi3.T) error
Click to show internal directories.
Click to hide internal directories.