runner

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketWithObject

type BucketWithObject struct {
	BucketName string             `json:"bucketName"`
	ObjectMeta *object.ObjectMeta `json:"objectMeta"`
}

type ExecutionContext

type ExecutionContext struct {
	Endpoint      string   `json:"endpoint"`
	BucketNames   []string `json:"bucketNames"`
	NumObj        int      `json:"numObj"`
	NumWorker     int      `json:"numWorker"`
	MinSize       int      `json:"minSize"`
	MaxSize       int      `json:"maxSize"`
	StartWorkerID int      `json:"startWorkerID"`
	Workers       []Worker `json:"workers"`
}

type Operation

type Operation int
const (
	Put Operation = iota
	Get
	Delete
	List
	NumOperation
)

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(execContext *ExecutionContext, opeRatio []float64, timeInMs int64,
	profiler bool, loadFileName string, processID, multipartThresh int,
	caCertFileName string) *Runner

func NewRunnerFromLoadFile

func NewRunnerFromLoadFile(loadFileName string, opeRatio []float64, timeInMs int64,
	profiler bool, multipartThresh int, caCertFileName string) *Runner

func (*Runner) Run

func (r *Runner) Run(cancel chan struct{}) error

func (*Runner) SaveContext

func (r *Runner) SaveContext(saveFileName string) error

type Worker

type Worker struct {
	BucketsWithObject []*BucketWithObject `json:"bucketsWithObject"`
	// contains filtered or unexported fields
}

func (*Worker) Delete

func (w *Worker) Delete() error

func (*Worker) Get

func (w *Worker) Get() error

func (*Worker) List added in v0.7.0

func (w *Worker) List() error

func (*Worker) Put

func (w *Worker) Put(multipartThresh int) error

func (*Worker) ShowInfo

func (w *Worker) ShowInfo()

Jump to

Keyboard shortcuts

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