config

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RunConfigFileName  = "run-config.toml"
	VegaBinaryName     = "vega"
	DataNodeBinaryName = "data-node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsConfig

type AssetsConfig struct {
	Vega     string  `toml:"vega"`
	DataNode *string `toml:"data_node"`
}

func (AssetsConfig) ToSlice

func (ac AssetsConfig) ToSlice() []string

type AutoInstallConfig

type AutoInstallConfig struct {
	Enabled               bool         `toml:"enabled"`
	GithubRepositoryOwner string       `toml:"repositoryOwner"`
	GithubRepository      string       `toml:"repository"`
	Assets                AssetsConfig `toml:"assets"`
}

type BinaryConfig

type BinaryConfig struct {
	Path string   `toml:"path"`
	Args []string `toml:"args"`
}

type DataNodeConfig

type DataNodeConfig struct {
	Binary BinaryConfig `toml:"binary"`
}

type RPCConfig

type RPCConfig struct {
	SocketPath string `toml:"socketPath"`
	HTTPPath   string `toml:"httpPath"`
}

type RunConfig

type RunConfig struct {
	Name     string          `toml:"name"`
	Vega     VegaConfig      `toml:"vega"`
	DataNode *DataNodeConfig `toml:"data_node"`
}

func ExampleRunConfig

func ExampleRunConfig(name string, withDataNode bool) *RunConfig

func ParseRunConfig

func ParseRunConfig(path string) (*RunConfig, error)

func (*RunConfig) WriteToFile

func (rc *RunConfig) WriteToFile(path string) error

type VegaConfig

type VegaConfig struct {
	Binary BinaryConfig `toml:"binary"`
	RCP    RPCConfig    `toml:"rpc"`
}

type VisorConfig

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

func DefaultVisorConfig

func DefaultVisorConfig(log *logging.Logger, homePath string) *VisorConfig

func NewVisorConfig

func NewVisorConfig(log *logging.Logger, homePath string) (*VisorConfig, error)

func (*VisorConfig) AutoInstall

func (pc *VisorConfig) AutoInstall() AutoInstallConfig

func (*VisorConfig) CurrentFolder

func (pc *VisorConfig) CurrentFolder() string

func (*VisorConfig) CurrentRunConfigPath

func (pc *VisorConfig) CurrentRunConfigPath() string

func (*VisorConfig) GenesisFolder

func (pc *VisorConfig) GenesisFolder() string

func (*VisorConfig) MaxNumberOfFirstConnectionRetries added in v0.62.0

func (pc *VisorConfig) MaxNumberOfFirstConnectionRetries() int

func (*VisorConfig) MaxNumberOfRestarts

func (pc *VisorConfig) MaxNumberOfRestarts() int

func (*VisorConfig) RestartsDelaySeconds

func (pc *VisorConfig) RestartsDelaySeconds() int

func (*VisorConfig) StopSignalTimeoutSeconds

func (pc *VisorConfig) StopSignalTimeoutSeconds() int

func (*VisorConfig) UpgradeFolder

func (pc *VisorConfig) UpgradeFolder(releaseTag string) string

func (*VisorConfig) WatchForUpdate

func (pc *VisorConfig) WatchForUpdate(ctx context.Context) error

func (*VisorConfig) WriteToFile

func (pc *VisorConfig) WriteToFile() error

type VisorConfigFile

type VisorConfigFile struct {
	UpgradeFolders                    map[string]string `toml:"upgradeFolders"`
	MaxNumberOfRestarts               int               `toml:"maxNumberOfRestarts"`
	RestartsDelaySeconds              int               `toml:"restartsDelaySeconds"`
	StopSignalTimeoutSeconds          int               `toml:"stopSignalTimeoutSeconds"`
	MaxNumberOfFirstConnectionRetries int               `toml:"maxNumberOfFirstConnectionRetries"`

	AutoInstall AutoInstallConfig `toml:"autoInstall"`
}

Jump to

Keyboard shortcuts

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