manifest

package
v0.0.0-...-e093297 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Name           string   `toml:"name,omitempty"`
	BootstrapPeers []string `toml:"bootstrap_peers,omitempty"`
	ClusterKey     string   `toml:"cluster_key,omitempty"`
	Replications   int64    `toml:"replications,omitempty"`
	StatsNode      string   `toml:"stats_node,omitempty"`
	// contains filtered or unexported fields
}

func Init

func Init(path, url string) (*Manifest, error)

Init Clones/Pulls a Manifest Repository and Parses the Config

func (*Manifest) Decode

func (m *Manifest) Decode() error

Decode Manifest Configuration from Manifest Repository

func (*Manifest) Index

func (m *Manifest) Index(db *database.DB) (<-chan Result, error)

func (*Manifest) Pull

func (m *Manifest) Pull() error

Pull Performs a git pull on the repository

type Result

type Result struct {
	Node   database.Node
	Status string
}

Jump to

Keyboard shortcuts

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