deploy

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReplicaAnnotation       = "replicas.old"
	GlobalReplicaAnnotation = "replicas.global.old"
)
View Source
const (
	RestartLongDesc = `
Restart the risingwave instances.
`
	RestartExample = `` /* 192-byte string literal not displayed */

)
View Source
const (
	ResumeLongDesc = `
Start the risingwave instances.
`
	ResumeExample = `` /* 188-byte string literal not displayed */

)
View Source
const (
	ScaleLongDesc = `
Scale the risingwave instances.
`
	ScaleExample = `` /* 411-byte string literal not displayed */

)
View Source
const (
	StopLongDesc = `
Stop the risingwave instances.
`
	StopExample = `` /* 180-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewRestartCommand

func NewRestartCommand(ctx *cmdcontext.RWContext, streams genericclioptions.IOStreams) *cobra.Command

NewRestartCommand creates the restart command.

func NewResumeCommand

func NewResumeCommand(ctx *cmdcontext.RWContext, streams genericclioptions.IOStreams) *cobra.Command

NewCommand creates the resume command.

func NewScaleCommand

func NewScaleCommand(ctx *cmdcontext.RWContext, streams genericclioptions.IOStreams) *cobra.Command

NewCommand creates the scale command which can scale the risingwave components.

func NewStopCommand

func NewStopCommand(ctx *cmdcontext.RWContext, streams genericclioptions.IOStreams) *cobra.Command

NewCommand creates the stop command.

Types

type GroupReplicas

type GroupReplicas struct {
	Compute   []ReplicaInfo
	Frontend  []ReplicaInfo
	Compactor []ReplicaInfo
	Meta      []ReplicaInfo
	Connector []ReplicaInfo
}

type ReplicaInfo

type ReplicaInfo struct {
	GroupName string
	Replicas  int32
}

type RestartOptions

type RestartOptions struct {
	*cmdcontext.BasicOptions
}

func (*RestartOptions) Run

func (o *RestartOptions) Run(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

func (*RestartOptions) Validate

func (o *RestartOptions) Validate(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

type ResumeOptions

type ResumeOptions struct {
	*cmdcontext.BasicOptions
}

func (*ResumeOptions) Run

func (o *ResumeOptions) Run(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

type ScaleOptions

type ScaleOptions struct {
	*cmdcontext.BasicOptions
	// contains filtered or unexported fields
}

func (*ScaleOptions) Run

func (o *ScaleOptions) Run(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

type StopOptions

type StopOptions struct {
	*cmdcontext.BasicOptions
}

func (*StopOptions) Run

func (o *StopOptions) Run(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

func (*StopOptions) Validate

func (o *StopOptions) Validate(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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