secretconf

package
v0.14.1-0...-8b31b97 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretFile             = "secret.yml"
	SelfRelayerAccountName = "relayer"
)

Variables

This section is empty.

Functions

func Save

func Save(path string, conf *Config) error

Types

type Config

type Config struct {
	// Accounts of the local chain.
	Accounts []conf.Account `yaml:"accounts"`

	// Relayer configuration.
	Relayer Relayer `yaml:"relayer"`
}

func Open

func Open(path string) (*Config, error)

func Parse

func Parse(r io.Reader) (*Config, error)

Parse parses config.yml into Config.

func (*Config) SelfRelayerAccount

func (c *Config) SelfRelayerAccount(name string) (account conf.Account, found bool)

func (*Config) SetSelfRelayerAccount

func (c *Config) SetSelfRelayerAccount(accName string) error

func (*Config) UpsertRelayerAccount

func (c *Config) UpsertRelayerAccount(acc conf.Account)

type Relayer

type Relayer struct {
	// Accounts of remote chains.
	Accounts []conf.Account `yaml:"accounts"`
}

Account holds the options related to setting up Cosmos wallets.

Jump to

Keyboard shortcuts

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