cmd

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FormatHTML = "html"
	FormatYAML = "yaml"
)

Variables

View Source
var Version = "v0.0.0-dev"

Functions

func Execute

func Execute() error

Execute runs the main krok command.

func ShowUsage

func ShowUsage(cmd *cobra.Command, _ []string)

ShowUsage shows usage of the given command on stdout.

Types

type ConfigHandler added in v1.0.3

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

func (*ConfigHandler) CRDs added in v1.0.3

func (h *ConfigHandler) CRDs() ([]*pkg.SchemaType, error)

type FileHandler added in v0.6.0

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

func (*FileHandler) CRDs added in v0.6.0

func (h *FileHandler) CRDs() ([]*pkg.SchemaType, error)

type FolderHandler added in v0.6.0

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

func (*FolderHandler) CRDs added in v0.6.0

func (h *FolderHandler) CRDs() ([]*pkg.SchemaType, error)

type Handler added in v0.6.0

type Handler interface {
	CRDs() ([]*pkg.SchemaType, error)
}

type KindVersionGroup added in v1.0.2

type KindVersionGroup struct {
	Kind    string `json:"kind"`
	Version string `json:"version"`
	Group   string `json:"group"`
}

type Schema added in v1.0.2

type Schema struct {
	*v1beta1.JSONSchemaProps       `json:",inline"`
	KubernetesGroupVersionKindList []KindVersionGroup `json:"x-kubernetes-group-version-kind"`
}

type URLHandler added in v0.6.0

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

func (*URLHandler) CRDs added in v0.6.0

func (h *URLHandler) CRDs() ([]*pkg.SchemaType, error)

Jump to

Keyboard shortcuts

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