Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultUsername = "fly-user" DefaultDatabase = "fly-db" DefaultPort = 5432 DefaultPGMajorVersion = "16" )
Defaults for a Managed Postgres cluster.
Variables ¶
This section is empty.
Functions ¶
func AvailableRegionCodes ¶
AvailableRegionCodes returns the codes of AvailableRegions.
func AvailableRegions ¶
AvailableRegions returns the non-deprecated regions where Managed Postgres is available, per the Machines API region list (fly.Region.MPGAvailable).
func ConnectionURI ¶
func ConnectionURI(c flaps.ManagedPostgresCluster, password string) string
ConnectionURI builds a libpq connection string for the cluster's default user and database via the pooler endpoint, using the given password. The API returns no connection string, so flyctl assembles it client-side.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.