mongoq

package
v0.0.0-...-ae6cc27 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCLI

func RunCLI(factory strata.DriverFactory)

RunCLI parses command-line arguments and launches the extended mongo shell

Types

type Options

type Options struct {
	MountPath  string `` /* 161-byte string literal not displayed */
	ShowSize   bool   `short:"s" long:"show-size" description:"Print backup size with backup ids"`
	MongodPath string `long:"mongod-path" default:"mongod" description:"path to mongod executable"`
	MongoPath  string `long:"mongo-path" default:"mongo" description:"path to mongo executable"`
}

Options relevant to extended mongo shell

type QShell

type QShell struct {
	// contains filtered or unexported fields
}

QShell keeps track of mongod process, mongo process, and pseudo-terminal to and uses a psuedo-terminal to interact with mongo process

func NewStartedQShell

func NewStartedQShell(driver *strata.Driver, mountPath string, showSize bool, mongodPath, mongoPath string) (*QShell, error)

NewStartedQShell returns an initialized QShell, ready to Interact() with. Prints mongo startup message.

func (*QShell) Close

func (sh *QShell) Close() error

Close cleans up mongod and mongo processes and closes fd for the terminal

func (*QShell) Interact

func (sh *QShell) Interact() error

Interact runs the interactive mongo shell, but intercepts special commands

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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