cli

package
v2.0.2-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const EndureKey string = "endure"
View Source
const InformerList string = "informer.List"
View Source
const InformerWorkers string = "informer.Workers"
View Source
const List string = "resetter.List"

List is the resetter.List RPC method

View Source
const Reset string = "resetter.Reset"

Reset is the resetter.Reset RPC method

Variables

View Source
var (
	// WorkDir is working directory
	WorkDir string
	// CfgFile is path to the .rr.yaml
	CfgFile string
	// Debug mode
	Debug bool
	// Container is the pointer to the Endure container
	Container   *endure.Endure
	RetryOnFail bool
	GracePeriod time.Duration = time.Second * 30
)
View Source
var (
	// Version - defines build version.
	Version string = "local"

	// BuildTime - defined build time.
	BuildTime string = "development"
)

Functions

func Execute

func Execute()

func RPCClient

func RPCClient() (*rpc.Client, error)

RPCClient is using to make a requests to the ./rr reset, ./rr workers

Types

type EndureConfig added in v2.0.1

type EndureConfig struct {
	GracePeriod time.Duration `mapstructure:"grace_period"`
	PrintGraph  bool          `mapstructure:"print_graph"`
	RetryOnFail bool          `mapstructure:"retry_on_fail"` //TODO check for races, disabled at the moment
	LogLevel    string        `mapstructure:"log_level"`
}

EndureConfig represents container configuration

Jump to

Keyboard shortcuts

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