layer

package
v0.0.0-...-41c8d9c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLayer

func FindLayer(tx *sql.Tx, hash string) (database.Layer, bool, error)

func FindLayerDetectors

func FindLayerDetectors(tx *sql.Tx, id int64) ([]database.Detector, error)

func FindLayerFeatures

func FindLayerFeatures(tx *sql.Tx, layerID int64, detectors detector.DetectorMap) ([]database.LayerFeature, error)

func FindLayerID

func FindLayerID(tx *sql.Tx, hash string) (int64, bool, error)

func FindLayerIDs

func FindLayerIDs(tx *sql.Tx, hashes []string) ([]int64, bool, error)

func FindLayerNamespaces

func FindLayerNamespaces(tx *sql.Tx, layerID int64, detectors detector.DetectorMap) ([]database.LayerNamespace, error)

func PersistAllLayerFeatures

func PersistAllLayerFeatures(tx *sql.Tx, layerID int64, features []database.LayerFeature) error

func PersistAllLayerNamespaces

func PersistAllLayerNamespaces(tx *sql.Tx, layerID int64, namespaces []database.LayerNamespace) error

func PersistLayer

func PersistLayer(tx *sql.Tx, hash string, features []database.LayerFeature, namespaces []database.LayerNamespace, detectedBy []database.Detector) error

PersistLayer saves the content of a layer to the database.

func PersistLayerDetector

func PersistLayerDetector(tx *sql.Tx, layerID int64, detectorID int64) error

func PersistLayerDetectors

func PersistLayerDetectors(tx *sql.Tx, layerID int64, detectorIDs []int64) error

func PersistLayerFeatures

func PersistLayerFeatures(tx *sql.Tx, features []dbLayerFeature) error

func PersistLayerNamespaces

func PersistLayerNamespaces(tx *sql.Tx, namespaces []dbLayerNamespace) error

func SoiLayer

func SoiLayer(tx *sql.Tx, hash string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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