Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // PutResource registers or updates a resource into the manager. PutResource(ctx context.Context, res c2smodel.ResourceDesc) error // GetResource returns a previously registered resource. GetResource(ctx context.Context, username, resource string) (c2smodel.ResourceDesc, error) // GetResources returns all user registered resources. GetResources(_ context.Context, username string) ([]c2smodel.ResourceDesc, error) // DelResource removes a registered resource from the manager. DelResource(ctx context.Context, username, resource string) error // Start starts resource manager. Start(ctx context.Context) error // Stop stops resource manager. Stop(ctx context.Context) error }
Manager defines generic resource manager interface.
Click to show internal directories.
Click to hide internal directories.