AddMongoDB
Method
func (DistributedApplicationBuilder) AddMongoDB( name string, options ...*AddMongoDBOptions,) MongoDBServerResourceSignature
method
AddMongoDB builderAdds a MongoDB container resource
AddMongoDB( name string, options ...*AddMongoDBOptions,) MongoDBServerResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.options...*AddMongoDBOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddMongoDBOptions argument.
Port*float64The host port for MongoDB.UserName *ParameterResource A parameter that contains the MongoDb server user name, or null to use a default value.Password*ParameterResource A parameter that contains the MongoDb server password, or null to use a generated password.Returns
MongoDBServerResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder