Documentation ¶
Index ¶
- type Manager
- func (m *Manager) GetInternalAccessToken() (string, error)
- func (m *Manager) IsAdminOpAuthorised(token, scope string) (int, error)
- func (m *Manager) IsTokenValid(token string) error
- func (m *Manager) LoadEnv() bool
- func (m *Manager) Login(user, pass string) (int, string, error)
- func (m *Manager) SetConfig(admin *config.Admin)
- func (m *Manager) SetEnv(isProd bool)
- 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) GetInternalAccessToken ¶ added in v0.11.0
GetInternalAccessToken returns the token that can be used internally by Space Cloud
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.