account

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides a Session service

func NewServer

func NewServer(sessionMgr *session.SessionManager, settingsMgr *settings.SettingsManager, enf *rbac.Enforcer) *Server

NewServer returns a new instance of the Session service

func (*Server) CanI added in v1.4.0

CanI checks if the current account has permission to perform an action

func (*Server) CreateToken added in v1.5.0

CreateToken creates a token

func (*Server) DeleteToken added in v1.5.0

DeleteToken deletes a token

func (*Server) GetAccount added in v1.5.0

func (s *Server) GetAccount(ctx context.Context, r *account.GetAccountRequest) (*account.Account, error)

GetAccount returns an account

func (*Server) ListAccounts added in v1.5.0

ListAccounts returns the list of accounts

func (*Server) UpdatePassword

UpdatePassword updates the password of the currently authenticated account or the account specified in the request.

Jump to

Keyboard shortcuts

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