config

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Path = "./cli-config.yaml"
)

Variables

This section is empty.

Functions

func LoadLighthouseConfig

func LoadLighthouseConfig(path string) (args []string, err error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(path string) *Config

NewConfig creates and initializes viper config instance - it doesn't load config, to load use c.Read().

func (*Config) Consensus

func (c *Config) Consensus() string

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) Execution

func (c *Config) Execution() string

func (*Config) Exists

func (c *Config) Exists() bool

func (*Config) IPv4 added in v0.22.0

func (c *Config) IPv4() string

func (*Config) Read

func (c *Config) Read() (err error)

Read reads from config file passed during config instance into c

func (*Config) Validator added in v0.7.0

func (c *Config) Validator() string

func (*Config) WriteConsensus

func (c *Config) WriteConsensus(selectedConsensus string) (err error)

func (*Config) WriteExecution

func (c *Config) WriteExecution(selectedExecution string) (err error)

func (*Config) WriteIPv4 added in v0.22.0

func (c *Config) WriteIPv4(ipv4 string) (err error)

func (*Config) WriteValidator added in v0.22.0

func (c *Config) WriteValidator(selectedValidator string) (err error)

Jump to

Keyboard shortcuts

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