manifest

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 15 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, force bool) (chan database.File, error)

func (*Manifest) Pull

func (m *Manifest) Pull() error

Pull Performs a git pull on the repository

Jump to

Keyboard shortcuts

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