k6

package module
v0.0.0-...-d457993 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

README

storj-k6

This repsitory contains module and example scripts for the k6.io load testing tool.

Quick start

go install go.k6.io/xk6/cmd/xk6@latest
xk6 build --with github.com/elek/storj-k6=.

# change database definition in simple.js

./k6 run examples/simple.js

Create image

docker buildx bake image --push

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetainfoTest

func MetainfoTest(connection string) func() error

func UplinkTest

func UplinkTest(accessGrant string) func() error

Types

type BeginObject

type BeginObject struct {
	Key string `help:"key in the form of sj://bucket/encryptedpath" arg:""`
	// contains filtered or unexported fields
}

func NewBeginObject

func NewBeginObject(uplinkAccess string, key string) *BeginObject

func (*BeginObject) Close

func (b *BeginObject) Close()

func (*BeginObject) Init

func (b *BeginObject) Init() error

func (*BeginObject) Run

func (b *BeginObject) Run() error

type ModuleInstance

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

func (*ModuleInstance) Exports

func (mi *ModuleInstance) Exports() modules.Exports

Exports implements the modules.Instance interface and returns the exported types for the JS module.

type RootModule

type RootModule struct{}

func New

func New() *RootModule

func (*RootModule) NewModuleInstance

func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance

Jump to

Keyboard shortcuts

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