preview

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 15 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
	PreProcess func(info inventory.InventoryInfo, strategy common.DryRunStrategy) (inventory.InventoryPolicy, error)

	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, loader manifestreader.ManifestLoader, 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