Documentation ¶
Index ¶
- func ConfigFilePath(nodeDir string) string
- func NewConfigTemplate(templateRaw string) (*template.Template, error)
- func NodeKeyFilePath(nodeDir string) string
- func PrivValidatorFilePath(nodeDir string) string
- type ConfigGenerator
- func (tg ConfigGenerator) GenesisValidators() []tmtypes.GenesisValidator
- func (tg ConfigGenerator) HomeDir() string
- func (tg *ConfigGenerator) Initiate(index int, mode, groupName string) (*types.TendermintNode, error)
- func (tg *ConfigGenerator) OverwriteConfig(ns types.NodeSet, configTemplate *template.Template) error
- func (tg *ConfigGenerator) TemplateAndMergeConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)
- func (tg *ConfigGenerator) TemplateConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)
- type ConfigTemplateContext
- func (tc ConfigTemplateContext) NodeIDs() []string
- func (tc ConfigTemplateContext) NodeIDsByGroupName(groupNames ...string) []string
- func (tc ConfigTemplateContext) NodePeers() []Peer
- func (tc ConfigTemplateContext) NodePeersByGroupName(groupNames ...string) []Peer
- func (tc ConfigTemplateContext) NodePeersByNodeIndexes(indexes ...int) []Peer
- type Peer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFilePath ¶
func NodeKeyFilePath ¶ added in v0.2.2
func PrivValidatorFilePath ¶ added in v0.2.2
Types ¶
type ConfigGenerator ¶
type ConfigGenerator struct {
// contains filtered or unexported fields
}
func NewConfigGenerator ¶
func (ConfigGenerator) GenesisValidators ¶
func (tg ConfigGenerator) GenesisValidators() []tmtypes.GenesisValidator
func (ConfigGenerator) HomeDir ¶
func (tg ConfigGenerator) HomeDir() string
func (*ConfigGenerator) Initiate ¶
func (tg *ConfigGenerator) Initiate(index int, mode, groupName string) (*types.TendermintNode, error)
func (*ConfigGenerator) OverwriteConfig ¶
func (*ConfigGenerator) TemplateAndMergeConfig ¶
func (tg *ConfigGenerator) TemplateAndMergeConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)
TemplateAndMergeConfig templates provided template and merge it with originally initated Tendermint instance's config
func (*ConfigGenerator) TemplateConfig ¶
func (tg *ConfigGenerator) TemplateConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)
TemplateConfig templates the provided template
type ConfigTemplateContext ¶
type ConfigTemplateContext struct { TendermintNodePrefix string VegaNodePrefix string NodeNumber int NodesCount int NodeSet types.NodeSet // contains filtered or unexported fields }
func (ConfigTemplateContext) NodeIDs ¶
func (tc ConfigTemplateContext) NodeIDs() []string
func (ConfigTemplateContext) NodeIDsByGroupName ¶
func (tc ConfigTemplateContext) NodeIDsByGroupName(groupNames ...string) []string
func (ConfigTemplateContext) NodePeers ¶
func (tc ConfigTemplateContext) NodePeers() []Peer
func (ConfigTemplateContext) NodePeersByGroupName ¶
func (tc ConfigTemplateContext) NodePeersByGroupName(groupNames ...string) []Peer
func (ConfigTemplateContext) NodePeersByNodeIndexes ¶ added in v0.4.0
func (tc ConfigTemplateContext) NodePeersByNodeIndexes(indexes ...int) []Peer
Click to show internal directories.
Click to hide internal directories.