schema

package
v0.0.0-...-15e9eaa Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind struct {
	Versions map[int]KindVersion
}

func NewKind

func NewKind(version int, kindVersion *KindVersion) Kind

func (*Kind) AddVersion

func (kind *Kind) AddVersion(version int, kindVersion *KindVersion) error

func (*Kind) ApplyPath

func (kind *Kind) ApplyPath(resource *resource.Resource) (string, error)

func (*Kind) DescribePath

func (kind *Kind) DescribePath(parentPathValues []string, name string) string

func (*Kind) GetFlag

func (kind *Kind) GetFlag() []string

func (*Kind) GetLatestKindVersion

func (kind *Kind) GetLatestKindVersion() *KindVersion

func (*Kind) GetName

func (Kind *Kind) GetName() string

func (*Kind) ListPath

func (kind *Kind) ListPath(parentPathValues []string) string

func (*Kind) MaxVersion

func (kind *Kind) MaxVersion() int

type KindCatalog

type KindCatalog = map[string]Kind

func DefaultKind

func DefaultKind() KindCatalog

type KindVersion

type KindVersion struct {
	ListPath        string
	Name            string
	ParentPathParam []string
}

type Schema

type Schema struct {
	// contains filtered or unexported fields
}

func New

func New(schema []byte) (*Schema, error)

func (*Schema) GetKinds

func (s *Schema) GetKinds(strict bool) (map[string]Kind, error)

Jump to

Keyboard shortcuts

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