preview

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreviewCommand added in v0.19.0

func PreviewCommand(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

PreviewCommand creates the PreviewRunner, returning the cobra command associated with it.

Types

type PreviewRunner added in v0.19.0

type PreviewRunner struct {
	Command *cobra.Command

	Applier   *apply.Applier
	Destroyer *apply.Destroyer
	// contains filtered or unexported fields
}

PreviewRunner encapsulates data necessary to run the preview command.

func GetPreviewRunner added in v0.19.0

func GetPreviewRunner(provider provider.Provider, ioStreams genericclioptions.IOStreams) *PreviewRunner

GetPreviewRunner creates and returns the PreviewRunner which stores the cobra command.

func (*PreviewRunner) RunE added in v0.19.0

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

RunE is the function run from the cobra command.

Jump to

Keyboard shortcuts

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