Documentation ¶
Index ¶
- func AddCommandlineArgs(flagset *pflag.FlagSet, opts *Options)
- func NewRestartCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
- func NewStartCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
- func NewStopCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
- type Command
- type Manager
- type Options
- type PowerState
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandlineArgs ¶
func NewRestartCommand ¶
func NewRestartCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
func NewStartCommand ¶
func NewStartCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
func NewStopCommand ¶
func NewStopCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
Types ¶
type Manager ¶
type Manager interface { Stop(ctx context.Context, name, namespace string, wait, force bool) (msg string, err error) Start(ctx context.Context, name, namespace string, wait bool) (msg string, err error) Restart(ctx context.Context, name, namespace string, wait, force bool) (msg string, err error) }
func NewManager ¶
func NewManager(t Type, client kubeclient.Client) (Manager, error)
type Options ¶
func DefaultOptions ¶
func DefaultOptions() Options
type PowerState ¶
type PowerState struct {
// contains filtered or unexported fields
}
func NewPowerState ¶
func NewPowerState(cmd Command, clientConfig clientcmd.ClientConfig) *PowerState
func (*PowerState) Run ¶
func (ps *PowerState) Run(args []string) error
func (*PowerState) Usage ¶
func (ps *PowerState) Usage() string
Click to show internal directories.
Click to hide internal directories.