native

package
v0.0.0-...-76fd5c9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 28 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) Delete

func (c *Client) Delete(containerID string, objectID string) DeleteResponse

func (*Client) Get

func (c *Client) Get(containerID, objectID string) GetResponse

func (*Client) Onsite

func (c *Client) Onsite(containerID string, payload datagen.Payload) PreparedObject

func (*Client) Put

func (c *Client) Put(containerID string, headers map[string]string, payload datagen.Payload, chunkSize int) PutResponse

func (*Client) PutContainer

func (c *Client) PutContainer(params map[string]string) PutContainerResponse

func (*Client) VerifyHash

func (c *Client) VerifyHash(containerID, objectID, expectedHash string) VerifyHashResponse

type DeleteResponse

type DeleteResponse struct {
	Success bool
	Error   string
}

type GetResponse

type GetResponse struct {
	Success bool
	Error   string
}

type Native

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

Native represents an instance of the module for every VU.

func (*Native) Connect

func (n *Native) Connect(endpoint, hexPrivateKey string, dialTimeout, streamTimeout int, prepareLocally bool, maxObjSize int) (*Client, error)

func (*Native) Exports

func (n *Native) Exports() modules.Exports

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

type PreparedObject

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

func (PreparedObject) Put

func (p PreparedObject) Put(headers map[string]string) PutResponse

type PutContainerResponse

type PutContainerResponse struct {
	Success     bool
	ContainerID string
	Error       string
}

type PutResponse

type PutResponse struct {
	Success  bool
	ObjectID string
	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/native 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 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