cmdv1

package
v0.4.41 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAttachedApps

func FormatAttachedApps(apps []mpgv1.AttachedApp) string

FormatAttachedApps formats the list of attached apps for display

func GetMpgProxyParams

func GetMpgProxyParams(ctx context.Context, localProxyPort string, username string, clusterID string, resolvedOrgSlug string) (*mpgv1.ManagedCluster, *proxy.ConnectParams, *mpgv1.GetManagedClusterCredentialsResponse, error)

GetMpgProxyParams builds proxy connection parameters for a given cluster. resolvedOrgSlug should already be the aliased slug suitable for wireguard tunnels.

func RunAttach

func RunAttach(ctx context.Context, clusterID string) error

func RunBackupCreate

func RunBackupCreate(ctx context.Context, clusterID string) error

func RunBackupList

func RunBackupList(ctx context.Context, clusterID string) error

func RunConnect

func RunConnect(ctx context.Context, clusterID string, resolvedOrgSlug string) (err error)

func RunCreate

func RunCreate(ctx context.Context, params *CreateClusterParams, planDisplay *CreatePlanDisplay) error

func RunDatabasesCreate

func RunDatabasesCreate(ctx context.Context, clusterID string) error

func RunDatabasesList

func RunDatabasesList(ctx context.Context, clusterID string) error

func RunDestroy

func RunDestroy(ctx context.Context, clusterId string) error

func RunDetach

func RunDetach(ctx context.Context, clusterID string, appName string) error

func RunList

func RunList(ctx context.Context, orgSlug string) error

func RunProxy

func RunProxy(ctx context.Context, clusterID string, resolvedOrgSlug string) error

func RunRestore

func RunRestore(ctx context.Context, clusterID string) error

func RunStatus

func RunStatus(ctx context.Context, clusterID string) error

func RunUsersCreate

func RunUsersCreate(ctx context.Context, clusterID string) error

func RunUsersDelete

func RunUsersDelete(ctx context.Context, clusterID string) error

func RunUsersList

func RunUsersList(ctx context.Context, clusterID string) error

func RunUsersSetRole

func RunUsersSetRole(ctx context.Context, clusterID string) error

Types

type CreateClusterParams

type CreateClusterParams struct {
	Name           string
	OrgSlug        string
	Region         string
	Plan           string
	VolumeSizeGB   int
	PostGISEnabled bool
	PGMajorVersion int
}

type CreatePlanDisplay

type CreatePlanDisplay struct {
	Name       string
	CPU        string
	Memory     string
	PricePerMo int
}

Jump to

Keyboard shortcuts

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