Documentation ¶
Index ¶
- Constants
- func NewConfigTemplate(templateRaw string) (*template.Template, error)
- type ConfigTemplateContext
- type Generator
- func (g *Generator) Initiate(index int, visorBinary string, vegaNode *types.VegaNode, ...) (*types.Visor, error)
- func (g Generator) OverwriteConfig(ns types.NodeSet, configTemplate *template.Template) error
- func (g Generator) OverwriteConfigs(ns types.NodeSet, visorConfTemplate, runConfTemplate *template.Template) error
- func (g Generator) OverwriteRunConfig(ns types.NodeSet, configTemplate *template.Template, configPath string) error
- func (g Generator) PrepareUpgrade(index int, releaseTag string, ns types.NodeSet, ...) error
- func (vg *Generator) TemplateAndMergeConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)
- func (g Generator) TemplateConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)
Constants ¶
View Source
const ( GenesisFolderName = "genesis" DefaultUpgradeFolderName = "vX.X.X" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigTemplateContext ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (Generator) OverwriteConfig ¶
func (Generator) OverwriteConfigs ¶
func (g Generator) OverwriteConfigs(ns types.NodeSet, visorConfTemplate, runConfTemplate *template.Template) error
OverwriteConfigs overwrites visor config and genesis run config
func (Generator) OverwriteRunConfig ¶
func (g Generator) OverwriteRunConfig(ns types.NodeSet, configTemplate *template.Template, configPath string) error
OverwriteRunConfig overwrites run config with template in a given path. Uses default genesis path if not given.
func (Generator) PrepareUpgrade ¶
func (*Generator) TemplateAndMergeConfig ¶
func (vg *Generator) TemplateAndMergeConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)
TODO solve this for other then genesis config TemplateAndMergeConfig templates provided template and merge it with originally initated Visor genesis run config
Click to show internal directories.
Click to hide internal directories.