users

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project added in v1.8.6

type Project struct {
	Id   db.ProjectId `json:"id"`
	Name string       `json:"name"`
}

type User

type User struct {
	Id        int           `json:"id,omitempty"`
	Email     string        `json:"email"`
	Name      string        `json:"name"`
	Role      rbac.RoleName `json:"role"`
	Anonymous bool          `json:"anonymous,omitempty"`
	Readonly  bool          `json:"readonly,omitempty"`
	Projects  []Project     `json:"projects,omitempty"`
}

func RenderUser added in v1.8.6

func RenderUser(user *db.User, projects map[db.ProjectId]string, viewonly bool) *User

type Users added in v1.8.6

type Users struct {
	Users []User          `json:"users"`
	Roles []rbac.RoleName `json:"roles"`
}

func RenderUsers added in v1.8.6

func RenderUsers(users []*db.User, roles []rbac.Role) *Users

Jump to

Keyboard shortcuts

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