Documentation ¶
Overview ¶
Package database has a collections of structures which will commanly used across the subpackages of database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Db holds database type to which neuron makes a call.
Db interface{}
)
Functions ¶
This section is empty.
Types ¶
type CiData ¶
type CiData struct { Id int `json:"id" bson:"_id,omitempty"` CiName string `json:"CiName" bson:"ciname"` CiURL string `json:"CiURL" bson:"ciurl"` CiUsername string `json:"CiUsername" bson:"ciusername"` CiPassword string `json:"CiPassword" bson:"cipassword"` Timestamp time.Time `json:"Timestamp" bson:"timestamp"` }
CiData holds the information about the CI, to which neuron have a conversation.
type CloudProfiles ¶
type CloudProfiles struct { Name string `json:"Name" bson:"name,omitempty"` Cloud string `json:"Cloud" bson:"cloud,omitempty"` KeyId string `json:"KeyId" bson:"keyid,omitempty"` SecretAccess string `json:"SecretAccess" bson:"secretaccess,omitempty"` ClientId string `json:"ClientID" bson:"clientid,omitempty"` SubscriptionId string `json:"SubscriptionID" bson:"subscriptionid,omitempty"` TenantId string `json:"TenantID" bson:"tenantid,omitempty"` ClientSecret string `json:"ClientSecret" bson:"clientsecret,omitempty"` CreationTime time.Time `json:"CreationTime" bson:"creationtime,omitempty"` }
CloudProfiles holds the details of the profiles which is stored as part of user under neuron.
type DataDetail ¶
DataDetail holds the information of database and collections, from which neuron collects information.
type GetCloudAccess ¶
GetCloudAccess will help one in fetching the profiles when he asks for.
type Storage ¶
type Storage struct { Db interface{} `json:"Db,omitempty"` Fs string `json:"Fs,omitempty"` }
Storage holds the different types of the database to which neuron can talk to.
type UserData ¶
type UserData struct { Id int `bson:"_id,omitempty" json:"id"` UserName string `json:"UserName" bson:"username"` Password string `json:"Password" bson:"password"` CloudProfiles []CloudProfiles `json:"CloudProfiles" bson:"cloudprofiles"` }
UserData holds the details of the user stored as part of neuron.
Click to show internal directories.
Click to hide internal directories.