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