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

readonlyreplica

package
v0.342.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 read-only replicas for Postgres branches.

func CreateCmd

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

CreateCmd creates a read-only replica.

func DeleteCmd

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

DeleteCmd deletes a read-only replica by name.

func ListCmd

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

ListCmd lists read-only replicas for a Postgres branch.

func ShowCmd

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

ShowCmd shows a read-only replica by name.

func UpdateCmd

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

UpdateCmd updates a read-only replica.

Types

type ReadOnlyReplica

type ReadOnlyReplica 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
}

ReadOnlyReplica is the human/JSON/CSV view of a Postgres read-only replica.

func (*ReadOnlyReplica) MarshalCSVValue

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

func (*ReadOnlyReplica) MarshalJSON

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

Jump to

Keyboard shortcuts

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