Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
// List the unique labels that a user has attached to resources
ListLabels(ctx context.Context) ([]string, error)
// List the resources which have a given label attached for a given user
ListResourcesForLabel(ctx context.Context, label string) ([]*provider.ResourceId, error)
// SetLabel qttaches a label to a resource for a user..
SetLabel(ctx context.Context, label string, resourceId *provider.ResourceId) error
// UnsetLabel removes a label from a resource for a user..
UnsetLabel(ctx context.Context, label string, resourceId *provider.ResourceId) error
}
Manager defines an interface for a labels manager.
Click to show internal directories.
Click to hide internal directories.