cli

package
v0.0.0-...-c8e46ad Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defaults

func Defaults(c *cobra.Command) *cobra.Command

Defaults applies default settings to a cobra.Command to improve the help output.

func NewCRDGenCommand

func NewCRDGenCommand() *cobra.Command

func NewGenerateCommand

func NewGenerateCommand() *cobra.Command

NewGenerateCommand returns a "generate" subcommand.

func NewRunCommand

func NewRunCommand() *cobra.Command

NewRunCommand ...

func NewTypeCommand

func NewTypeCommand() *cobra.Command

NewTypeCommand returns a "type" subcommand.

func NewTypeContainsCommand

func NewTypeContainsCommand() *cobra.Command

NewTypeContainsCommand ...

func NewTypeListCommand

func NewTypeListCommand() *cobra.Command

NewTypeListCommand ...

func NewTypeShowCommand

func NewTypeShowCommand() *cobra.Command

NewTypeShowCommand ...

func NewTypeURLCommand

func NewTypeURLCommand() *cobra.Command

NewTypeURLCommand ...

func StringOrDefault

func StringOrDefault(which bool, val string, def string) string

Types

type NestedTypeGenerators

type NestedTypeGenerators struct {
	Map map[protoreflect.FullName]func() error
}

func (*NestedTypeGenerators) Push

func (n *NestedTypeGenerators) Push(k protoreflect.FullName, v func() error)

type ResourceTypeInfo

type ResourceTypeInfo struct {
	// Name of the root resource.
	Name string

	// Name of the CRD package.
	Package string

	// Package import path for the protobuf type.
	ImportPath string

	// Import alias name to use for the protobuf type package.
	ImportName string

	// Root protobuf message.
	MessageType protoreflect.MessageType
}

Jump to

Keyboard shortcuts

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