Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvExistsErrorMsg = `` /* 192-byte string literal not displayed */
Functions ¶
func NewCmdInit ¶
NewCmdInit returns the cobra command for the init command.
Types ¶
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 KptInitOptions ¶
type KptInitOptions struct {
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
}
KptInitOptions encapsulates fields for kpt init command. This init command fills in inventory values in the Kptfile.
func NewKptInitOptions ¶
func NewKptInitOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *KptInitOptions
NewKptInitOptions returns a pointer to an initial KptInitOptions structure.
func (*KptInitOptions) Run ¶
func (io *KptInitOptions) Run(args []string) error
Complete fills in fields for KptInitOptions based on the passed "args".
Click to show internal directories.
Click to hide internal directories.