Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAuthorizer ¶
type APIAuthorizer struct {
// contains filtered or unexported fields
}
func NewAPIAuthorizer ¶
func NewAPIAuthorizer() *APIAuthorizer
func (*APIAuthorizer) Can ¶
func (a *APIAuthorizer) Can(subject APIKeySubject, resource BrowserResource, action string) bool
type APIKeySubject ¶
func (APIKeySubject) GetRoles ¶
func (s APIKeySubject) GetRoles() []string
type BrowserResource ¶
type BrowserResource struct {
AppID string
}
type OwnedResource ¶
type OwnedResource struct {
OwnerUserID string
}
type WebAuthorizer ¶
type WebAuthorizer struct {
// contains filtered or unexported fields
}
func NewWebAuthorizer ¶
func NewWebAuthorizer() *WebAuthorizer
func (*WebAuthorizer) Can ¶
func (a *WebAuthorizer) Can(subject WebSubject, resource OwnedResource, action string) bool
type WebSubject ¶
func (WebSubject) GetRoles ¶
func (s WebSubject) GetRoles() []string
Click to show internal directories.
Click to hide internal directories.