Documentation ¶
Index ¶
- type Manager
- func (m *Manager) DelResource(ctx context.Context, username, resource string) error
- func (m *Manager) GetResource(ctx context.Context, username, resource string) (*model.Resource, error)
- func (m *Manager) GetResources(ctx context.Context, username string) ([]model.Resource, error)
- func (m *Manager) PutResource(ctx context.Context, res *model.Resource) error
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 type is in charge of keeping track of all cluster resources.
func (*Manager) DelResource ¶
DelResource removes a registered resource from the manager.
func (*Manager) GetResource ¶
func (m *Manager) GetResource(ctx context.Context, username, resource string) (*model.Resource, error)
GetResource returns a previously registered resource.
func (*Manager) GetResources ¶
GetResources returns all user registered resources.
Click to show internal directories.
Click to hide internal directories.