Documentation
¶
Index ¶
- func CreateUpdateCommands(registry apis.InstallablePluginRegistry) []*cobra.Command
- func Execute()
- func NewCompletionCmd() *cobra.Command
- func NewInstallCommand(registry apis.InstallablePluginRegistry) *cobra.Command
- func NewRunCommand(registry apis.StartStopPluginRegistry, contextName ContextNameSupplier) *cobra.Command
- func NewRunSingleCommand(plugin apis.StartStopPlugin) *cobra.Command
- func NewUninstallCommand(registry apis.InstallablePluginRegistry) *cobra.Command
- func NewUpdateCommand(registry apis.InstallablePluginRegistry) *cobra.Command
- func NewVersionCommand() *cobra.Command
- type ContextNameSupplier
- type InstallOptions
- type PreRunInit
- type RootCommandOptions
- type RunOptions
- type RunSingleOptions
- type UninstallOptions
- type UpdateOptions
- type VersionOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUpdateCommands ¶
func CreateUpdateCommands(registry apis.InstallablePluginRegistry) []*cobra.Command
Create the update command for all registered plugins.
func NewCompletionCmd ¶
NewCmdCompletion creates the `completion` command
func NewInstallCommand ¶
func NewInstallCommand(registry apis.InstallablePluginRegistry) *cobra.Command
func NewRunCommand ¶
func NewRunCommand(registry apis.StartStopPluginRegistry, contextName ContextNameSupplier) *cobra.Command
func NewRunSingleCommand ¶
func NewRunSingleCommand(plugin apis.StartStopPlugin) *cobra.Command
NewRunSingleCommand creates a new run command for the given plugin.
func NewUninstallCommand ¶
func NewUninstallCommand(registry apis.InstallablePluginRegistry) *cobra.Command
func NewUpdateCommand ¶
func NewUpdateCommand(registry apis.InstallablePluginRegistry) *cobra.Command
func NewVersionCommand ¶
Types ¶
type ContextNameSupplier ¶
type ContextNameSupplier func() string
type InstallOptions ¶
type InstallOptions struct {
// contains filtered or unexported fields
}
func NewInstallOptions ¶
func NewInstallOptions(registry apis.InstallablePluginRegistry) *InstallOptions
type PreRunInit ¶
type PreRunInit func(options *RootCommandOptions) error
PreRunInit defines the interface for small helper functions which will perform a late initialization of some already initialized object instances.
type RootCommandOptions ¶
type RootCommandOptions struct {
// contains filtered or unexported fields
}
RootCommandOptions stores the the values for global command flags like the kubeconfig and context name.
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, *RootCommandOptions)
NewRootCmd initializes the root cobra command including all the flags on root level.
func NewRootCmdOptions ¶
func NewRootCmdOptions() *RootCommandOptions
NewRootCmdOptions creates a new option structure for the the root cli command.
func (*RootCommandOptions) AddPreRunInitFunction ¶
func (o *RootCommandOptions) AddPreRunInitFunction(f PreRunInit)
AddPreRunInitFunction adds a new PreRunInit function to the list for preRun()
type RunOptions ¶
type RunOptions struct {
// contains filtered or unexported fields
}
func NewRunOptions ¶
func NewRunOptions(registry apis.StartStopPluginRegistry, contextName ContextNameSupplier) *RunOptions
type RunSingleOptions ¶
type RunSingleOptions struct {
// contains filtered or unexported fields
}
RunSingleOptions contains all options and information that are needed to run a single plugin from the command line.
func NewRunSingleOptions ¶
func NewRunSingleOptions(plugin apis.StartStopPlugin) *RunSingleOptions
NewRunSingleOptions create a new instance of the RunSingleOptions for the given plugin.
type UninstallOptions ¶
type UninstallOptions struct {
// contains filtered or unexported fields
}
func NewUninstallOptions ¶
func NewUninstallOptions(registry apis.InstallablePluginRegistry) *UninstallOptions
type UpdateOptions ¶
type UpdateOptions struct {
// contains filtered or unexported fields
}
func NewUpdateOptions ¶
func NewUpdateOptions(registry apis.InstallablePluginRegistry) *UpdateOptions
type VersionOptions ¶
type VersionOptions struct{}
func NewVersionOptions ¶
func NewVersionOptions() *VersionOptions