storkctl

package
v1.3.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand Create a new storkctl command

Types

type Factory

type Factory interface {
	// BindFlags Binds command flags to the command
	BindFlags(flags *pflag.FlagSet)

	// GetNamespace Gets the namespace used for the command
	GetNamespace() string
	// GetConfig Get the merged config for the server
	GetConfig() (*rest.Config, error)
	// RawConfig Gets the raw merged config for the server
	RawConfig() (clientcmdapi.Config, error)
	// GetOutputFormat Get the output format
	GetOutputFormat() (string, error)
}

Factory to be used for command line

func NewFactory

func NewFactory() Factory

NewFactory Return a new factory interface that can be used by commands

Jump to

Keyboard shortcuts

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