lavavisor

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceTypeProvider = "provider"
	ServiceTypeConsumer = "consumer"
)
View Source
const KeyRingPasswordFlag = "enter-keyring-password"

Variables

This section is empty.

Functions

func CreateLavaVisorCreateServiceCobraCommand

func CreateLavaVisorCreateServiceCobraCommand() *cobra.Command

func CreateLavaVisorInitCobraCommand

func CreateLavaVisorInitCobraCommand() *cobra.Command

func CreateLavaVisorPodCobraCommand

func CreateLavaVisorPodCobraCommand() *cobra.Command

func CreateLavaVisorStartCobraCommand

func CreateLavaVisorStartCobraCommand() *cobra.Command

func CreateLavaVisorWrapCobraCommand

func CreateLavaVisorWrapCobraCommand() *cobra.Command

func CreateServiceFile

func CreateServiceFile(serviceParams *ServiceParams, createLink bool) (string, error)

func LavavisorInit

func LavavisorInit(cmd *cobra.Command) error

func LavavisorPod

func LavavisorPod(cmd *cobra.Command) error

func LavavisorStart

func LavavisorStart(cmd *cobra.Command) error

func LavavisorWrap

func LavavisorWrap(cmd *cobra.Command) error

func SelectMostRecentVersionFromDir

func SelectMostRecentVersionFromDir(lavavisorPath string, version *protocoltypes.Version) (selectedVersion string, err error)

func WriteToConfigFile

func WriteToConfigFile(lavavisorPath string, serviceFileName string) error

Types

type Config

type Config struct {
	Services []string `yaml:"services"`
}

type LavaVisor

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

func (*LavaVisor) PodStart

func (lv *LavaVisor) PodStart(ctx context.Context, txFactory tx.Factory, clientCtx client.Context, runCommand string, lavavisorDir string, keyRingPassword *processmanager.KeyRingPassword) (err error)

func (*LavaVisor) Start

func (lv *LavaVisor) Start(ctx context.Context, txFactory tx.Factory, clientCtx client.Context, lavavisorPath string, autoDownload bool, services []string) (err error)

func (*LavaVisor) Wrap

func (lv *LavaVisor) Wrap(ctx context.Context, txFactory tx.Factory, clientCtx client.Context, lavavisorPath string, autoDownload bool, runCommand string, keyringPassword *processmanager.KeyRingPassword) (err error)

type LavavisorStateTrackerInf

type LavavisorStateTrackerInf interface {
	RegisterForVersionUpdates(ctx context.Context, version *protocoltypes.Version, versionValidator updaters.VersionValidationInf)
	GetProtocolVersion(ctx context.Context) (*updaters.ProtocolVersionResponse, error)
}

type ServiceParams

type ServiceParams struct {
	ServiceType               string
	ServiceConfigFile         string
	FromUser                  string
	KeyringBackend            string
	ChainID                   string
	GeoLocation               uint64
	LogLevel                  string
	Node                      string
	LavavisorServicesDir      string
	LavavisorLogsDir          string
	LavavisorServiceConfigDir string
	ParallelConnection        uint64
}

Jump to

Keyboard shortcuts

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