s3local

package
v0.0.0-...-0a6e51c Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Get

func (c *Client) Get(bucket, key string) GetResponse

func (*Client) Put

func (c *Client) Put(bucket, key string, payload datagen.Payload) PutResponse

type CreateBucketResponse

type CreateBucketResponse SuccessOrErrorResponse

type DeleteResponse

type DeleteResponse SuccessOrErrorResponse

type GetResponse

type GetResponse SuccessOrErrorResponse

type Local

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

Local represents an instance of the module for every VU.

func (*Local) Connect

func (s *Local) Connect(configFile string, configDir string, params map[string]string, bucketMapping map[string]string, maxSizeGB int64) (*Client, error)

func (*Local) Exports

func (s *Local) Exports() modules.Exports

Exports implements the modules.Instance interface and returns the exports of the JS module.

type PutResponse

type PutResponse SuccessOrErrorResponse

type RootModule

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

RootModule is the global module object type. It is instantiated once per test run and will be used to create k6/x/frostfs/s3local module instances for each VU.

func (*RootModule) NewModuleInstance

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

NewModuleInstance implements the modules.Module interface and returns a new instance for each VU.

type SuccessOrErrorResponse

type SuccessOrErrorResponse struct {
	Success bool
	Abort   bool
	Error   string
}

Jump to

Keyboard shortcuts

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