swconfig

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaemonRoute          string = "stakewise"
	SocketFilename       string = DaemonRoute + ".sock"
	WalletFilename       string = "wallet.json"
	PasswordFilename     string = "password.txt"
	KeystorePasswordFile string = "secret.txt"
	DepositDataFile      string = "deposit-data.json"

	// Container settings
	DaemonContainerSuffix   string = "sw_daemon"
	OperatorContainerSuffix string = "sw_operator"
	VcContainerSuffix       string = "sw_vc"
)
View Source
const (
	// Param IDs
	StakewiseEnableID      string = "enable"
	OperatorContainerTagID string = "operatorContainerTag"
	AdditionalOpFlagsID    string = "additionalOpFlags"
)
View Source
const (
	// The stakewise Hyperdrive daemon
	ContainerID_StakewiseDaemon types.ContainerID = "sw_daemon"

	// The stakewise operator container
	ContainerID_StakewiseOperator types.ContainerID = "sw_operator"

	// The stakewise Validator client
	ContainerID_StakewiseValidator types.ContainerID = "sw_vc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StakewiseConfig

type StakewiseConfig struct {
	// Toggle for enabling access to the root filesystem (for multiple disk usage metrics)
	Enabled types.Parameter[bool]

	// The Docker Hub tag for the Stakewise operator
	OperatorContainerTag types.Parameter[string]

	// Custom command line flags
	AdditionalOpFlags types.Parameter[string]

	// Validator client configs
	VcCommon   *validator.ValidatorClientCommonConfig
	Lighthouse *validator.LighthouseVcConfig
	Lodestar   *validator.LodestarVcConfig
	Nimbus     *validator.NimbusVcConfig
	Prysm      *validator.PrysmVcConfig
	Teku       *validator.TekuVcConfig
}

Configuration for Stakewise

func NewStakewiseConfig

func NewStakewiseConfig() *StakewiseConfig

Generates a new Stakewise config

func (*StakewiseConfig) DaemonContainerSuffix

func (c *StakewiseConfig) DaemonContainerSuffix() string

func (*StakewiseConfig) DaemonRoute

func (c *StakewiseConfig) DaemonRoute() string

func (*StakewiseConfig) DaemonTag

func (cfg *StakewiseConfig) DaemonTag() string

func (*StakewiseConfig) DepositDataFile

func (c *StakewiseConfig) DepositDataFile() string

func (*StakewiseConfig) GetParameters

func (cfg *StakewiseConfig) GetParameters() []types.IParameter

Get the parameters for this config

func (*StakewiseConfig) GetSubconfigs

func (cfg *StakewiseConfig) GetSubconfigs() map[string]types.IConfigSection

Get the sections underneath this one

func (*StakewiseConfig) GetTitle

func (cfg *StakewiseConfig) GetTitle() string

The the title for the config

func (*StakewiseConfig) KeystorePasswordFile

func (c *StakewiseConfig) KeystorePasswordFile() string

func (*StakewiseConfig) OperatorContainerSuffix

func (c *StakewiseConfig) OperatorContainerSuffix() string

func (*StakewiseConfig) PasswordFilename

func (c *StakewiseConfig) PasswordFilename() string

func (*StakewiseConfig) VcContainerSuffix

func (c *StakewiseConfig) VcContainerSuffix() string

func (*StakewiseConfig) WalletFilename

func (c *StakewiseConfig) WalletFilename() string

Jump to

Keyboard shortcuts

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