docker

package
v0.0.0-...-2bbbdf5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

type Mongo struct {
	// contains filtered or unexported fields
}

func NewMongo

func NewMongo(ctx context.Context, opts ...MongoOption) (Mongo, error)

func (Mongo) GetClient

func (x Mongo) GetClient() *mongo.Client

func (Mongo) Shutdown

func (x Mongo) Shutdown(ctx context.Context) error

type MongoOption

type MongoOption testcontainers.ContainerCustomizer

func WithMongoPassword

func WithMongoPassword(password string) MongoOption

func WithMongoUsername

func WithMongoUsername(username string) MongoOption

func WithMongoVersion

func WithMongoVersion(version string) MongoOption

Jump to

Keyboard shortcuts

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