show

package
v1.1.0-beta.0...-384f858 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdExecutor

type CmdExecutor struct {
	// contains filtered or unexported fields
}

func CreateExec

func CreateExec(ctx context.Context, cfg Config) (*CmdExecutor, error)

func (*CmdExecutor) Read

func (exec *CmdExecutor) Read(ctx context.Context) (ShowResult, error)

type Config

type Config struct {
	Storage    string
	BackendCfg storage.BackendOptions
	Cipher     backuppb.CipherInfo
}

type RawRange

type RawRange struct {
	ColumnFamily string           `json:"column-family"`
	StartKey     logutil.HexBytes `json:"start-key"`
	EndKey       logutil.HexBytes `json:"end-key"`
}

type ShowResult

type ShowResult struct {
	ClusterID      uint64    `json:"cluster-id"`
	ClusterVersion string    `json:"cluster-version"`
	BRVersion      string    `json:"br-version"`
	Version        int32     `json:"version"`
	StartVersion   TimeStamp `json:"start-version"`
	EndVersion     TimeStamp `json:"end-version"`

	IsRawKV   bool       `json:"is-raw-kv"`
	RawRanges []RawRange `json:"raw-ranges"`
	Tables    []Table    `json:"tables"`
}

type Table

type Table struct {
	DBName         string `json:"db-name"`
	TableName      string `json:"table-name"`
	KVCount        uint   `json:"kv-count"`
	KVSize         uint   `json:"kv-size"`
	TiFlashReplica uint   `json:"tiflash-replica"`
}

type TimeStamp

type TimeStamp uint64

TimeStamp is a simple wrapper for the timestamp type. Perhaps we can enhance its display.

func (TimeStamp) String

func (ts TimeStamp) String() string

String implements fmt.String.

Jump to

Keyboard shortcuts

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