Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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"` Username *string `json:"username,omitempty"` Permissions []string `json:"permissions"` Expires *time.Time `json:"expires"` 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.