miniofixture

package
v1.0.9502-2a3386e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketName

func BucketName(t testing.TB) string

func Setup

func Setup(ctx context.Context, t testing.TB, fix *Fixture)

Setup will take the given fixture adding default values as needed and update the fields in the fixture with whatever values were used.

Types

type Fixture

type Fixture struct {
	Client             *s3.Client
	URL                string
	Key                secret.String
	Secret             secret.String
	Bucket             string
	Region             string
	Versioned          bool // Versioned will be set true if we have managed to enable versioning
	ForceLocal         bool // ForceLocal will fail on a local run if minio is not running
	ForceVersioned     bool // ForceVersioned will fail if the bucket can not be set versioned
	DisallowPublicRead bool // DisallowPublicRead will not set permissions on the bucket for direct access to links
}

Fixture can be used to set up fields that will be used in creating

func Default

func Default(ctx context.Context, t testing.TB) *Fixture

Default sets up and returns the default minio fixture

Jump to

Keyboard shortcuts

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