faucet

package
v0.74.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 (cg *ConfigGenerator) Initiate(conf *config.FaucetConfig) (*types.Faucet, error)

func (*ConfigGenerator) InitiateAndConfigure

func (cg *ConfigGenerator) InitiateAndConfigure(conf *config.FaucetConfig) (*types.Faucet, error)

func (ConfigGenerator) OverwriteConfig

func (cg ConfigGenerator) OverwriteConfig(fc *types.Faucet, configTemplate *template.Template) error

type ConfigTemplateContext

type ConfigTemplateContext struct {
	// description: Path to home directory of the Faucet.
	HomeDir string
	// description: Public key of the Faucet.
	PublicKey string
}

Jump to

Keyboard shortcuts

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