Help us shape the future of Go! Take the 2026 Go Developer Survey

dedicatedreadreplica

package
v0.348.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(ch *cmdutil.Helper) *cobra.Command

Cmd manages dedicated read replicas for Postgres branches.

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

CreateCmd creates a dedicated read replica.

func DeleteCmd

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

DeleteCmd deletes a dedicated read replica by name.

func DeprecatedCmd

func DeprecatedCmd(ch *cmdutil.Helper) *cobra.Command

DeprecatedCmd preserves the previous command name without advertising it. Cobra only prints Deprecated for the command that runs, so subcommands warn through PersistentPreRunE the same way the deprecated workflow command does.

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd lists dedicated read replicas for a Postgres branch.

func ShowCmd

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

ShowCmd shows a dedicated read replica by name.

func UpdateCmd

func UpdateCmd(ch *cmdutil.Helper) *cobra.Command

UpdateCmd updates a dedicated read replica.

Types

type DedicatedReadReplica added in v0.344.0

type DedicatedReadReplica struct {
	ID        string `header:"id" json:"id"`
	Name      string `header:"name" json:"name"`
	State     string `header:"state" json:"state"`
	Region    string `header:"region" json:"region"`
	Size      string `header:"size" json:"size"`
	Replicas  int    `header:"replicas" json:"replicas"`
	Ready     bool   `header:"ready" json:"ready"`
	CreatedAt int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	// contains filtered or unexported fields
}

DedicatedReadReplica is the human/JSON/CSV view of a Postgres dedicated read replica.

func (*DedicatedReadReplica) MarshalCSVValue added in v0.344.0

func (r *DedicatedReadReplica) MarshalCSVValue() interface{}

func (*DedicatedReadReplica) MarshalJSON added in v0.344.0

func (r *DedicatedReadReplica) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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