postgres

package
v0.0.444 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachCluster added in v0.0.421

func AttachCluster(ctx context.Context, params AttachParams) error

AttachCluster is mean't to be called from an external package.

func CreateCluster added in v0.0.421

func CreateCluster(ctx context.Context, org *api.Organization, region *api.Region, platform string, params *ClusterParams) (err error)

CreateCluster creates a Postgres cluster with an optional name. The name will be prompted for if not supplied.

func MachineVMSizes added in v0.0.388

func MachineVMSizes() []api.VMSize

machineVMSizes represents the available VM configurations for Machines.

func New

func New() *cobra.Command

Types

type AttachParams added in v0.0.421

type AttachParams struct {
	DbName       string
	AppName      string
	PgAppName    string
	DbUser       string
	VariableName string
	Force        bool
}

type ClusterParams added in v0.0.421

type ClusterParams struct {
	PostgresConfiguration
	Password   string
	SnapshotID string
	Detach     bool
}

type PostgresConfiguration

type PostgresConfiguration struct {
	Name               string
	Description        string
	ImageRef           string
	InitialClusterSize int
	VMSize             string
	MemoryMb           int
	DiskGb             int
}

Jump to

Keyboard shortcuts

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