load

package
v0.0.0-...-bd1ce0c Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, cfg uplink.Config, access *uplink.Access, bucket string, key string) error

func Download

func Download(ctx context.Context, cfg uplink.Config, access *uplink.Access, bucket string, key string) (res []byte, err error)

func Upload

func Upload(ctx context.Context, cfg uplink.Config, access *uplink.Access, source []byte, bucket string, key string) error

Types

type Load

type Load struct {
	Uplink Uplink `cmd:"" help:"Load generator with uplink upload/download"`
	Stat   Stat   `cmd:"" help:"Load generator with uplink StatObject"`
}

type Stat

type Stat struct {
	Verbose bool   `help:"Print out more information"`
	Path    string `arg:"" name:"path" help:"path to the file to be uploaded"`
	Sample  int    `short:"n"  default:"10" help:"Number of executions ON EACH go routine"`
	Thread  int    `short:"t"  default:"1" help:"Number of parallel Go routines"`
}

func (*Stat) Run

func (u *Stat) Run() error
type Uplink struct {
	Verbose bool   `help:"Print out more information"`
	Path    string `arg:"" name:"path" help:"path to the file to be uploaded"`
	Sample  int    `short:"n"  default:"10" help:"Number of executions ON EACH go rountie"`
	Thread  int    `short:"t"  default:"1" help:"Number of parallel Go routines"`
	Size    int    `short:"s" size:"4194304" help:"Size of the files to be uploaded"`
}

func (*Uplink) Run

func (u *Uplink) Run() error

Jump to

Keyboard shortcuts

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