restore

package
v0.9.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Stdout io.Writer
	Stderr io.Writer
}

Command represents the program execution for "influxd restore".

func NewCommand

func NewCommand() *Command

NewCommand returns a new instance of Command with default settings.

func (*Command) Restore

func (cmd *Command) Restore(config *Config, path string) error

func (*Command) Run

func (cmd *Command) Run(args ...string) error

Run executes the program.

type Config

type Config struct {
	Meta meta.Config `toml:"meta"`
	Data tsdb.Config `toml:"data"`
}

Config represents a partial config for rebuilding the server.

Jump to

Keyboard shortcuts

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