Documentation
¶
Index ¶
- func GetLabelsSection(labels []upcloud.Label) output.CombinedSection
- func GetLabelsSectionWithResourceType(labels []upcloud.Label, resourceType string) output.CombinedSection
- func LabelsSection[T any](labels []T, keyValue func(T) (key, value string), resourceType string) output.CombinedSection
- func StringsToLabels[T any](in []string, newLabel func(key, value string) T) ([]T, error)
- func StringsToSliceOfLabels(in []string) ([]upcloud.Label, error)
- func StringsToUpCloudLabelSlice(in []string) (*upcloud.LabelSlice, error)
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
StringsToLabels parses key=value strings into labels of any SDK type built by newLabel.
func StringsToUpCloudLabelSlice ¶
func StringsToUpCloudLabelSlice(in []string) (*upcloud.LabelSlice, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.