datanode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(nodeDir string) string

func NewConfigTemplate

func NewConfigTemplate(templateRaw string) (*template.Template, error)

Types

type ConfigGenerator

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

func NewConfigGenerator

func NewConfigGenerator(conf *config.Config) (*ConfigGenerator, error)

func (*ConfigGenerator) Initiate

func (dng *ConfigGenerator) Initiate(index int, dataNodeBinary string) (*types.DataNode, error)

func (ConfigGenerator) OverwriteConfig

func (dng ConfigGenerator) OverwriteConfig(ns types.NodeSet, configTemplate *template.Template) error

func (*ConfigGenerator) TemplateAndMergeConfig

func (dng *ConfigGenerator) TemplateAndMergeConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)

func (ConfigGenerator) TemplateConfig

func (dng ConfigGenerator) TemplateConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)

type ConfigTemplateContext

type ConfigTemplateContext struct {
	Prefix      string
	NodeHomeDir string
	NodeNumber  int
	NodeSet     types.NodeSet
}

Jump to

Keyboard shortcuts

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