Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IntegrationConfig ¶ added in v0.0.6
type IntegrationConfig struct {
ID string
Provider string
Name string
// WebDav // FTP
Username string
Password string
Address string
// FTP
ActiveTransfers bool
// Insecure ignore TLS cert errors
Insecure bool
// Dropbox
Accesstoken string
// Localfs
//TODO: experimental, security blah blah
Path string
}
IntegrationConfig config for various integrations
type User ¶
type User struct {
ID string
Email string
EmailVerified bool
Password string
Name string
Nickname string
GivenName string
FamilyName string
CreatedAt time.Time
UpdatedAt time.Time
// IsAdmin indicates if the user can managed others users in this instance.
IsAdmin bool
// Sync15 if the user should use this sync type (which uses a lot less bandwidth).
Sync15 bool
// AdditionalScopes is a list of scopes to add to the user session.
AdditionalScopes []string
// Integrations stores the list of "Integrations" as shown on the tablet.
Integrations []IntegrationConfig
}
User holds the user profile
func (*User) CheckPassword ¶
CheckPassword checks the password
func (*User) SetPassword ¶
SetPassword sets the user password (and hashes it)
Click to show internal directories.
Click to hide internal directories.