rustfs

package
v0.0.0-...-416789e Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tag         = "rustfs"
	Image       = "rustfs/rustfs"
	Port        = "9000/tcp"
	ConsolePort = "9001/tcp"

	ContainerPrettyName = "RustFS"
)

Variables

View Source
var Module = mockestra.BuildContainerModule(
	Tag,
	fx.Provide(
		fx.Annotate(
			New,
			fx.ResultTags(`name:"rustfs"`),
		),
		Actualize,
	),
)
View Source
var WithPostReadyHook = mockestra.WithPostReadyHook

Functions

func WithBucket

func WithBucket(bucketName string) testcontainers.CustomizeRequestOption

func WithObjectStorageCredentials

func WithObjectStorageCredentials(credentials RustFSCredentials) testcontainers.CustomizeRequestOption

Types

type ContainerParams

type ContainerParams struct {
	fx.In
	Lifecycle fx.Lifecycle
	Request   *testcontainers.GenericContainerRequest `name:"rustfs"`
}

type RequestParams

type RequestParams struct {
	fx.In
	Prefix  string                               `name:"prefix"`
	Version string                               `name:"rustfs_version"`
	Opts    []testcontainers.ContainerCustomizer `group:"rustfs"`
}

type Result

type Result struct {
	fx.Out
	Container      testcontainers.Container `name:"rustfs"`
	ContainerGroup testcontainers.Container `group:"containers"`
}

func Actualize

func Actualize(p ContainerParams) (Result, error)

type RustFSCredentials

type RustFSCredentials struct {
	AccessKeyID     string
	SecretAccessKey string
}

Jump to

Keyboard shortcuts

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