Documentation
¶
Index ¶
- Constants
- Variables
- func ActivityStream() *mgo.Collection
- func C(c string) *mgo.Collection
- func Connect() error
- func Credentials() *mgo.Collection
- func Groups() *mgo.Collection
- func Hosts() *mgo.Collection
- func Inventories() *mgo.Collection
- func JobTemplates() *mgo.Collection
- func Jobs() *mgo.Collection
- func Organizations() *mgo.Collection
- func Projects() *mgo.Collection
- func Teams() *mgo.Collection
- func TerrafromJobTemplates() *mgo.Collection
- func TerrafromJobs() *mgo.Collection
- func Users() *mgo.Collection
Constants ¶
View Source
const ( CAdHocCommands = "ad_hoc_commands" CCredentials = "credentials" CGroups = "groups" CHosts = "hosts" CInventories = "inventories" CInventoryScripts = "inventory_scripts" CInventorySources = "inventory_sources" CJobs = "jobs" CJobTemplates = "job_templates" CTerraformJobTemplates = "terrafrom_job_templates" CTerraformJobs = "terraform_jobs" CNotifications = "notifications" CNotificationTemplates = "notification_templates" COrganizations = "organizations" CProjects = "projects" CTeams = "teams" CUsers = "users" CActivityStream = "activity_stream" )
MongoDB collection names
Variables ¶
View Source
var MongoDb *mgo.Database
MongoDb store the name an session to mongodb database or database cluster
Functions ¶
func ActivityStream ¶
func ActivityStream() *mgo.Collection
ActivityStream returns mgo.Collection for activity_stream
func Connect ¶
func Connect() error
Connect will create a session to Mongodb database given in the Config file or env
func Credentials ¶
func Credentials() *mgo.Collection
Credentials returns a mgo.Collection for credentials
func Inventories ¶
func Inventories() *mgo.Collection
Inventories returns mgo.Collection for inventories
func JobTemplates ¶
func JobTemplates() *mgo.Collection
JobTemplates returns mgo.Collection for job_templates
func Organizations ¶
func Organizations() *mgo.Collection
Organizations returns a mgo.Collection for organizations
func TerrafromJobTemplates ¶ added in v0.3.0
func TerrafromJobTemplates() *mgo.Collection
TerrafromJobTemplates returns mgo.Collection for terraform_job_templates
func TerrafromJobs ¶ added in v0.3.0
func TerrafromJobs() *mgo.Collection
TerrafromJobs returns a mgo.Collection for terraform_jobs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.