manager

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Epilogue epilogues.Epilogue
	// contains filtered or unexported fields
}

func NewManager

func NewManager(credStorage storage.UserStorage, roleStorage storage.RuleStorage, epilogue epilogues.Epilogue) (*Manager, error)

func (*Manager) Authenticate

func (m *Manager) Authenticate(token string) (*api.User, error)

func (*Manager) AuthorizeDeleteAllMethod

func (m *Manager) AuthorizeDeleteAllMethod(user *api.User, key *api.Key) error

func (*Manager) AuthorizeDeleteMethod

func (m *Manager) AuthorizeDeleteMethod(user *api.User, key *api.Key) error

func (*Manager) AuthorizeGetActorsMethod

func (m *Manager) AuthorizeGetActorsMethod(user *api.User) error

func (*Manager) AuthorizeGetAllMethod

func (m *Manager) AuthorizeGetAllMethod(user *api.User, key *api.Key) error

func (*Manager) AuthorizeGetMethod

func (m *Manager) AuthorizeGetMethod(user *api.User, key *api.Key) error

func (*Manager) AuthorizeImReadyMethod

func (m *Manager) AuthorizeImReadyMethod(user *api.User) error

func (*Manager) AuthorizePutMethod

func (m *Manager) AuthorizePutMethod(user *api.User, key *api.Key) error

func (*Manager) AuthorizePutResultMethod

func (m *Manager) AuthorizePutResultMethod(user *api.User) error

func (*Manager) AuthorizeSetUserStatusMethod

func (m *Manager) AuthorizeSetUserStatusMethod(user *api.User, report *api.Report) error

func (*Manager) AuthorizeWatchMethod

func (m *Manager) AuthorizeWatchMethod(user *api.User, key *api.Key) error

func (*Manager) GetActors

func (m *Manager) GetActors() ([]*api.User, error)

func (*Manager) GetUserWithName

func (m *Manager) GetUserWithName(id string) (*api.User, error)

func (*Manager) UpdateReadiness

func (m *Manager) UpdateReadiness(name string, readiness bool) error

func (*Manager) UpdateStatus

func (m *Manager) UpdateStatus(name string, status api.Status) error

Jump to

Keyboard shortcuts

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