cmd

package
v0.0.0-...-fbb98a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const XGVK_NAME = "x-kubernetes-group-version-kind"

Variables

This section is empty.

Functions

func GetFilename

func GetFilename(name string) string

func GetRootCmd

func GetRootCmd(args []string) *cobra.Command

func NewCrdCmd

func NewCrdCmd(args []string) *cobra.Command

func NewDumpCmd

func NewDumpCmd(args []string) *cobra.Command

func ParseName

func ParseName(name string) (group, version, kind string)

Types

type ACTION

type ACTION int
const (
	CONTINUE ACTION = iota
	STOP
	DELETE
)

type AllJson

type AllJson struct {
	OneOf []Ref `json:"oneOf"`
}

type CRD

type CRD struct {
	ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
	Kind       string `json:"kind" yaml:"kind"`
	Metadata   struct {
		Name string `json:"name" yaml:"name"`
	} `json:"metadata" yaml:"metadata"`
	Spec struct {
		Group string `json:"group" yaml:"group"`
		Names struct {
			Kind     string `json:"kind" yaml:"kind"`
			Singular string `json:"singular" yaml:"singular"`
		} `json:"names" yaml:"names"`
		Versions []CRDVersion `json:"versions" yaml:"versions"`
	} `json:"spec" yaml:"spec"`
}

type CRDVersion

type CRDVersion struct {
	Schema struct {
		OpenAPIV3Schema map[string]any `json:"openAPIV3Schema" yaml:"openAPIV3Schema"`
	} `json:"schema" yaml:"schema"`
	Name string `json:"name" yaml:"name"`
}

type OpenAPIV3Root

type OpenAPIV3Root struct {
	Paths map[string]PathInfo `json:"paths"`
}

type PathInfo

type PathInfo struct {
	ServerRelativeURL string `json:"serverRelativeURL"`
}

type Ref

type Ref struct {
	Ref string `json:"$ref"`
}

Jump to

Keyboard shortcuts

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