Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTagMismatch = errors.New("tag mismatch")
View Source
var ErrUsernameRequired = errors.New("username required")
Functions ¶
func SetStatefulFilename ¶
func SetStatefulFilename(filename string)
Types ¶
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
Click to show internal directories.
Click to hide internal directories.