Documentation ¶
Index ¶
- func Changed(old, new map[string]string) bool
- func Create(ctx context.Context, s store.Labels, r LabeledResource) error
- func Load(ctx context.Context, s store.Labels, rr ...LabeledResource) error
- func ParseStrings(ss []string) (m map[string]string, err error)
- func Search(ctx context.Context, s store.Labels, kind string, f map[string]string, ...) ([]uint64, error)
- func Update(ctx context.Context, s store.Labels, r LabeledResource) error
- type LabeledResource
- type Labels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Update updates/creates all labels on labeled resource and removes that are explicitly passed
func ParseStrings ¶
ParseStrings converts slice of strings with "key=val" format into
func Search ¶
func Search(ctx context.Context, s store.Labels, kind string, f map[string]string, base ...uint64) ([]uint64, error)
Search queries all matching (by kind and key-value filter) labels
In case when list of (base) resources is given, labels are also filtered by resource IDs to ensure only matching subset is returned
3 scenarios: - empty filter - filter set - filter & base set
Types ¶
type LabeledResource ¶
Click to show internal directories.
Click to hide internal directories.