minio

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: AGPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tag     string
	Network *docker.Network
	Options []string
	BindIP  string
}

type File added in v0.35.0

type File struct {
	Key                  string
	Content              string
	Etag                 string
	LastModificationTime time.Time
}

type Opt

type Opt func(*Config)

func WithBindIP added in v0.42.2

func WithBindIP(ip string) Opt

func WithNetwork added in v0.39.2

func WithNetwork(network *docker.Network) Opt

func WithOptions

func WithOptions(options ...string) Opt

func WithTag

func WithTag(tag string) Opt

type Resource added in v0.20.0

type Resource struct {
	BucketName      string
	AccessKeyID     string
	AccessKeySecret string
	Endpoint        string
	Region          string
	Client          *minio.Client
}

func Setup added in v0.20.0

func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(*Config)) (*Resource, error)

func (*Resource) Contents added in v0.35.0

func (r *Resource) Contents(ctx context.Context, prefix string) ([]File, error)

func (*Resource) ToFileManagerConfig added in v0.20.0

func (r *Resource) ToFileManagerConfig(prefix string) map[string]any

func (*Resource) UploadFolder added in v0.40.0

func (r *Resource) UploadFolder(localPath, prefix string) error

Jump to

Keyboard shortcuts

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