postgres

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

store implements all interfaces in the vulnstore package

func NewVulnStore

func NewVulnStore(db *sqlx.DB, pool *pgxpool.Pool) *Store

func TestStore

func TestStore(ctx context.Context, t testing.TB) (*sqlx.DB, *Store, func())

func (*Store) Get

func (s *Store) Get(ctx context.Context, records []*claircore.IndexRecord, opts vulnstore.GetOpts) (map[string][]*claircore.Vulnerability, error)

Get implements vulnstore.Vulnerability.

func (*Store) GetHash

func (s *Store) GetHash(ctx context.Context, updater string) (string, error)

func (*Store) PutHash

func (s *Store) PutHash(updater string, hash string) error

func (*Store) PutVulnerabilities

func (s *Store) PutVulnerabilities(ctx context.Context, updater string, hash string, vulns []*claircore.Vulnerability) error

Jump to

Keyboard shortcuts

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