Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PostgresServerResource.WithPgAdmin

Method
📦 Aspire.Hosting.PostgreSQL v17.0.0
type PostgresServerResource interface {
// ... omitted for brevity
WithPgAdmin(options ...*WithPgAdminOptions) PostgresServerResource
}

Signature

methodWithPgAdminbuilder
Adds a pgAdmin 4 administration and development platform for PostgreSQL to the application model.
WithPgAdmin(options ...*WithPgAdminOptions) PostgresServerResource
options...*WithPgAdminOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPgAdminOptions argument.

ConfigureContainerfunc(obj PgAdminContainerResource)callbackCallback to configure PgAdmin container resource.
ContainerName*stringThe name of the container (Optional).
PostgresServerResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: