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.
Click to show internal directories.
Click to hide internal directories.