restore

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 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 MongoRestore

type MongoRestore struct {
	*MongoRestoreInput
	// contains filtered or unexported fields
}

func NewMongoRestore

func NewMongoRestore(i *MongoRestoreInput) (*MongoRestore, error)

func (*MongoRestore) LastError

func (mr *MongoRestore) LastError() error

func (*MongoRestore) Start

func (mr *MongoRestore) Start() error

func (*MongoRestore) Stop

func (mr *MongoRestore) Stop() error

func (*MongoRestore) Wait

func (mr *MongoRestore) Wait() error

type MongoRestoreInput

type MongoRestoreInput struct {
	Archive           string
	DryRun            bool // Used only for testing
	Host              string
	Port              string
	Username          string
	Password          string
	AuthDB            string
	Gzip              bool
	Oplog             bool
	Threads           int
	SkipUsersAndRoles bool

	Reader io.ReadCloser
}

Jump to

Keyboard shortcuts

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