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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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