schema

package
v0.0.0-...-6c8496d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Identifier    string
	Plural        string
	ClusterScoped bool
	ProtoPkg      string
	Proto         string
	Kind          string
	Group         string
	Version       string
	ReflectType   reflect.Type
	StatusType    reflect.Type
	Builtin       bool
	Synthetic     bool
}

func (Builder) Build

func (b Builder) Build() (Schema, error)

func (Builder) BuildNoValidate

func (b Builder) BuildNoValidate() Schema

func (Builder) MustBuild

func (b Builder) MustBuild() Schema

type Schema

type Schema interface {
	fmt.Stringer
	GroupVersionResource() schema.GroupVersionResource
	GroupVersionKind() config.GroupVersionKind
	GroupVersionAliasKinds() []config.GroupVersionKind
	Validate() error
	IsClusterScoped() bool
}

Jump to

Keyboard shortcuts

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