plugin

package
v0.0.0-...-dea60c0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "kubectl-stand"
)

Variables

View Source
var Version = "undefined"

Version is variable to show version

Functions

func GetVersion

func GetVersion() string

GetVersion shows version variable

Types

type Handler

type Handler struct {
	Type        apis.ConditionScheduleType
	Stand       string
	Wait        bool
	WaitTimeout time.Duration
	// contains filtered or unexported fields
}

func NewShutdownHandler

func NewShutdownHandler() *Handler

func NewStartupHandler

func NewStartupHandler() *Handler

func (*Handler) Run

func (h *Handler) Run() error

func (*Handler) Setup

func (h *Handler) Setup(stand string) error

func (*Handler) SetupFlags

func (h *Handler) SetupFlags() *pflag.FlagSet

func (*Handler) String

func (h *Handler) String() string

func (*Handler) WaitPolicyReady

func (h *Handler) WaitPolicyReady() (bool, error)

type Patch

type Patch struct {
	Spec apis.StandSchedulePolicySpec `json:"spec"`
}

Jump to

Keyboard shortcuts

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