Documentation ¶
Index ¶
- Constants
- type AssetsConfig
- type AutoInstallConfig
- type BinaryConfig
- type DataNodeConfig
- type RPCConfig
- type RunConfig
- type VegaConfig
- type VisorConfig
- func (pc *VisorConfig) AutoInstall() AutoInstallConfig
- func (pc *VisorConfig) CurrentFolder() string
- func (pc *VisorConfig) CurrentRunConfigPath() string
- func (pc *VisorConfig) GenesisFolder() string
- func (pc *VisorConfig) MaxNumberOfRestarts() int
- func (pc *VisorConfig) RestartsDelaySeconds() int
- func (pc *VisorConfig) StopSignalTimeoutSeconds() int
- func (pc *VisorConfig) UpgradeFolder(releaseTag string) string
- func (pc *VisorConfig) WatchForUpdate(ctx context.Context) error
- func (pc *VisorConfig) WriteToFile() error
- type VisorConfigFile
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 ¶
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 DataNodeConfig ¶
type DataNodeConfig struct {
Binary BinaryConfig `toml:"binary"`
}
type RunConfig ¶
type RunConfig struct { Name string `toml:"name"` Vega VegaConfig `toml:"vega"` DataNode *DataNodeConfig `toml:"data_node"` }
func ExampleRunConfig ¶
func ParseRunConfig ¶
func (*RunConfig) WriteToFile ¶
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) 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"` AutoInstall AutoInstallConfig `toml:"autoInstall"` }
Click to show internal directories.
Click to hide internal directories.