Documentation ¶
Index ¶
Constants ¶
View Source
const ( VulnerabilityDBFileName = "vulnerability.db" // ModelVersion indicates how many breaking schema changes there have been (which will prevent interaction with any historical data) // note: this must ALWAYS be "6" in the context of this package. ModelVersion = 6 // Revision indicates how many changes have been introduced which **may** prevent interaction with some historical data Revision = 0 // Addition indicates how many changes have been introduced that are compatible with all historical data Addition = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBMetadata ¶
type DBMetadataStoreReader ¶
type DBMetadataStoreReader interface {
GetDBMetadata() (*DBMetadata, error)
}
type DBMetadataStoreWriter ¶
type DBMetadataStoreWriter interface {
SetDBMetadata() error
}
type ReadWriter ¶
func NewWriter ¶
func NewWriter(cfg Config) (ReadWriter, error)
type Reader ¶
type Reader interface { DBMetadataStoreReader }
type Writer ¶
type Writer interface { DBMetadataStoreWriter io.Closer }
Click to show internal directories.
Click to hide internal directories.