labels

package
v3.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabelsSection

func GetLabelsSection(labels []upcloud.Label) output.CombinedSection

GetLabelsSection returns labels table as output.CombinedSection

func GetLabelsSectionWithResourceType

func GetLabelsSectionWithResourceType(labels []upcloud.Label, resourceType string) output.CombinedSection

GetLabelsSectionWithResourceType returns labels table as output.CombinedSection with resource type in the empty message.

func LabelsSection added in v3.37.0

func LabelsSection[T any](labels []T, keyValue func(T) (key, value string), resourceType string) output.CombinedSection

LabelsSection returns labels of any SDK type as output.CombinedSection, using keyValue to read each label.

func StringsToLabels added in v3.37.0

func StringsToLabels[T any](in []string, newLabel func(key, value string) T) ([]T, error)

StringsToLabels parses key=value strings into labels of any SDK type built by newLabel.

func StringsToSliceOfLabels

func StringsToSliceOfLabels(in []string) ([]upcloud.Label, error)

func StringsToUpCloudLabelSlice

func StringsToUpCloudLabelSlice(in []string) (*upcloud.LabelSlice, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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