s3

package
v0.0.0-...-614bee3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 17 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) CreateBucket

func (c *Client) CreateBucket(bucket string, params map[string]string) CreateBucketResponse

func (*Client) Delete

func (c *Client) Delete(bucket, key string) DeleteResponse

func (*Client) Get

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

func (*Client) Put

func (c *Client) Put(bucket, key string, payload goja.ArrayBuffer) PutResponse

func (*Client) VerifyHash

func (c *Client) VerifyHash(bucket, key, expectedHash string) VerifyHashResponse

type CreateBucketResponse

type CreateBucketResponse struct {
	Success bool
	Error   string
}

type DeleteResponse

type DeleteResponse struct {
	Success bool
	Error   string
}

type GetResponse

type GetResponse struct {
	Success bool
	Error   string
}

type PutResponse

type PutResponse struct {
	Success bool
	Error   string
}

type RootModule

type RootModule struct{}

RootModule is the global module object type. It is instantiated once per test run and will be used to create k6/x/frostfs/s3 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 S3

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

S3 represents an instance of the module for every VU.

func (*S3) Connect

func (s *S3) Connect(endpoint string, params map[string]string) (*Client, error)

func (*S3) Exports

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

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

type VerifyHashResponse

type VerifyHashResponse struct {
	Success bool
	Error   string
}

Jump to

Keyboard shortcuts

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