Documentation
¶
Index ¶
- func AddCommandLineArgs(flagset *pflag.FlagSet, opts *Options)
- func AddCommandLineMigrationArgs(flagset *pflag.FlagSet, migrationOpts *MigrationOpts)
- func NewEvictCommand() *cobra.Command
- func NewMigrateCommand() *cobra.Command
- func NewRestartCommand() *cobra.Command
- func NewStartCommand() *cobra.Command
- func NewStopCommand() *cobra.Command
- type Command
- type Lifecycle
- type Manager
- type MigrationOpts
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandLineArgs ¶ added in v1.5.1
func AddCommandLineMigrationArgs ¶ added in v1.5.1
func AddCommandLineMigrationArgs(flagset *pflag.FlagSet, migrationOpts *MigrationOpts)
func NewEvictCommand ¶
func NewMigrateCommand ¶ added in v1.5.1
func NewRestartCommand ¶
func NewStartCommand ¶
func NewStopCommand ¶
Types ¶
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
TODO: Refactor this structure because `Lifecycle` is a common object and should not process custom flags for each subcommand like `Migrate`.
func NewLifecycle ¶
type Manager ¶
type Manager interface {
Stop(ctx context.Context, name, namespace string) (msg string, err error)
Start(ctx context.Context, name, namespace string) (msg string, err error)
Restart(ctx context.Context, name, namespace string) (msg string, err error)
Evict(ctx context.Context, name, namespace string) (msg string, err error)
Migrate(ctx context.Context, name, namespace, targetNodeName string) (msg string, err error)
}
type MigrationOpts ¶ added in v1.5.1
type MigrationOpts struct {
TargetNodeName string
}
type Options ¶
TODO: If none of the flags are set, the operation output appears as if the `CreateOnly` flag is `true`, although in reality, it is `false`. This flag should be refactored. Consider changing it to a `silence` flag, which could be useful in scripting.
func DefaultOptions ¶
func DefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.