testutils

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StopFunc

type StopFunc func() error

StopFunc is a function to stop the created container.

func NewClient

func NewClient(bucketName string, options ...s3.ClientOption) (s3.Client, StopFunc, error)

NewClient starts a container with a running MinIO instance and returns a new s3.Client, a function to stop the container on purpose and an error.

Notes: Only meant to be used for testing purposes. Host MUST have a docker engine running.

Jump to

Keyboard shortcuts

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