Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseOrCreateKey ¶
func ParseOrCreateKey(hexKeyStr string) (*keys.PrivateKey, error)
ParseOrCreateKey parses the provided key as a hex string or creates a fresh one if empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Delete ¶
func (c *Client) Delete(containerID, objectID string) DeleteResponse
func (*Client) Get ¶
func (c *Client) Get(containerID, objectID string) GetResponse
type DeleteResponse ¶
type DeleteResponse SuccessOrErrorResponse
type GetResponse ¶
type GetResponse SuccessOrErrorResponse
type Local ¶
type Local struct { ResolveEngine func(context.Context, string, string, bool, int64) (*engine.StorageEngine, Limiter, error) // contains filtered or unexported fields }
Local represents an instance of the module for every VU.
func NewLocalModuleInstance ¶
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/local module instances for each VU.
func (*RootModule) GetOrCreateEngine ¶
func (r *RootModule) GetOrCreateEngine(ctx context.Context, configFile string, configDir string, debug bool, maxSizeGB int64) (*engine.StorageEngine, Limiter, error)
GetOrCreateEngine returns the current engine instance for the given configuration file or directory, creating a new one if none exists. Note that the identity of configuration files is their file name for the purposes of test runs.
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 ¶
Click to show internal directories.
Click to hide internal directories.