users

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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

func (*Handler) GetUsers

func (h *Handler) GetUsers(w http.ResponseWriter, r *http.Request)

GetUsers handles GET requests on /cloud/users Only allow self-read currently. TODO: List Users and Get on other users (both require administrative privileges)

func (*Handler) Init

func (h *Handler) Init(c *config.Config)

Init initializes this and any contained handlers

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL