xuser

package
v2.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpersonatedUser

type ImpersonatedUser interface {
	RealUserId() ids.Id
}

ImpersonatedUser is an optional interface that can be implemented by User when it can provide the id of the user that is being impersonated. This is used to determine if the user is being impersonated or not. A User implementation can implement this interface but a specific user can be impersonated or not.

type User

type User interface {
	Id() ids.Id
	Name() string
	Tenant() string
	HasPermission(permission string) bool
}

User represent the current user performing the request.

Jump to

Keyboard shortcuts

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