meta

package
v0.10.0-rc4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownObjectKind = errors.New("unknown object kind")

Functions

This section is empty.

Types

type NamedObject

type NamedObject interface {
	Object
	GetName() string
}

type Object

type Object interface {
	GetAPIVersion() string
	GetKind() string
}

type ObjectList

type ObjectList []Object

func (ObjectList) Visit

func (l ObjectList) Visit(visitors ...ObjectVisitorFunc) (visitedAny bool)

type ObjectMeta

type ObjectMeta struct {
	Name string `json:"name,omitempty"`
}

func (ObjectMeta) GetName

func (o ObjectMeta) GetName() string

type ObjectVisitorFunc

type ObjectVisitorFunc = interface{} // func(*T) or func(*T, *jsonschema.Schema)

type TypeMeta

type TypeMeta struct {
	Kind       string `json:"kind,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

func (TypeMeta) GetAPIVersion

func (t TypeMeta) GetAPIVersion() string

func (TypeMeta) GetKind

func (t TypeMeta) GetKind() string

Jump to

Keyboard shortcuts

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