Versions in this module Expand all Collapse all v0 v0.0.1 Nov 13, 2015 Changes in this version + const FieldIs + const FieldLayerEngineVersion + const FieldLayerID + const FieldLayerInstalledPackages + const FieldLayerIsValue + const FieldLayerOS + const FieldLayerPackages + const FieldLayerParent + const FieldLayerRemovedPackages + const FieldLayerSuccessors + const FieldPackageIsValue + const FieldPackageName + const FieldPackageNextVersion + const FieldPackageOS + const FieldPackagePreviousVersion + const FieldPackageVersion + const FieldVulnerabilityDescription + const FieldVulnerabilityFixedIn + const FieldVulnerabilityID + const FieldVulnerabilityIsValue + const FieldVulnerabilityLink + const FieldVulnerabilityPriority + var DebianReleasesMapping = map[string]string + var ErrBackendException = errors.New("database: could not query backend") + var ErrCantOpen = errors.New("database: could not open database") + var ErrInconsistent = errors.New("database: inconsistent database") + var ErrTransaction = errors.New("database: transaction failed (concurrent modification?)") + var FieldLayerAll = []string + var FieldPackageAll = []string + var FieldVulnerabilityAll = []string + var UbuntuReleasesMapping = map[string]string + func Close() + func CountNotificationsToSend() (int, error) + func DeleteVulnerability(id string) error + func GetFlagValue(name string) (string, error) + func Healthcheck() health.Status + func InsertLayer(layer *Layer) error + func InsertNotifications(notifications []Notification, wrapper NotificationWrapper) error + func InsertPackages(packageParameters []*Package) error + func Lock(name string, duration time.Duration, owner string) (bool, time.Time) + func LockInfo(name string) (string, time.Time, error) + func MarkNotificationAsSent(node string) + func Open(dbType, dbPath string) error + func Unlock(name, owner string) + func UpdateFlag(name, value string) error + type AbstractPackage struct + AllVersions bool + BeforeVersion types.Version + Name string + OS string + func PackagesToAbstractPackages(packages []*Package) (abstractPackages []*AbstractPackage) + type AbstractVulnerability struct + AffectedPackages []*AbstractPackage + Description string + ID string + Link string + Priority types.Priority + func (av *AbstractVulnerability) ToVulnerability(fixedInNodes []string) *Vulnerability + type ByVersion []*Package + func (p ByVersion) Len() int + func (p ByVersion) Less(i, j int) bool + func (p ByVersion) Swap(i, j int) + type DefaultWrapper struct + func (w *DefaultWrapper) Unwrap(nw *NotificationWrap) (Notification, error) + func (w *DefaultWrapper) Wrap(n Notification) (*NotificationWrap, error) + type Layer struct + EngineVersion int + ID string + InstalledPackagesNodes []string + Node string + OS string + ParentNode string + RemovedPackagesNodes []string + SuccessorsNodes []string + func FindAllLayersByAddedPackageNodes(nodes []string, selectedFields []string) ([]*Layer, error) + func FindAllLayersIntroducingVulnerability(vulnerabilityID string, selectedFields []string) ([]*Layer, error) + func FindOneLayerByID(ID string, selectedFields []string) (*Layer, error) + func FindOneLayerByNode(node string, selectedFields []string) (*Layer, error) + func (l *Layer) AllPackages() ([]string, error) + func (l *Layer) GetNode() string + func (l *Layer) OperatingSystem() (string, error) + func (l *Layer) Parent(selectedFields []string) (*Layer, error) + type NewVulnerabilityNotification struct + VulnerabilityID string + func (n *NewVulnerabilityNotification) GetContent() (interface{}, error) + func (n *NewVulnerabilityNotification) GetName() string + func (n *NewVulnerabilityNotification) GetType() string + type Notification interface + GetContent func() (interface{}, error) + GetName func() string + GetType func() string + func FindOneNotificationToSend(wrapper NotificationWrapper) (string, Notification, error) + func InsertVulnerabilities(vulnerabilities []*Vulnerability) ([]Notification, error) + type NotificationWrap struct + Data string + Type string + type NotificationWrapper interface + Unwrap func(nw *NotificationWrap) (Notification, error) + Wrap func(n Notification) (*NotificationWrap, error) + func GetDefaultNotificationWrapper() NotificationWrapper + type Package struct + Name string + NextVersionNode string + Node string + OS string + PreviousVersionNode string + Version types.Version + func AbstractPackagesToPackages(abstractPackages []*AbstractPackage) (packages []*Package) + func FindAllPackagesByBranch(OS, name string, selectedFields []string) ([]*Package, error) + func FindAllPackagesByNodes(nodes []string, selectedFields []string) ([]*Package, error) + func FindOnePackage(OS, name string, version types.Version, selectedFields []string) (*Package, error) + func (p *Package) Branch() string + func (p *Package) GetNode() string + func (p *Package) Key() string + func (p *Package) NextVersion(selectedFields []string) (*Package, error) + func (p *Package) NextVersions(selectedFields []string) ([]*Package, error) + func (p *Package) PreviousVersion(selectedFields []string) (*Package, error) + func (p *Package) PreviousVersions(selectedFields []string) ([]*Package, error) + type Vulnerability struct + Description string + FixedInNodes []string + ID string + Link string + Node string + Priority types.Priority + func FindAllVulnerabilitiesByFixedIn(nodes []string, selectedFields []string) ([]*Vulnerability, error) + func FindOneVulnerability(id string, selectedFields []string) (*Vulnerability, error) + func (v *Vulnerability) GetNode() string + func (v *Vulnerability) ToAbstractVulnerability() (*AbstractVulnerability, error) + type VulnerabilityPackageChangedNotification struct + AddedFixedInNodes []string + RemovedFixedInNodes []string + VulnerabilityID string + func (n *VulnerabilityPackageChangedNotification) GetContent() (interface{}, error) + func (n *VulnerabilityPackageChangedNotification) GetName() string + func (n *VulnerabilityPackageChangedNotification) GetType() string + type VulnerabilityPriorityIncreasedNotification struct + NewPriority types.Priority + OldPriority types.Priority + VulnerabilityID string + func (n *VulnerabilityPriorityIncreasedNotification) GetContent() (interface{}, error) + func (n *VulnerabilityPriorityIncreasedNotification) GetName() string + func (n *VulnerabilityPriorityIncreasedNotification) GetType() string