Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct { ID string `json:"id"` Referrer string `json:"referrer"` Groups map[string]*Group `json:"groups"` Permissions map[string]*Permission `json:"permissions"` }
Account type of a permission tree
func NewInitAccount ¶
NewInitAccount new account with owner and active
type Item ¶
type Item struct { ID string `json:"id"` // key pair id Permission string `json:"permission"` IsKeyPair bool `json:"is_key_pair"` Weight int `json:"weight"` }
Item identity of a permission owner
Click to show internal directories.
Click to hide internal directories.