AddMongoDBReplicaSet
Method
func (DistributedApplicationBuilder) AddMongoDBReplicaSet( name string, options ...*AddMongoDBReplicaSetOptions,) MongoDBReplicaSetResourceSignature
method
AddMongoDBReplicaSet builderAdds a MongoDB replica set resource to the application model.
AddMongoDBReplicaSet( name string, options ...*AddMongoDBReplicaSetOptions,) MongoDBReplicaSetResourceParameters
namestringThe name of the replica set resource.options...*AddMongoDBReplicaSetOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddMongoDBReplicaSetOptions argument.
UserName *ParameterResource An optional parameter resource that contains the username for authenticating to the MongoDB replica set. If not provided, a default username will be used.Password*ParameterResource An optional parameter resource that contains the password for authenticating to the MongoDB replica set. If not provided, a default password will be used.Returns
MongoDBReplicaSetResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder