operator

package
v1.117.1-rc Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Email          string         `user:"true" help:"operator email address" default:""`
	Wallet         string         `user:"true" help:"operator wallet address" default:""`
	WalletFeatures WalletFeatures `user:"true" help:"operator wallet features" default:""`
}

Config defines properties related to storage node operator metadata.

func (Config) Verify

func (c Config) Verify(log *zap.Logger) error

Verify verifies whether operator config is valid.

type WalletFeatures

type WalletFeatures []string

WalletFeatures payout opt-in wallet features list.

func (*WalletFeatures) Set

func (features *WalletFeatures) Set(value string) error

Set implements pflag.Value by parsing a comma separated list of wallet features.

func (WalletFeatures) String

func (features WalletFeatures) String() string

String returns the comma separated list of wallet features.

func (WalletFeatures) Type

func (features WalletFeatures) Type() string

Type returns the type of the pflag.Value.

Jump to

Keyboard shortcuts

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