mpgutil

package
v0.4.93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

func AvailableRegionCodes(ctx context.Context) ([]string, error)

AvailableRegionCodes returns the codes of AvailableRegions.

func AvailableRegions

func AvailableRegions(ctx context.Context) ([]fly.Region, error)

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.

func IsValidRegion

func IsValidRegion(ctx context.Context, regionCode string) (bool, error)

IsValidRegion reports whether Managed Postgres is available in the given region code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL