Documentation
¶
Index ¶
- Constants
- func LoadLighthouseConfig(path string) (args []string, err error)
- type Config
- func (c *Config) Consensus() string
- func (c *Config) Create(selectedExecution, selectedConsensus, selectedValidator, ipv4 string) (err error)
- func (c *Config) Execution() string
- func (c *Config) Exists() bool
- func (c *Config) IPv4() string
- func (c *Config) Read() (err error)
- func (c *Config) Validator() string
- func (c *Config) WriteConsensus(selectedConsensus string) (err error)
- func (c *Config) WriteExecution(selectedExecution string) (err error)
- func (c *Config) WriteIPv4(ipv4 string) (err error)
- func (c *Config) WriteValidator(selectedValidator string) (err error)
Constants ¶
View Source
const (
Path = "./cli-config.yaml"
)
Variables ¶
This section is empty.
Functions ¶
func LoadLighthouseConfig ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfig ¶
NewConfig creates and initializes viper config instance - it doesn't load config, to load use c.Read().
func (*Config) Create ¶
func (c *Config) Create(selectedExecution, selectedConsensus, selectedValidator, ipv4 string) (err error)
Create creates a new config that keeps track of selected dependencies and writes to it. By default, this file should be present in root of initialized lukso directory
func (*Config) WriteConsensus ¶
func (*Config) WriteExecution ¶
func (*Config) WriteValidator ¶ added in v0.22.0
Click to show internal directories.
Click to hide internal directories.