Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Web3SignerAPICmd = Web3SignerCmdArgs{ Config: Config{ ConfigFile: "", DataPath: "", KeyStorePath: "", LoggingLevel: "", HTTPCors: "", HTTPListen: "0.0.0.0", HTTPListenPort: 0, HTTPAllowlist: "*", MetricsEnabled: false, MetricsPort: 0, MetricsPrefix: "", }, TLSOpts: TLSOpts{ TLSKeyStoreFile: "", TLSPasswordFile: "", TLSAllowCAClients: false, TLSAllowAnyClient: true, TLSKnownClientsFile: "", }, AWSCfg: AWSCfg{}, AzureConfig: AzureConfig{}, SlashingConfig: SlashingConfig{ ProtectionDbPassword: "", ProtectionDbUrl: "", ProtectionDbUsername: "", ProtectionEnabled: false, ProtectionDisabled: true, ProtectionPruningEnabled: false, ProtectionPruningEpochsToKeep: 0, ProtectionPruningInterval: 0, ProtectionPruningSlotsPerEpoch: 0, }, KeyManagerConfig: KeyManagerConfig{ KeyManagerAPIEenabled: true, KeystoresPasswordFile: "", KeystoresPasswordsPath: "", KeystoresPath: "", Network: "minimal", }, }
View Source
var Web3SignerStd = Web3SignerCmdArgs{ Config: Config{ ConfigFile: "", DataPath: "", KeyStorePath: "", LoggingLevel: "", HTTPCors: "", HTTPListen: "0.0.0.0", HTTPListenPort: 0, HTTPAllowlist: "*", MetricsEnabled: false, MetricsPort: 0, MetricsPrefix: "", }, TLSOpts: TLSOpts{ TLSKeyStoreFile: "", TLSPasswordFile: "", TLSAllowCAClients: false, TLSAllowAnyClient: true, TLSKnownClientsFile: "", }, AWSCfg: AWSCfg{}, AzureConfig: AzureConfig{}, SlashingConfig: SlashingConfig{ ProtectionDbPassword: "${WEB3SIGNER_SLASHING_PROTECTION_DB_PASSWORD}", ProtectionDbUrl: "${WEB3SIGNER_SLASHING_PROTECTION_DB_URL}", ProtectionDbUsername: "${WEB3SIGNER_SLASHING_PROTECTION_DB_USERNAME}", ProtectionEnabled: true, ProtectionPruningEnabled: false, ProtectionPruningEpochsToKeep: 0, ProtectionPruningInterval: 0, ProtectionPruningSlotsPerEpoch: 0, }, KeyManagerConfig: KeyManagerConfig{ KeyManagerAPIEenabled: true, KeystoresPasswordFile: "", KeystoresPasswordsPath: "", KeystoresPath: "", Network: "${WEB3SIGNER_NETWORK}", }, }
Functions ¶
This section is empty.
Types ¶
type AWSCfg ¶
type AzureConfig ¶
type AzureConfig struct { VaultEnabled bool ClientId string ClientSecret string TenantId string VaultAuthMode string VaultName string }
func (*AzureConfig) SetArgs ¶
func (config *AzureConfig) SetArgs() []string
type Config ¶
type Config struct { ConfigFile string DataPath string KeyStorePath string LoggingLevel string HTTPCors string HTTPListen string HTTPListenPort int HTTPAllowlist string MetricsEnabled bool MetricsPort int MetricsPrefix string }
func (*Config) VerifyLogLevel ¶
VerifyLogLevel Log Level Verification Function
type KeyManagerConfig ¶
type KeyManagerConfig struct { KeyManagerAPIEenabled bool KeystoresPasswordFile string KeystoresPasswordsPath string KeystoresPath string Network string }
func (*KeyManagerConfig) SetArgs ¶
func (kmc *KeyManagerConfig) SetArgs() []string
type SlashingConfig ¶
type SlashingConfig struct { ProtectionDbPassword string ProtectionDbUrl string ProtectionDbUsername string ProtectionDisabled bool ProtectionEnabled bool ProtectionPruningEnabled bool ProtectionPruningEpochsToKeep int ProtectionPruningInterval int ProtectionPruningSlotsPerEpoch int }
func (*SlashingConfig) SetArgs ¶
func (sc *SlashingConfig) SetArgs() []string
type TLSOpts ¶
type Web3SignerCmdArgs ¶
type Web3SignerCmdArgs struct { Config TLSOpts AWSCfg AzureConfig // subcommand configs SlashingConfig KeyManagerConfig }
func (*Web3SignerCmdArgs) CreateFieldsForCLI ¶
func (w *Web3SignerCmdArgs) CreateFieldsForCLI(platformSubcommand string) ([]string, error)
CreateFieldsForCLI platformSubcommand should be eth1, eth2, or filecoin
Click to show internal directories.
Click to hide internal directories.