metadata

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation types.NullString

func (Annotation) MarshalJSON

func (a Annotation) MarshalJSON() ([]byte, error)

func (*Annotation) UnmarshalJSON

func (a *Annotation) UnmarshalJSON(data []byte) error

type Label

type Label types.NullString

func (Label) MarshalJSON

func (l Label) MarshalJSON() ([]byte, error)

func (*Label) UnmarshalJSON

func (l *Label) UnmarshalJSON(data []byte) error

type Metadata

type Metadata struct {
	Labels      map[string]Label      `json:"labels,omitempty"`
	Annotations map[string]Annotation `json:"annotations,omitempty"`
}

type MetadataElementType

type MetadataElementType string
const (
	MetadataAnnotationType MetadataElementType = "annotation"
	MetadataLabelType      MetadataElementType = "label"
)

Jump to

Keyboard shortcuts

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