app

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppOption

type AppOption struct {
	Action     string
	Kubeconfig string
	InputData  string
	InputFile  string
	OutputFile string
	NumCopies  int
	Timeout    string
}

func (*AppOption) AddFlags

func (opt *AppOption) AddFlags(fs *flag.FlagSet)

type ResourceManager

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

ResourceManager applies high level actions to resources

func NewResourceManager

func NewResourceManager(config *rest.Config, reader io.Reader, writer io.Writer) *ResourceManager

NewResourceManager creates a new ResourceManager for the given config

func (*ResourceManager) Run

func (m *ResourceManager) Run(opt *AppOption) error

Run executes ResourceManager with given options

Jump to

Keyboard shortcuts

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