flags

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBPath       = "DBPath"
	DBReporting  = "DBReporting"
	DBGCInterval = "DBGCInterval"
)

Flag names.

Variables

This section is empty.

Functions

func AddKeyIndexFlag

func AddKeyIndexFlag(c *cobra.Command)

AddKeyIndexFlag adds the key index flag to the command

func AddMnemonicFlag

func AddMnemonicFlag(c *cobra.Command)

AddMnemonicFlag adds the mnemonic key flag to the command

func AddPersistentBoolFlag

func AddPersistentBoolFlag(c *cobra.Command, flag string, value bool, description string, isRequired bool)

AddPersistentIntFlag adds a int flag to the command

func AddPersistentIntFlag

func AddPersistentIntFlag(c *cobra.Command, flag string, value uint64, description string, isRequired bool)

AddPersistentIntFlag adds a int flag to the command

func AddPersistentStringArrayFlag

func AddPersistentStringArrayFlag(c *cobra.Command, flag string, value []string, description string, isRequired bool)

AddPersistentStringArrayFlag adds a string array flag to the command

func AddPersistentStringFlag

func AddPersistentStringFlag(c *cobra.Command, flag, value, description string, isRequired bool)

AddPersistentStringFlag adds a string flag to the command

func AddPersistentStringSliceFlag

func AddPersistentStringSliceFlag(c *cobra.Command, flag string, value []string, description string, isRequired bool)

AddPersistentStringArrayFlag adds a string slice flag to the command

func ConfigPathFlag

func ConfigPathFlag(c *cobra.Command)

OperatorConfigPathFlag config path flag to the command

func DBGCIntervalFlag added in v1.0.0

func DBGCIntervalFlag(c *cobra.Command)

DBGCIntervalFlag adds path for storage flag to the command

func DBPathFlag added in v1.0.0

func DBPathFlag(c *cobra.Command)

DBPathFlag adds path for storage flag to the command

func DBReportingFlag added in v1.0.0

func DBReportingFlag(c *cobra.Command)

DBReportingFlag adds flag to run on-off db size reporting to the command

func GenerateInitiatorKeyFlag

func GenerateInitiatorKeyFlag(c *cobra.Command)

GenerateInitiatorKeyFlag adds flag to generate a random secure password and initiator RSA key pair encrypted with this password

func GetConfigPathFlagValue

func GetConfigPathFlagValue(c *cobra.Command) (string, error)

GetConfigPathFlagValue gets config path flag from the command

func GetDBGCIntervalFlagValue added in v1.0.0

func GetDBGCIntervalFlagValue(c *cobra.Command) (string, error)

GetDBGCIntervalFlagValue gets path for storage flag from the command

func GetDBPathFlagValue added in v1.0.0

func GetDBPathFlagValue(c *cobra.Command) (string, error)

GetDBPathFlagValue gets path for storage flag from the command

func GetDBReportingFlagValue added in v1.0.0

func GetDBReportingFlagValue(c *cobra.Command) (bool, error)

GetDBReportingFlagValue gets flag flag to run on-off db size reporting

func GetGenerateInitiatorKeyFlagValue

func GetGenerateInitiatorKeyFlagValue(c *cobra.Command) (bool, error)

GetGenerateInitiatorKeyFlagValue gets flag to generate a random secure password and initiator RSA key pair encrypted with this password

func GetKeyIndexFlagValue

func GetKeyIndexFlagValue(c *cobra.Command) (uint64, error)

GetKeyIndexFlagValue gets the key index flag to the command

func GetLogFilePathValue added in v1.0.0

func GetLogFilePathValue(c *cobra.Command) (string, error)

GetLogFilePathValue gets logs file path flag from the command

func GetLogLevelFormatFlagValue added in v1.0.0

func GetLogLevelFormatFlagValue(c *cobra.Command) (string, error)

GetLogLevelFormatFlagValue gets logger's level format flag from the command

func GetMnemonicFlagValue

func GetMnemonicFlagValue(c *cobra.Command) (string, error)

GetMnemonicFlagValue gets the mnemonic key flag from the command

func GetNewOperatorIDsFlagValue added in v1.0.0

func GetNewOperatorIDsFlagValue(c *cobra.Command) ([]string, error)

GetThresholdFlagValue gets new operators IDs flag from the command

func GetNonceFlagValue

func GetNonceFlagValue(c *cobra.Command) (uint64, error)

GetNonceFlagValue gets owner nonce flag from the command

func GetOldIDFlagValue added in v1.0.0

func GetOldIDFlagValue(c *cobra.Command) (string, error)

GetWithdrawAddressFlagValue gets previous DKG ceremony ID flag from the command

func GetOperatorPortFlagValue

func GetOperatorPortFlagValue(c *cobra.Command) (uint64, error)

GetOperatorPortFlagValue gets operator listening port flag from the command

func GetOperatorsInfoFlagValue

func GetOperatorsInfoFlagValue(c *cobra.Command) (string, error)

GetOperatorsInfoFlagValue gets path to operators' ifo file flag from the command

func GetOperatorsInfoPathFlagValue

func GetOperatorsInfoPathFlagValue(c *cobra.Command) (string, error)

GetOperatorsInfoPathFlagValue gets path to where to look for operator info file flag from the command

func GetOwnerAddressFlagValue

func GetOwnerAddressFlagValue(c *cobra.Command) (string, error)

GetOwnerAddressFlagValue gets owner address flag from the command

func GetResultPathFlag

func GetResultPathFlag(c *cobra.Command) (string, error)

func GetStoreShareFlag

func GetStoreShareFlag(c *cobra.Command) (bool, error)

func GetThresholdFlagValue

func GetThresholdFlagValue(c *cobra.Command) (uint64, error)

GetThresholdFlagValue gets threshold flag from the command

func GetWithdrawAddressFlagValue

func GetWithdrawAddressFlagValue(c *cobra.Command) (string, error)

GetWithdrawAddressFlagValue gets withdraw address flag from the command

func GetoperatorIDsFlagValue

func GetoperatorIDsFlagValue(c *cobra.Command) ([]string, error)

GetThresholdFlagValue gets operators IDs flag from the command

func LogFilePathFlag

func LogFilePathFlag(c *cobra.Command)

LogFilePathFlag file path to write logs into

func LogFormatFlag

func LogFormatFlag(c *cobra.Command)

LogFormatFlag logger's logger's encoding flag to the command

func LogLevelFlag

func LogLevelFlag(c *cobra.Command)

LogLevelFlag logger's log level flag to the command

func LogLevelFormatFlag

func LogLevelFormatFlag(c *cobra.Command)

LogLevelFormatFlag logger's level format flag to the command

func NetworkFlag

func NetworkFlag(c *cobra.Command)

NetworkFlag adds the fork version of the network flag to the command

func NewOperatorIDsFlag added in v1.0.0

func NewOperatorIDsFlag(c *cobra.Command)

operatorIDsFlag adds new operators IDs flag to the command

func NonceFlag

func NonceFlag(c *cobra.Command)

NonceFlag owner nonce flag to the command

func OldIDFlag added in v1.0.0

func OldIDFlag(c *cobra.Command)

OldIDFlag adds previous DKG ceremony ID flag to the command

func OperatorIDsFlag

func OperatorIDsFlag(c *cobra.Command)

operatorIDsFlag adds operators IDs flag to the command

func OperatorPortFlag

func OperatorPortFlag(c *cobra.Command)

OperatorPortFlag adds operator listening port flag to the command

func OperatorsInfoFlag

func OperatorsInfoFlag(c *cobra.Command)

OperatorsInfoFlag adds path to operators' ifo file flag to the command

func OperatorsInfoPathFlag

func OperatorsInfoPathFlag(c *cobra.Command)

OperatorsInfoFlag adds path to where to look for operator info file flag to the command

func OwnerAddressFlag

func OwnerAddressFlag(c *cobra.Command)

OwnerAddressFlag adds owner address flag to the command

func PrivateKeyFlag added in v1.0.0

func PrivateKeyFlag(c *cobra.Command)

OperatorPrivateKeyFlag adds private key flag to the command

func PrivateKeyPassFlag added in v1.0.0

func PrivateKeyPassFlag(c *cobra.Command)

OperatorPrivateKeyPassFlag adds private key flag to the command

func ResultPathFlag

func ResultPathFlag(c *cobra.Command)

func StoreShareFlag

func StoreShareFlag(c *cobra.Command)

func ThresholdFlag

func ThresholdFlag(c *cobra.Command)

ThresholdFlag adds threshold flag to the command

func WithdrawAddressFlag

func WithdrawAddressFlag(c *cobra.Command)

WithdrawAddressFlag adds withdraw address flag to the command

Types

This section is empty.

Jump to

Keyboard shortcuts

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