stress

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

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

func (*Opts) Args

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

type SidecarOpts

type SidecarOpts struct {
	TargetProcess runc.LinuxProcessInfo
	IdSuffix      string
	ImagePath     string
}

type Stress

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

func New

func New(ctx context.Context, r runc.Runc, sidecar SidecarOpts, opts Opts) (*Stress, error)

func (*Stress) Exited

func (s *Stress) Exited() (bool, error)

func (*Stress) Start

func (s *Stress) Start() error

func (*Stress) Stop

func (s *Stress) Stop()

Jump to

Keyboard shortcuts

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