behavior

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Behavior

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

func (Behavior) Backup

func (receiver Behavior) Backup(sourcePath string, destPath string) (int64, error)

func (Behavior) ChangeOwner added in v0.0.2

func (receiver Behavior) ChangeOwner(uid, gid int64, path string) error

func (Behavior) Fallback

func (receiver Behavior) Fallback(blockHeight int64, nodeRoot string, configPath string, crypto string, consensus string) error

func (Behavior) Restore

func (receiver Behavior) Restore(sourcePath string, destPath string) error

func (Behavior) Snapshot added in v0.0.2

func (receiver Behavior) Snapshot(blockHeight int64, nodeRoot string, configPath string, backupPath string, crypto string, consensus string) (int64, error)

func (Behavior) SnapshotRecover added in v0.0.2

func (receiver Behavior) SnapshotRecover(blockHeight int64, nodeRoot string, configPath string, backupPath string, crypto string, consensus string) error

type Interface

type Interface interface {
	Backup(sourcePath string, destPath string) (int64, error)
	Restore(sourcePath string, destPath string) error
	Fallback(blockHeight int64, nodeRoot string, configPath string, crypto string, consensus string) 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) error
	ChangeOwner(uid, gid int64, path string) error
}

func NewBehavior

func NewBehavior(execer exec.Interface, logger logr.Logger) Interface

Jump to

Keyboard shortcuts

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