Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTagMismatch = errors.New("tag mismatch")
Functions ¶
func SetStatefulFilename ¶
func SetStatefulFilename(filename string)
Types ¶
type JWT ¶
func (*JWT) NeedsUsername ¶
type Stateful ¶
type Stateful struct {
Token string `json:"token"`
Group string `json:"group"`
IncludeSubgroups bool `json:"includeSubgroups,omitempty"`
Username *string `json:"username,omitempty"`
Permissions []string `json:"permissions"`
Expires *time.Time `json:"expires,omitempty"`
NotBefore *time.Time `json:"not-before,omitempty"`
IssuedAt *time.Time `json:"issuedAt,omitempty"`
IssuedBy *string `json:"issuedBy,omitempty"`
}
A stateful token
func ListSubtree ¶
ListSubtree returns every token whose group is group or a subgroup of it (group/...). It backs the operator-room dashboard, which lists the hub's own tokens together with those of its per-client child rooms.
func (*Stateful) NeedsUsername ¶
Click to show internal directories.
Click to hide internal directories.