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 `yaml:"username,omitempty"`
Password string `yaml:"password,omitempty"`
Address string `yaml:"address,omitempty"`
// FTP
ActiveTransfers bool `yaml:"activetransfers,omitempty"`
// Insecure ignore TLS cert errors
Insecure bool `yaml:"insecure,omitempty"`
// Dropbox
Accesstoken string `yaml:"accesstoken,omitempty"`
// Localfs
// really dangerous as it allows path traversal
Path string `yaml:"path,omitempty"`
// Webhook
Endpoint string `yaml:"endpoint,omitempty"`
}
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.