Documentation ¶
Index ¶
- Constants
- type Behavior
- func (receiver Behavior) Backup(sourcePath string, destPath string, options *common.CompressOptions) (*Result, error)
- func (receiver Behavior) ChangeOwner(uid, gid int64, path string) error
- func (receiver Behavior) Fallback(blockHeight int64, nodeRoot string, configPath string, crypto string, ...) error
- func (receiver Behavior) Restore(sourcePath string, destPath string, options *common.DecompressOptions, ...) error
- func (receiver Behavior) Snapshot(blockHeight int64, nodeRoot string, configPath string, backupPath string, ...) (int64, error)
- func (receiver Behavior) SnapshotRecover(blockHeight int64, nodeRoot string, configPath string, backupPath string, ...) error
- type Interface
- type Result
Constants ¶
View Source
const ( RaftConsensusDir string = "raft-data-dir" OverLordConsensusDir string = "overlord_wal" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Behavior ¶
type Behavior struct {
// contains filtered or unexported fields
}
func (Behavior) ChangeOwner ¶ added in v0.0.2
type Interface ¶
type Interface interface { Backup(sourcePath string, destPath string, options *common.CompressOptions) (*Result, error) Restore(sourcePath string, destPath string, options *common.DecompressOptions, deleteConsensusData bool) error Fallback(blockHeight int64, nodeRoot string, configPath string, crypto string, consensus string, deleteConsensusData bool) error Snapshot(blockHeight int64, nodeRoot string, configPath string, backupPath string, crypto string, consensus string) (int64, error) SnapshotRecover(blockHeight int64, nodeRoot string, configPath string, backupPath string, crypto string, consensus string, deleteConsensusData bool) error ChangeOwner(uid, gid int64, path string) error }
Click to show internal directories.
Click to hide internal directories.