bootstrap_model

package
v0.0.0-...-076d96f Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2012 License: BSD-2-Clause-Views Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSitenames

func AllSitenames(db *mgo.Database) ([]string, error)

func DeleteSite

func DeleteSite(db *mgo.Database, inp map[string][]string) error

Currently we wonly delete a site from the sites collection of the root database, for safety reasons. The deletion will only take effect at next restart.

func Ignite

func Ignite(session *mgo.Session, db *mgo.Database, boots_opt map[string]interface{}, inp map[string][]string) (sitename string, err error)

This registers the site into the sites collection, creates a database for it, and registers an admin for it with the password coming from user interface. Also writes the site into the proxy table and starts the http server for the new site.

func Install

func Install(session *mgo.Session, db *mgo.Database, id bson.ObjectId) error

func SiteCount

func SiteCount(db *mgo.Database) (int, error)

func StartAll

func StartAll(db *mgo.Database, boots_opt map[string]interface{}) error

Starts a process for each site in the sites collection.

func Uninstall

func Uninstall(db *mgo.Database, id bson.ObjectId) error

Types

type SiteInfo

type SiteInfo struct {
	Name       string
	DbPassword string
}

Jump to

Keyboard shortcuts

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