direct

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitCodeDoneWithNoop up/downリクエストを受け取ったが処理なしの場合(JOB_DONE_NOOP)
	ExitCodeDoneWithNoop = 129
	// ExitCodeUnacceptableState up/downリクエストが受け入れられない状態の場合(処理の実行中やcooldown期間中、シャットダウン中の場合など)
	ExitCodeUnacceptableState = 130
)

Variables

View Source
var Command = &cobra.Command{
	Use:       "direct {up | down} [flags]...",
	Short:     "Send Up/Down request directly to Core server",
	ValidArgs: []string{"up", "down"},
	Args:      cobra.ExactValidArgs(1),
	PreRunE: flags.ValidateMultiFunc(true,
		flags.ValidateDestinationFlags,
		func(cmd *cobra.Command, args []string) error {
			if err := validate.Struct(param); err != nil {
				return err
			}
			return flags.ValidateInputsConfigFlags(cmd, args)
		},
	),
	RunE: run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL