Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
Name string `json:"name,omitempty"`
Roles []Role `json:"roles,omitempty"`
Users []User `json:"users,omitempty"`
}
Group is a data struct used to exchange data between a Gort client and a Gort controller's REST service.
type Role ¶
type Role struct {
Name string
Permissions RolePermissionList
Groups []Group
}
type RolePermission ¶
func (RolePermission) String ¶
func (p RolePermission) String() string
type RolePermissionList ¶
type RolePermissionList []RolePermission
func (RolePermissionList) Strings ¶
func (l RolePermissionList) Strings() []string
type Token ¶
type Token struct {
Duration time.Duration `json:"-"`
Token string `json:",omitempty"`
User string `json:",omitempty"`
ValidFrom time.Time `json:",omitempty"`
ValidUntil time.Time `json:",omitempty"`
}
Token contains all of the metadata for an access token.
type User ¶
type User struct {
Email string `json:"email,omitempty"`
FullName string `json:"fullname,omitempty"`
Password string `json:"password,omitempty"`
Username string `json:"username,omitempty"`
// Mappings stores this user's identity mappings for each chat service.
// The key is the adapter name as defined in the config; the value is the
// associated ID in the service the adapter connects to.
Mappings map[string]string `json:"mappings,omitempty"`
}
User is a data struct used to exchange data between a Gort client and a Gort controller REST service.
Click to show internal directories.
Click to hide internal directories.