commonbackupinfo

package
v0.0.0-...-0c68bc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StorageConfigs []ybaclient.CustomerConfigUI

StorageConfigs hold storage config for the backup

Functions

func NewCommonBackupInfoFormat

func NewCommonBackupInfoFormat(source string) formatter.Format

NewCommonBackupInfoFormat for formatting output

func NewFullCommonBackupInfoFormat

func NewFullCommonBackupInfoFormat(source string) formatter.Format

NewFullCommonBackupInfoFormat for formatting output

func Write

func Write(ctx formatter.Context, commonBackupInfos []ybaclient.CommonBackupInfo) error

Write renders the context for a list of CommonBackupInfos

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) BackupUUID

func (c *Context) BackupUUID() string

BackupUUID fetches Backup UUID

func (*Context) CompletionTime

func (c *Context) CompletionTime() string

CompletionTime fetches whether Backup CompletionTime

func (*Context) CreateTime

func (c *Context) CreateTime() string

CreateTime fetches whether Backup CreateTime

func (*Context) MarshalJSON

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

MarshalJSON function

func (*Context) State

func (c *Context) State() string

State fetches Backup State

func (*Context) StorageConfig

func (c *Context) StorageConfig() string

StorageConfig fetches Backup StorageConfig

func (*Context) TableByTableBackup

func (c *Context) TableByTableBackup() bool

TableByTableBackup fetches whether Backup is TableByTableBackup

func (*Context) TotalBackupSizeInBytes

func (c *Context) TotalBackupSizeInBytes() int64

TotalBackupSizeInBytes fetches whether Backup TotalBackupSizeInBytes

func (*Context) UpdateTime

func (c *Context) UpdateTime() string

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

Jump to

Keyboard shortcuts

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