Documentation ¶
Index ¶
- func NewFullPITRFormat(source string) formatter.Format
- func NewPITRFormat(source string) formatter.Format
- func Write(ctx formatter.Context, pitrs []ybaclient.PitrConfig) error
- type Context
- func (c *Context) CreateTime() string
- func (c *Context) CreatedForDR() string
- func (c *Context) DbName() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) MaxRecoverTime() string
- func (c *Context) MinRecoverTime() string
- func (c *Context) Name() string
- func (c *Context) RetentionPeriod() string
- func (c *Context) ScheduleInterval() string
- func (c *Context) State() string
- func (c *Context) TableType() string
- func (c *Context) UUID() string
- func (c *Context) UpdateTime() string
- func (c *Context) UsedForXCluster() string
- type FullPITRContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFullPITRFormat ¶
NewFullPITRFormat for formatting output
func NewPITRFormat ¶
NewPITRFormat for formatting output
Types ¶
type Context ¶
type Context struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
Context for pitr outputs
func NewPITRContext ¶
func NewPITRContext() *Context
NewPITRContext creates a new context for rendering pitr
func (*Context) CreateTime ¶
CreateTime fetches the create time of the PITR config
func (*Context) CreatedForDR ¶
CreatedForDR fetches the boolean indicating whether this was created for DR
func (*Context) MarshalJSON ¶
MarshalJSON function for PITRConfigContext
func (*Context) MaxRecoverTime ¶
MaxRecoverTime fetches the max recovery time in milliseconds
func (*Context) MinRecoverTime ¶
MinRecoverTime fetches the min recovery time in milliseconds
func (*Context) RetentionPeriod ¶
RetentionPeriod fetches the retention period in seconds
func (*Context) ScheduleInterval ¶
ScheduleInterval fetches the schedule interval in seconds
func (*Context) UpdateTime ¶
UpdateTime fetches the update time of the PITR config
func (*Context) UsedForXCluster ¶
UsedForXCluster fetches the boolean indicating whether this PITR config is used for cross-cluster replication
type FullPITRContext ¶
type FullPITRContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullPITRContext to render PITR Details output
func NewFullPITRContext ¶
func NewFullPITRContext() *FullPITRContext
NewFullPITRContext creates a new context for rendering pitr
func (*FullPITRContext) MarshalJSON ¶
func (fp *FullPITRContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullPITRContext) SetFullPITR ¶
func (fp *FullPITRContext) SetFullPITR(pitr ybaclient.PitrConfig)
SetFullPITR initializes the context with the pitr data
func (*FullPITRContext) Write ¶
func (fp *FullPITRContext) Write(index int) error
Write populates the output table to be displayed in the command line