initgen

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenesisFilename = "genesis.json"
	PVStateFilename = "priv_validator_state.json"
	PVKeyFilename   = "priv_validator_key.json"
	NodeKeyFilename = "node_key.json"
	ConfigDir       = "config"
	DataDir         = "data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	WithNames([]string) Builder
	WithPath(string) Builder
	WithAkashGenesis(*types.Genesis) Builder
	Create() (Context, error)
}

Builder is the config builder

func NewBuilder

func NewBuilder() Builder

NewBuilder returns a new instance of the builder

type Context

type Context interface {
	Path() string

	Nodes() []*Node
	Genesis() *tmtypes.GenesisDoc
}

func NewContext

func NewContext(path string, genesis *tmtypes.GenesisDoc, nodes ...*Node) Context

type Node added in v0.0.10

type Node struct {
	Name string
	//FilePV is file pvs
	FilePV  *privval.FilePV
	NodeKey *p2p.NodeKey
	Peers   []*Node
}

Node represents an Akash node

type Type

type Type string
const (
	TypeDirectory Type = "dir"
	TypeHelm           = "helm"
)

type Writer

type Writer interface {
	Write() error
}

func CreateWriter

func CreateWriter(type_ Type, ctx Context) (Writer, error)

func NewDirWriter

func NewDirWriter(ctx Context) Writer

func NewHelmWriter

func NewHelmWriter(ctx Context) Writer

func NewMultiDirWriter

func NewMultiDirWriter(ctx Context) Writer

func NewMultiHelmWriter

func NewMultiHelmWriter(ctx Context) Writer

Jump to

Keyboard shortcuts

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