package
Version:
v0.4.6-dev.7
Opens a new window with list of versions in this module.
Published: Jun 1, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Structs (not objects!) shared by the REST API and gortctl.
Documentation
¶
type Group struct {
Name string `json:"name,omitempty"`
Users []User `json:"users,omitempty"`
}
Group is a data struct used to exchange data between gortctl and the REST service.
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.
IsExpired returns true if the token has expired.
type User struct {
Email string `json:"email,omitempty"`
FullName string `json:"fullname,omitempty"`
Password string `json:"password,omitempty"`
Username string `json:"username,omitempty"`
}
User is a data struct used to exchange data between gortctl and the REST service.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.