Documentation ¶
Index ¶
Constants ¶
View Source
const (
CueSysBenchTemplateName = "bench_sysbench_template.cue"
)
Variables ¶
This section is empty.
Functions ¶
func NewBenchCmd ¶
NewBenchCmd creates the bench command
func NewSysBenchCmd ¶ added in v0.6.0
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"` Type string `json:"type"` Size int `json:"size"` Tables int `json:"tables"` Times int `json:"times"` BenchBaseOptions *cluster.ClusterObjects `json:"-"` genericclioptions.IOStreams `json:"-"` // contains filtered or unexported fields }
func (*SysBenchOptions) Complete ¶ added in v0.6.0
func (o *SysBenchOptions) Complete(name 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
Click to show internal directories.
Click to hide internal directories.