Documentation ¶
Index ¶
- type Manager
- func (m *Manager) Authenticate(token string) (*api.User, error)
- func (m *Manager) AuthorizeDeleteAllMethod(user *api.User, key *api.Key) error
- func (m *Manager) AuthorizeDeleteMethod(user *api.User, key *api.Key) error
- func (m *Manager) AuthorizeGetActorsMethod(user *api.User) error
- func (m *Manager) AuthorizeGetAllMethod(user *api.User, key *api.Key) error
- func (m *Manager) AuthorizeGetMethod(user *api.User, key *api.Key) error
- func (m *Manager) AuthorizeImReadyMethod(user *api.User) error
- func (m *Manager) AuthorizePutMethod(user *api.User, key *api.Key) error
- func (m *Manager) AuthorizePutResultMethod(user *api.User) error
- func (m *Manager) AuthorizeSetUserStatusMethod(user *api.User, report *api.Report) error
- func (m *Manager) AuthorizeWatchMethod(user *api.User, key *api.Key) error
- func (m *Manager) GetActors() ([]*api.User, error)
- func (m *Manager) GetUserWithName(id string) (*api.User, error)
- func (m *Manager) UpdateReadiness(name string, readiness bool) error
- func (m *Manager) UpdateStatus(name string, status api.Status) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
func NewManager ¶
func NewManager(credStorage storage.UserStorage, roleStorage storage.RuleStorage, epilogue epilogues.Epilogue) (*Manager, error)
func (*Manager) AuthorizeDeleteAllMethod ¶
func (*Manager) AuthorizeDeleteMethod ¶
func (*Manager) AuthorizeGetActorsMethod ¶
func (*Manager) AuthorizeGetAllMethod ¶
func (*Manager) AuthorizeGetMethod ¶
func (*Manager) AuthorizeImReadyMethod ¶
func (*Manager) AuthorizePutMethod ¶
func (*Manager) AuthorizePutResultMethod ¶
func (*Manager) AuthorizeSetUserStatusMethod ¶
func (*Manager) AuthorizeWatchMethod ¶
func (*Manager) UpdateReadiness ¶
Click to show internal directories.
Click to hide internal directories.