stress

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stress

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

func New

func New(r runc.Runc, targetId string, opts StressOpts) (*Stress, error)

func (*Stress) Start

func (s *Stress) Start() error

func (*Stress) Stop

func (s *Stress) Stop()

func (*Stress) Wait

func (s *Stress) Wait() <-chan error

type StressOpts

type StressOpts struct {
	CpuWorkers *int
	CpuLoad    int
	HddWorkers *int
	HddBytes   string
	IoWorkers  *int
	TempPath   string
	Timeout    time.Duration
	VmWorkers  *int
	VmHang     time.Duration
	VmBytes    string
}

func (*StressOpts) Args

func (o *StressOpts) Args() []string

Jump to

Keyboard shortcuts

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