restore - ActiveState ActiveGo 1.8
...

Package restore

import "github.com/influxdata/influxdb/cmd/influxd/restore"
Overview
Index

Overview ▾

Package restore is the restore subcommand for the influxd command, for restoring from a backup.

type Command

Command represents the program execution for "influxd restore".

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

    // TODO: when the new meta stuff is done this should not be exported or be gone
    MetaConfig *meta.Config
    // contains filtered or unexported fields
}

func NewCommand

func NewCommand() *Command

NewCommand returns a new instance of Command with default settings.

func (*Command) Run

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

Run executes the program.