k8scluster

package
v0.0.0-...-15a92d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstallCmd

func NewInstallCmd() *cobra.Command

func NewRemoveCmd

func NewRemoveCmd() *cobra.Command

func NewResetCmd

func NewResetCmd() *cobra.Command

func NewScaleCmd

func NewScaleCmd() *cobra.Command

Types

type Callback

type Callback struct {
	Step   int
	Second int
	// CallbackUrl为pwc-controller服务暴漏的rest server
	// http://pwc-controller.pks-system:7000
	CallbackUrl string
	Command     string
	Agent       provider.Agent
	Nodes       types.Nodes
}

Callback用于修改pwc-controller服务修改集群状态

func NewCallback

func NewCallback(agent provider.Agent, nodes types.Nodes) *Callback

func (*Callback) Execute

func (c *Callback) Execute()

type Install

type Install struct {
	Action types.OperatorType
	// contains filtered or unexported fields
}

func NewInstallOption

func NewInstallOption() *Install

func (*Install) Start

func (i *Install) Start()

type Operator

type Operator interface {
	Start()
}

type Remove

type Remove struct {
	Action types.OperatorType
	// contains filtered or unexported fields
}

func NewRemoveOption

func NewRemoveOption() *Remove

func (*Remove) Start

func (r *Remove) Start()

type Reset

type Reset struct {
	Action types.OperatorType
	// contains filtered or unexported fields
}

func NewResetOption

func NewResetOption() *Reset

func (*Reset) Start

func (r *Reset) Start()

type Scale

type Scale struct {
	Action types.OperatorType
	// contains filtered or unexported fields
}

func NewScaleOption

func NewScaleOption() *Scale

func (*Scale) Start

func (s *Scale) Start()

Jump to

Keyboard shortcuts

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