Documentation ¶
Index ¶
- func SupportsAutoMigrate(store Storage) bool
- type DatabaseAdapter
- func (db DatabaseAdapter) GetInspection(image string) (types.ImageInspect, error)
- func (db DatabaseAdapter) GetVulnerabilityReport(image string) (models.Document, error)
- func (db DatabaseAdapter) StoreInspection(image string, inspection types.ImageInspect) error
- func (db DatabaseAdapter) StoreVulnerabilityReport(image string, report models.Document) error
- type RedisAdapter
- func (r RedisAdapter) GetInspection(image string) (types.ImageInspect, error)
- func (r RedisAdapter) GetVulnerabilityReport(image string) (models.Document, error)
- func (r RedisAdapter) StoreInspection(image string, inspection types.ImageInspect) error
- func (r RedisAdapter) StoreVulnerabilityReport(image string, report models.Document) error
- type S3Adapter
- func (adapter S3Adapter) GetInspection(image string) (types.ImageInspect, error)
- func (adapter S3Adapter) GetVulnerabilityReport(image string) (models.Document, error)
- func (adapter S3Adapter) StoreInspection(image string, inspection types.ImageInspect) error
- func (adapter S3Adapter) StoreVulnerabilityReport(image string, report models.Document) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportsAutoMigrate ¶
Types ¶
type DatabaseAdapter ¶
func (DatabaseAdapter) GetInspection ¶
func (db DatabaseAdapter) GetInspection(image string) (types.ImageInspect, error)
func (DatabaseAdapter) GetVulnerabilityReport ¶
func (db DatabaseAdapter) GetVulnerabilityReport(image string) (models.Document, error)
func (DatabaseAdapter) StoreInspection ¶
func (db DatabaseAdapter) StoreInspection(image string, inspection types.ImageInspect) error
func (DatabaseAdapter) StoreVulnerabilityReport ¶
func (db DatabaseAdapter) StoreVulnerabilityReport(image string, report models.Document) error
type RedisAdapter ¶
type RedisAdapter struct {
Client *redis.Client
}
func (RedisAdapter) GetInspection ¶
func (r RedisAdapter) GetInspection(image string) (types.ImageInspect, error)
func (RedisAdapter) GetVulnerabilityReport ¶
func (r RedisAdapter) GetVulnerabilityReport(image string) (models.Document, error)
func (RedisAdapter) StoreInspection ¶
func (r RedisAdapter) StoreInspection(image string, inspection types.ImageInspect) error
func (RedisAdapter) StoreVulnerabilityReport ¶
func (r RedisAdapter) StoreVulnerabilityReport(image string, report models.Document) error
type S3Adapter ¶
func (S3Adapter) GetInspection ¶
func (adapter S3Adapter) GetInspection(image string) (types.ImageInspect, error)
func (S3Adapter) GetVulnerabilityReport ¶
func (S3Adapter) StoreInspection ¶
func (adapter S3Adapter) StoreInspection(image string, inspection types.ImageInspect) error
Click to show internal directories.
Click to hide internal directories.