processmanager

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGoPathToDollarPath

func AddGoPathToDollarPath(path string) error

func GetBinaryVersion

func GetBinaryVersion(binaryPath string) (string, error)

func GetHomePath

func GetHomePath() (string, error)

func ReloadDaemon

func ReloadDaemon() error

func StartProcess

func StartProcess(process string) error

func ValidateMismatch

func ValidateMismatch(incoming *protocoltypes.Version, current string) bool

Types

type ProtocolBinaryFetcher

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

func (*ProtocolBinaryFetcher) FetchProtocolBinary

func (pbf *ProtocolBinaryFetcher) FetchProtocolBinary(autoDownload bool, protocolConsensusVersion *protocoltypes.Version) (selectedBinaryPath string, err error)

func (*ProtocolBinaryFetcher) SetupLavavisorDir

func (pbf *ProtocolBinaryFetcher) SetupLavavisorDir(dir string) error

func (*ProtocolBinaryFetcher) ValidateLavavisorDir

func (pbf *ProtocolBinaryFetcher) ValidateLavavisorDir(dir string) (lavavisorPath string, err error)

func (*ProtocolBinaryFetcher) VerifyGoInstallation

func (pbf *ProtocolBinaryFetcher) VerifyGoInstallation() (string, error)

type ProtocolBinaryLinker

type ProtocolBinaryLinker struct {
	Fetcher *ProtocolBinaryFetcher
}
func (pbl *ProtocolBinaryLinker) CreateLink(binaryPath string) error

func (*ProtocolBinaryLinker) FindLavaProtocolPath

func (pbl *ProtocolBinaryLinker) FindLavaProtocolPath(binaryPath string) (string, error)

type VersionMonitor

type VersionMonitor struct {
	BinaryPath    string
	LavavisorPath string

	LaunchedServices bool // indicates whether version was matching or not so we can decide wether to launch services
	// contains filtered or unexported fields
}

func NewVersionMonitor

func NewVersionMonitor(initVersion string, lavavisorPath string, processes []string, autoDownload bool) *VersionMonitor

func (*VersionMonitor) ValidateProtocolVersion

func (vm *VersionMonitor) ValidateProtocolVersion(incoming *statetracker.ProtocolVersionResponse) error

Jump to

Keyboard shortcuts

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