Documentation
¶
Index ¶
- func Cmd(ch *cmdutil.Helper) *cobra.Command
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeCancelCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeStatusCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- type PgBouncer
- type PgBouncerResize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResizeCancelCmd ¶
ResizeCancelCmd cancels unfinished resize requests for a PgBouncer.
func ResizeStatusCmd ¶
ResizeStatusCmd shows the most recent resize request for a PgBouncer.
Types ¶
type PgBouncer ¶
type PgBouncer struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
Target string `header:"target" json:"target"`
Size string `header:"size" json:"size"`
ReplicasPerCell int `header:"replicas_per_cell" json:"replicas_per_cell"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
PgBouncer is the human/JSON/CSV view of a dedicated PgBouncer.
func (*PgBouncer) MarshalCSVValue ¶
func (b *PgBouncer) MarshalCSVValue() interface{}
func (*PgBouncer) MarshalJSON ¶
type PgBouncerResize ¶
type PgBouncerResize struct {
ID string `header:"id" json:"id"`
Bouncer string `header:"bouncer" json:"bouncer"`
State string `header:"state" json:"state"`
Size string `header:"size" json:"size"`
PreviousSize string `header:"previous_size" json:"previous_size"`
Target string `header:"target" json:"target"`
ReplicasPerCell int `header:"replicas_per_cell" json:"replicas_per_cell"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
PgBouncerResize is the human/JSON/CSV view of a bouncer resize request.
func (*PgBouncerResize) MarshalCSVValue ¶
func (r *PgBouncerResize) MarshalCSVValue() interface{}
func (*PgBouncerResize) MarshalJSON ¶
func (r *PgBouncerResize) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.