behavior

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 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) 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

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
}

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