Documentation ¶
Index ¶
- Variables
- func NewCommonBackupInfoFormat(source string) formatter.Format
- func NewFullCommonBackupInfoFormat(source string) formatter.Format
- func Write(ctx formatter.Context, commonBackupInfos []ybaclient.CommonBackupInfo) error
- type Context
- func (c *Context) BackupUUID() string
- func (c *Context) CompletionTime() string
- func (c *Context) CreateTime() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) State() string
- func (c *Context) StorageConfig() string
- func (c *Context) TableByTableBackup() bool
- func (c *Context) TotalBackupSizeInBytes() int64
- func (c *Context) UpdateTime() string
- type FullCommonBackupInfoContext
Constants ¶
This section is empty.
Variables ¶
var StorageConfigs []ybaclient.CustomerConfigUI
StorageConfigs hold storage config for the backup
Functions ¶
func NewCommonBackupInfoFormat ¶
NewCommonBackupInfoFormat for formatting output
func NewFullCommonBackupInfoFormat ¶
NewFullCommonBackupInfoFormat for formatting output
Types ¶
type Context ¶
type Context struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
Context for commonBackupInfo outputs
func NewCommonBackupInfoContext ¶
func NewCommonBackupInfoContext() *Context
NewCommonBackupInfoContext creates a new context for rendering common Backup Info
func (*Context) CompletionTime ¶
CompletionTime fetches whether Backup CompletionTime
func (*Context) CreateTime ¶
CreateTime fetches whether Backup CreateTime
func (*Context) StorageConfig ¶
StorageConfig fetches Backup StorageConfig
func (*Context) TableByTableBackup ¶
TableByTableBackup fetches whether Backup is TableByTableBackup
func (*Context) TotalBackupSizeInBytes ¶
TotalBackupSizeInBytes fetches whether Backup TotalBackupSizeInBytes
func (*Context) UpdateTime ¶
UpdateTime fetches whether Backup UpdateTime
type FullCommonBackupInfoContext ¶
type FullCommonBackupInfoContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullCommonBackupInfoContext to render CommonBackupInfo Details output
func NewFullCommonBackupInfoContext ¶
func NewFullCommonBackupInfoContext() *FullCommonBackupInfoContext
NewFullCommonBackupInfoContext creates a new context for rendering commonBackupInfo
func (*FullCommonBackupInfoContext) MarshalJSON ¶
func (fcb *FullCommonBackupInfoContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullCommonBackupInfoContext) SetFullCommonBackupInfo ¶
func (fcb *FullCommonBackupInfoContext) SetFullCommonBackupInfo( commonBackupInfo ybaclient.CommonBackupInfo, )
SetFullCommonBackupInfo initializes the context with the commonBackupInfo data
func (*FullCommonBackupInfoContext) Write ¶
func (fcb *FullCommonBackupInfoContext) Write(index int) error
Write populates the output table to be displayed in the command line