Documentation ¶
Overview ¶
Package label contains the label command. The label command is used to list or modify the labels of a resource.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder interface { // Build returns a new Labeler. BuildLabeler(ctx context.Context) (Labeler, error) }
Builder is an interface for building a Labeler.
type Labeler ¶
type Labeler interface { // GetAgentLabels returns the labels for an agent. GetAgentLabels(ctx context.Context, id string) (*model.Labels, error) // ApplyAgentLabels applies labels to an agent. ApplyAgentLabels(ctx context.Context, id string, labels map[string]string, overwrite bool) (*model.Labels, error) }
Labeler is an interface for labeling resources.
func NewLabeler ¶
NewLabeler returns a new Labeler.
Click to show internal directories.
Click to hide internal directories.