bench

package
v0.6.0-alpha.23 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CueSysBenchTemplateName = "bench_sysbench_template.cue"
)

Variables

This section is empty.

Functions

func NewBenchCmd

func NewBenchCmd(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewBenchCmd creates the bench command

func NewSysBenchCmd added in v0.6.0

func NewSysBenchCmd(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

Types

type BenchBaseOptions added in v0.6.0

type BenchBaseOptions struct {
	Driver   string `json:"driver"`
	Database string `json:"database"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
}

func (*BenchBaseOptions) AddFlags added in v0.6.0

func (o *BenchBaseOptions) AddFlags(cmd *cobra.Command)

func (*BenchBaseOptions) BaseValidate added in v0.6.0

func (o *BenchBaseOptions) BaseValidate() error

type SysBenchOptions added in v0.6.0

type SysBenchOptions struct {
	Mode         string   `json:"mode"`
	Threads      []int    `json:"thread"`
	Tables       int      `json:"tables"`
	Size         int      `json:"size"`
	Times        int      `json:"times"`
	Type         []string `json:"type"`
	ReadPercent  int      `json:"readPercent"`
	WritePercent int      `json:"writePercent"`
	Value        string   `json:"value"`
	Flag         int      `json:"flag"`

	BenchBaseOptions
	*cluster.ClusterObjects     `json:"-"`
	genericclioptions.IOStreams `json:"-"`
	// contains filtered or unexported fields
}

func (*SysBenchOptions) Complete added in v0.6.0

func (o *SysBenchOptions) Complete(args []string) error

func (*SysBenchOptions) PreCreate

func (o *SysBenchOptions) PreCreate(obj *unstructured.Unstructured) error

func (*SysBenchOptions) Run added in v0.6.0

func (o *SysBenchOptions) Run() error

func (*SysBenchOptions) Validate added in v0.6.0

func (o *SysBenchOptions) Validate() error

Jump to

Keyboard shortcuts

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