dbcommon

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: 6 Imported by: 1

Documentation

Overview

Package dbcommon will help user to fetch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDb

func ConfigDb(d database.Storage) (interface{}, error)

ConfigDb will help neuron to set the database, so that neuron can use it in further operations.

func CreateUser

func CreateUser(d database.DataDetail, data database.UserData) (interface{}, error)

CreateUser helps in creating user for neuron so that created user has appripriate permission to carry out the operations.

func GetCiData

func GetCiData(ci string, d ...database.DataDetail) (database.CiData, error)

GetCiData will hep in fething the data of CI stored in neuron.

func GetCloudCredentails

func GetCloudCredentails(data database.UserData, cred database.GetCloudAccess, d ...database.DataDetail) (database.CloudProfiles, error)

GetCloudCredentails helps in fetching access details of cloud stored under a particular cloud-profile of user.

func GetUserDetails

func GetUserDetails(d database.DataDetail, data database.UserData) (interface{}, error)

GetUserDetails helps in fetching the user details stored as part of neuron.

func StoreCIdata

func StoreCIdata(d database.DataDetail, data database.CiData) (interface{}, error)

StoreCIdata will help neuron store information with regards to CI tool on to the database configured.

func UpdateUser

func UpdateUser(session interface{}, d database.DataDetail, data database.UserData) (interface{}, error)

UpdateUser helps in updating details of user created in neuron. This comes handy if you would like to add cloud profiles to the existing user. This not the only use, but is just a use case.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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