export

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONFormat         = "json"
	YAMLFormat         = "yaml"
	DefaultConfigLabel = "current"
)

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand() *cli.Command

func CheckFlags

func CheckFlags(f *Flags) error

func ExportMigConfigs

func ExportMigConfigs(c *Context) (*v1.Spec, error)

func GetLogger

func GetLogger() *logrus.Logger

func WriteOutput

func WriteOutput(w io.Writer, spec *v1.Spec, f *Flags) error

Types

type Context

type Context struct {
	*cli.Context
	Flags *Flags
	Nvml  nvml.Interface
}

type Flags

type Flags struct {
	OutputFormat string
	ConfigLabel  string
}

Jump to

Keyboard shortcuts

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