Documentation ¶
Index ¶
- type Manager
- func (m *Manager) IsAdminOpAuthorised(token, scope string) (int, error)
- func (m *Manager) IsTokenValid(token string) error
- func (m *Manager) Login(user, pass string) (int, string, error)
- func (m *Manager) SetConfig(admin *config.Admin)
- func (m *Manager) ValidateSyncOperation(c *config.Config, project *config.Project) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages all admin transactions
func (*Manager) IsAdminOpAuthorised ¶
IsAdminOpAuthorised checks if the admin operation is authorised. TODO add scope level restrictions as well
func (*Manager) IsTokenValid ¶
IsTokenValid checks if the token is valid
Click to show internal directories.
Click to hide internal directories.