labels

package
v3.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL