s3testing

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminUserOrPassword = "simpleblob"
)

Variables

View Source
var ErrMinioNotFound = exec.ErrNotFound

Functions

func FreePort

func FreePort() (int, error)

FreePort returns a port number free for use.

func ServeMinio

func ServeMinio(ctx context.Context, dir string) (string, func() error, error)

ServeMinio starts a Minio server in the background, and waits for it to be ready. It returns its address, and a function to stop the server gracefully.

The admin username and password for the server are both "simpleblob".

If the minio binary cannot be found in PATH, ErrMinioNotFound will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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