command

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileIOType   IOType   = "file"
	LiveIOType   IOType   = "live"
	JSONFileType FileType = "json"
	YAMLFileType FileType = "yaml"
)

Variables

This section is empty.

Functions

func DoConvert

func DoConvert() error

func DoLive

func DoLive() error

func RunE

func RunE(cmd *cobra.Command, args []string) error

func SetCommandOptions

func SetCommandOptions(c *CommandOptions) error

Types

type CommandOptions

type CommandOptions struct {
	Filename       string   `default:""`
	OutputFilename string   `default:""`
	OutputFileType FileType `default:"YAMLFileType"`
	LiveDryRun     bool     `default:"false"`
	LiveNamespace  string   `default:""`
	LiveDC         string   `default:""`
	LiveKubeconfig string   `default:""`
	IgnoreWarnings bool     `default:"false"`
	Verbosity      uint8    `default:"0"`
	// contains filtered or unexported fields
}
var Options *CommandOptions

type FileType

type FileType string

type IOType

type IOType string

Jump to

Keyboard shortcuts

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