schema

package
v0.0.0-...-3ea6822 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedObject = errors.New("unexpected object type")
)

Functions

This section is empty.

Types

type Object

type Object interface {
	fmt.Stringer

	ID() string
	Inner() interface{}
	// contains filtered or unexported methods
}

func ObjectFrom

func ObjectFrom(obj interface{}) (Object, error)

type Resource

type Resource struct {
	Group   string
	Version string
	Kind    string
	// Plural is what the k8s lib calls "Resource"
	Plural string
}

func (Resource) GroupVersionKind

func (r Resource) GroupVersionKind() k8s_schema.GroupVersionKind

func (Resource) GroupVersionResource

func (r Resource) GroupVersionResource() k8s_schema.GroupVersionResource

func (Resource) String

func (r Resource) String() string

Jump to

Keyboard shortcuts

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