forked from TrueCloudLab/lego
6004e599ed
* feat: add dep configuration files. * chore: add vendor folder. * refactor: update Dockerfile. * review: remove git from Dockerfile. * review: remove RUN apk. * review: dep status. * feat: added .dockerignore
19 lines
576 B
Go
19 lines
576 B
Go
package account
|
|
|
|
// User wraps an NS1 /account/users resource
|
|
type User struct {
|
|
// Read-only fields
|
|
LastAccess float64 `json:"last_access"`
|
|
|
|
Name string `json:"name"`
|
|
Username string `json:"username"`
|
|
Email string `json:"email"`
|
|
TeamIDs []string `json:"teams"`
|
|
Notify NotificationSettings `json:"notify"`
|
|
Permissions PermissionsMap `json:"permissions"`
|
|
}
|
|
|
|
// NotificationSettings wraps a User's "notify" attribute
|
|
type NotificationSettings struct {
|
|
Billing bool `json:"billing"`
|
|
}
|