db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllDBAnalysis

func FindAllDBAnalysis(mapParams map[string]interface{}) ([]types.Analysis, error)

FindAllDBAnalysis returns all Analysis of a given query present into AnalysisCollection.

func FindAllDBRepository

func FindAllDBRepository(mapParams map[string]interface{}) ([]types.Repository, error)

FindAllDBRepository returns all Repository of a given query present into RepositoryCollection.

func FindAllDBSecurityTest

func FindAllDBSecurityTest(mapParams map[string]interface{}) ([]types.SecurityTest, error)

FindAllDBSecurityTest returns all SecurityTests of a given query present into SecurityTestCollection.

func FindOneDBAnalysis

func FindOneDBAnalysis(mapParams map[string]interface{}) (types.Analysis, error)

FindOneDBAnalysis checks if a given analysis is present into AnalysisCollection.

func FindOneDBRepository

func FindOneDBRepository(mapParams map[string]interface{}) (types.Repository, error)

FindOneDBRepository checks if a given repository is present into RepositoryCollection.

func FindOneDBSecurityTest

func FindOneDBSecurityTest(mapParams map[string]interface{}) (types.SecurityTest, error)

FindOneDBSecurityTest checks if a given securityTest is present into SecurityTestCollection.

func InsertDBAnalysis

func InsertDBAnalysis(analysis types.Analysis) error

InsertDBAnalysis inserts a new analysis into AnalysisCollection.

func InsertDBRepository

func InsertDBRepository(repository types.Repository) error

InsertDBRepository inserts a new repository with default securityTests into RepositoryCollection.

func InsertDBSecurityTest

func InsertDBSecurityTest(securityTest types.SecurityTest) error

InsertDBSecurityTest inserts a new securityTest into SecurityTestCollection.

func UpdateOneDBAnalysis

func UpdateOneDBAnalysis(mapParams map[string]interface{}, updatedAnalysis types.Analysis) error

UpdateOneDBAnalysis checks if a given analysis is present into AnalysisCollection and update it.

func UpdateOneDBAnalysisContainer

func UpdateOneDBAnalysisContainer(mapParams, updateQuery map[string]interface{}) error

UpdateOneDBAnalysisContainer checks if a given analysis is present into AnalysisCollection and update the container associated in it.

func UpdateOneDBRepository

func UpdateOneDBRepository(mapParams, updateQuery map[string]interface{}) error

UpdateOneDBRepository checks if a given repository is present into RepositoryCollection and update it.

func UpdateOneDBSecurityTest

func UpdateOneDBSecurityTest(mapParams map[string]interface{}, updatedSecurityTest types.SecurityTest) error

UpdateOneDBSecurityTest checks if a given securityTest is present into SecurityTestCollection and update it.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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