Documentation ¶
Index ¶
- func AddCommandlineArgs(flagset *pflag.FlagSet, opts *Options)
- func NewEvictCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
- func NewRestartCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
- func NewStartCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
- func NewStopCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
- type Command
- type Lifecycle
- type Manager
- type Options
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandlineArgs ¶
func NewEvictCommand ¶
func NewEvictCommand(clientConfig clientcmd.ClientConfig) *cobra.Command
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 Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
func NewLifecycle ¶
func NewLifecycle(cmd Command, clientConfig clientcmd.ClientConfig) *Lifecycle
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) Evict(ctx context.Context, name, namespace string, wait bool) (msg string, err error) }
func NewManager ¶
func NewManager(t Type, client kubeclient.Client) (Manager, error)
type Options ¶
func DefaultOptions ¶
func DefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.