Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSetterCommand(parent string) *cobra.Command
- func CreateSubstCommand(parent string) *cobra.Command
- func DeleteSetterCommand(parent string) *cobra.Command
- func DeleteSubstitutionCommand(parent string) *cobra.Command
- func GetAnthosCommands(name string) []*cobra.Command
- func GetConfigCommand(name string) *cobra.Command
- func GetFnCommand(name string) *cobra.Command
- func GetGuideCommand(name string) *cobra.Command
- func GetKptCommands(name string, f util.Factory) []*cobra.Command
- func GetLiveCommand(name string, f util.Factory) *cobra.Command
- func GetPkgCommand(name string) *cobra.Command
- func GetTTLCommand(name string) *cobra.Command
- func NewCmdInit(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdMigrate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NormalizeCommand(c ...*cobra.Command)
- func SetCommand(parent string) *cobra.Command
- type InvExistsError
- type KptInitOptions
- type MigrateRunner
Constants ¶
const ShortHandRef = "$kpt-set"
Variables ¶
var READMEExamples = `
# run the tutorial for ` + "`" + `kpt cfg annotate` + "`" + `
kpt ttl cfg annotate
# run the tutorial at 2x speed
kpt ttl cfg annotate -s 2
# run the tutorial at 1/2x speed
kpt ttl cfg annotate -s 0.5
# print the full tutorial rather than playing it
kpt ttl cfg annotate --print`
var READMELong = `
Tutorials simulates running a sequence of commands and their output by playing
an asciinema cast.
Requires [asciinema].
`
var READMEShort = `Run command tutorials`
Functions ¶
func CreateSetterCommand ¶ added in v0.28.0
func CreateSubstCommand ¶ added in v0.28.0
func DeleteSetterCommand ¶ added in v0.31.0
func DeleteSubstitutionCommand ¶ added in v0.34.0
func GetAnthosCommands ¶
func GetConfigCommand ¶
func GetFnCommand ¶
func GetGuideCommand ¶ added in v0.16.0
func GetKptCommands ¶
GetKptCommands returns the set of kpt commands to be registered
func GetPkgCommand ¶
func GetTTLCommand ¶
func NewCmdInit ¶ added in v0.35.0
NewCmdInit returns the cobra command for the init command.
func NewCmdMigrate ¶ added in v0.37.0
NewCmdMigrate returns the cobra command for the migrate command.
func NormalizeCommand ¶
NormalizeCommand will modify commands to be consistent, e.g. silencing errors
func SetCommand ¶
SetCommand wraps the kustomize set command in order to automatically update a project number if a project id is set.
Types ¶
type InvExistsError ¶ added in v0.37.0
type InvExistsError struct{}
InvExistsError defines new error when the inventory values have already been set on the Kptfile.
func (*InvExistsError) Error ¶ added in v0.37.0
func (i *InvExistsError) Error() string
type KptInitOptions ¶ added in v0.35.0
type KptInitOptions struct {
// contains filtered or unexported fields
}
KptInitOptions encapsulates fields for kpt init command. This init command fills in inventory values in the Kptfile.
func NewKptInitOptions ¶ added in v0.35.0
func NewKptInitOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *KptInitOptions
NewKptInitOptions returns a pointer to an initial KptInitOptions structure.
func (*KptInitOptions) Run ¶ added in v0.35.0
func (io *KptInitOptions) Run(args []string) error
Complete fills in fields for KptInitOptions based on the passed "args".
type MigrateRunner ¶ added in v0.37.0
MigrateRunner encapsulates fields for the kpt migrate command.
func GetMigrateRunner ¶ added in v0.37.0
func GetMigrateRunner(cmProvider provider.Provider, rgProvider provider.Provider, ioStreams genericclioptions.IOStreams) *MigrateRunner
NewMigrateRunner returns a pointer to an initial MigrateRunner structure.