WithReplicaSet
Method
func (MongoDBServerResource) WithReplicaSet(options ...*WithReplicaSetOptions) MongoDBServerResourceSignature
method
WithReplicaSet builderConfigures and initializes the MongoDB server as a single-member replica set for local development.
WithReplicaSet(options ...*WithReplicaSetOptions) MongoDBServerResourceParameters
options...*WithReplicaSetOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithReplicaSetOptions argument.
Name*stringThe replica set name. Defaults to the resource name, or the name previously configured by this method.Returns
MongoDBServerResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: