tagging

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLabels

func ExtractLabels(m map[string]interface{}) ([]string, error)

ExtractLabels extracts labels fom a map.

Types

type Tag

type Tag struct {
	Key   string `json:"key,omitempty" xml:"key,omitempty" yaml:"key,omitempty"`
	Value string `json:"value,omitempty" xml:"value,omitempty" yaml:"value,omitempty"`
}

Tag represents key-value tag.

func ExtractTags

func ExtractTags(m map[string]interface{}) ([]*Tag, error)

ExtractTags extracts tags fom a map.

func NewTag

func NewTag(key, value string) *Tag

NewTag returns an instance of Tag

Jump to

Keyboard shortcuts

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