s3local

package
v0.0.0-...-adf1a93 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: GPL-3.0 Imports: 31 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 FeatureSettings

type FeatureSettings struct{}

func (*FeatureSettings) BufferMaxSizeForPut

func (k *FeatureSettings) BufferMaxSizeForPut() uint64

func (*FeatureSettings) ClientCut

func (k *FeatureSettings) ClientCut() bool

func (*FeatureSettings) FormContainerZone

func (k *FeatureSettings) FormContainerZone(ns string) string

func (*FeatureSettings) MD5Enabled

func (k *FeatureSettings) MD5Enabled() bool

func (*FeatureSettings) TombstoneLifetime

func (k *FeatureSettings) TombstoneLifetime() uint64

func (*FeatureSettings) TombstoneMembersSize

func (k *FeatureSettings) TombstoneMembersSize() int

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