Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TokenNotFoundError = errors.New("Token not found") NotPermittedError = errors.New("Operation not permitted") )
View Source
var (
DEFAULTS = []string{"root", "user", "app"}
)
View Source
var Service = new(acm)
Functions ¶
This section is empty.
Types ¶
type ACM ¶
type ACM interface { RegisterPermission(name string, defaults map[string]bool, desc map[string]string) error CreateToken(defaults []string, layers ...map[string]bool) (string, error) UpdateToken(id string, layers ...map[string]bool) error GetToken(id string) (*token, error) CheckTokenPermission(token string, permission string) (error, bool) GetPermissionDescription(name string) (map[string]string, error) }
Click to show internal directories.
Click to hide internal directories.