metadata

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 CommonResource added in v0.1.0

type CommonResource struct {
	Metadata Metadata `json:"metadata"`
}

func (*CommonResource) AddMetadataElement added in v0.1.0

func (r *CommonResource) AddMetadataElement(element ElementType, key string, value string)

func (*CommonResource) RemoveMetadataElement added in v0.1.0

func (r *CommonResource) RemoveMetadataElement(element ElementType, key string)

type ElementType added in v0.1.0

type ElementType string
const (
	AnnotationType ElementType = "annotation"
	LabelType      ElementType = "label"
)

type GUIDResource added in v0.1.0

type GUIDResource struct {
	CommonResource
	GUID string `json:"guid"`
}

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"`
}

Jump to

Keyboard shortcuts

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