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

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