cmdliveinit

package
v1.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(ctx context.Context, f cmdutil.Factory,
	ioStreams genericclioptions.IOStreams) *cobra.Command

Types

type ConfigureInventoryInfo

type ConfigureInventoryInfo struct {
	Pkg     *pkg.Pkg
	Factory cmdutil.Factory
	Quiet   bool

	Name        string
	InventoryID string

	Force bool
}

ConfigureInventoryInfo contains the functionality for adding and updating the inventory information in the Kptfile.

func (*ConfigureInventoryInfo) Run

Run updates the inventory info in the package given by the Path.

type InvExistsError

type InvExistsError struct{}

InvExistsError defines new error when the inventory values have already been set on the Kptfile.

func (*InvExistsError) Error

func (i *InvExistsError) Error() string

type Runner

type Runner struct {
	Command *cobra.Command

	Force bool   // Set inventory values even if already set in Kptfile
	Name  string // Inventory object name

	InventoryID string // Inventory object unique identifier label
	Quiet       bool   // Output message during initialization
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(ctx context.Context, factory cmdutil.Factory,
	ioStreams genericclioptions.IOStreams) *Runner

Jump to

Keyboard shortcuts

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