Documentation
¶
Index ¶
- func Init(ctx context.Context, env Environment, buckets ...Bucket) (minioClient *minio.Client, term func(), err error)
- func Reuse(ctx context.Context, reusable *Reusable, buckets ...Bucket) (minioClinet *minio.Client, term func(), err error)
- func ReuseForTesting(t *testing.T, reusable *Reusable, buckets ...Bucket) *minio.Client
- func UseExternal(ctx context.Context, buckets ...Bucket) (minioClient *minio.Client, term func(), err error)
- func UseExternalConfig(ctx context.Context, cfg *ExternalEnvironmentConfig, buckets ...Bucket) (minioClient *minio.Client, term func(), err error)
- func UseExternalForTesting(t *testing.T, buckets ...Bucket) *minio.Client
- func UseExternalForTestingConfig(t *testing.T, cfg *ExternalEnvironmentConfig, buckets ...Bucket) *minio.Client
- type Bucket
- type Environment
- type ExternalEnvironmentConfig
- type File
- type ProvideEnvironmentFunc
- type Reusable
- type ReusableOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init( ctx context.Context, env Environment, buckets ...Bucket, ) (minioClient *minio.Client, term func(), err error)
func ReuseForTesting ¶
func UseExternal ¶
func UseExternalConfig ¶
func UseExternalConfig( ctx context.Context, cfg *ExternalEnvironmentConfig, buckets ...Bucket, ) (minioClient *minio.Client, term func(), err error)
func UseExternalForTesting ¶
func UseExternalForTestingConfig ¶
func UseExternalForTestingConfig( t *testing.T, cfg *ExternalEnvironmentConfig, buckets ...Bucket, ) *minio.Client
Types ¶
type Environment ¶
type ProvideEnvironmentFunc ¶
type ProvideEnvironmentFunc func(ctx context.Context) (Environment, error)
func ExternalEnvironment ¶
func ExternalEnvironment(cfg *ExternalEnvironmentConfig) ProvideEnvironmentFunc
type Reusable ¶
type Reusable struct {
// contains filtered or unexported fields
}
func ExternalReusable ¶
func ExternalReusable() *Reusable
func NewReusable ¶
func NewReusable(ccf ProvideEnvironmentFunc, opts ...ReusableOption) *Reusable
type ReusableOption ¶
type ReusableOption func(*Reusable)
func WithWaitDuration ¶
func WithWaitDuration(waitDuration time.Duration) ReusableOption
Click to show internal directories.
Click to hide internal directories.