database

package
Version: v0.0.0-...-c891ed9 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

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

type DataDetail struct {
	Database   string
	Collection string
}

DataDetail holds the information of database and collections, from which neuron collects information.

type GetCloudAccess

type GetCloudAccess struct {
	ProfileName string
	Cloud       string
}

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.

Source Files

Directories

Path Synopsis
Package dbcommon will help user to fetch
Package dbcommon will help user to fetch
Package fs is an implementation of database but of type file-system.
Package fs is an implementation of database but of type file-system.

Jump to

Keyboard shortcuts

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