Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Groups ¶
type Groups struct {
Groups []string `json:"groups" xml:"groups>element"`
}
Groups holds group data
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler renders user data for the user id given in the url path
func (*Handler) GetGroups ¶
func (h *Handler) GetGroups(w http.ResponseWriter, r *http.Request)
GetGroups handles GET requests on /cloud/users/groups TODO: implement
type Quota ¶
type Quota struct { Free int64 `json:"free" xml:"free"` Used int64 `json:"used" xml:"used"` Total int64 `json:"total" xml:"total"` Relative float32 `json:"relative" xml:"relative"` Definition string `json:"definition" xml:"definition"` }
Quota holds quota information
type Users ¶
type Users struct { Quota *Quota `json:"quota" xml:"quota"` Email string `json:"email" xml:"email"` DisplayName string `json:"displayname" xml:"displayname"` UserType string `json:"user-type" xml:"user-type"` // FIXME home should never be exposed ... even in oc 10 // home TwoFactorAuthEnabled bool `json:"two_factor_auth_enabled" xml:"two_factor_auth_enabled"` }
Users holds users data
Click to show internal directories.
Click to hide internal directories.