pitr

package
v0.0.0-...-d19302c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFullPITRFormat

func NewFullPITRFormat(source string) formatter.Format

NewFullPITRFormat for formatting output

func NewPITRFormat

func NewPITRFormat(source string) formatter.Format

NewPITRFormat for formatting output

func Write

func Write(ctx formatter.Context, pitrs []ybaclient.PitrConfig) error

Write renders the context for a list of PITRs

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

func (c *Context) CreateTime() string

CreateTime fetches the create time of the PITR config

func (*Context) CreatedForDR

func (c *Context) CreatedForDR() string

CreatedForDR fetches the boolean indicating whether this was created for DR

func (*Context) DbName

func (c *Context) DbName() string

DbName fetches Database Name associated with PITR Config

func (*Context) MarshalJSON

func (c *Context) MarshalJSON() ([]byte, error)

MarshalJSON function for PITRConfigContext

func (*Context) MaxRecoverTime

func (c *Context) MaxRecoverTime() string

MaxRecoverTime fetches the max recovery time in milliseconds

func (*Context) MinRecoverTime

func (c *Context) MinRecoverTime() string

MinRecoverTime fetches the min recovery time in milliseconds

func (*Context) Name

func (c *Context) Name() string

Name fetches PITR Config Name

func (*Context) RetentionPeriod

func (c *Context) RetentionPeriod() string

RetentionPeriod fetches the retention period in seconds

func (*Context) ScheduleInterval

func (c *Context) ScheduleInterval() string

ScheduleInterval fetches the schedule interval in seconds

func (*Context) State

func (c *Context) State() string

State fetches the state of the PITR Config

func (*Context) TableType

func (c *Context) TableType() string

TableType fetches the table type for the PITR config

func (*Context) UUID

func (c *Context) UUID() string

UUID fetches PITR Config UUID

func (*Context) UpdateTime

func (c *Context) UpdateTime() string

UpdateTime fetches the update time of the PITR config

func (*Context) UsedForXCluster

func (c *Context) UsedForXCluster() string

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

Jump to

Keyboard shortcuts

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