mongo

package
v0.0.0-...-a7271ac Latest Latest
Warning

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

Go to latest
Published: May 4, 2014 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// JujuMongodPath holds the default path to the juju-specific mongod.
	JujuMongodPath = "/usr/lib/juju/bin/mongod"
)

Functions

func EnsureMongoServer

func EnsureMongoServer(dir string, port int) error

EnsureMongoServer ensures that the correct mongo upstart script is installed and running.

This method will remove old versions of the mongo upstart script as necessary before installing the new version.

func MongoUpstartService

func MongoUpstartService(name, dataDir string, port int) (*upstart.Conf, error)

MongoUpstartService returns the upstart config for the mongo state service.

This method assumes there is a server.pem keyfile in dataDir.

func MongodPath

func MongodPath() (string, error)

MongoPath returns the executable path to be used to run mongod on this machine. If the juju-bundled version of mongo exists, it will return that path, otherwise it will return the command to run mongod from the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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