user

package
v0.0.0-...-556b52b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TksAdminRole  = "tks_admin"
	AdminRole     = "admin"
	ProjectLeader = "project_leader"
	ProjectMember = "project_member"
	ProjectViewer = "project_viewer"
)

well-known user and group names

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultInfo

type DefaultInfo struct {
	UserId                  uuid.UUID
	AccountId               string
	OrganizationId          string
	ProjectIds              []string
	RoleOrganizationMapping map[string]string
	RoleProjectMapping      map[string]string
}

DefaultInfo provides a simple user information exchange object for components that implement the UserInfo interface.

func (*DefaultInfo) GetAccountId

func (i *DefaultInfo) GetAccountId() string

func (*DefaultInfo) GetOrganizationId

func (i *DefaultInfo) GetOrganizationId() string

func (*DefaultInfo) GetProjectId

func (i *DefaultInfo) GetProjectId() []string

func (*DefaultInfo) GetRoleOrganizationMapping

func (i *DefaultInfo) GetRoleOrganizationMapping() map[string]string

func (*DefaultInfo) GetRoleProjectMapping

func (i *DefaultInfo) GetRoleProjectMapping() map[string]string

func (*DefaultInfo) GetUserId

func (i *DefaultInfo) GetUserId() uuid.UUID

type Info

type Info interface {
	GetUserId() uuid.UUID
	GetAccountId() string
	GetOrganizationId() string
	GetRoleOrganizationMapping() map[string]string
	GetRoleProjectMapping() map[string]string
}

Info describes a user that has been authenticated to the system.

Jump to

Keyboard shortcuts

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