Documentation ¶
Index ¶
- Variables
- type DB
- type Option
- type RDBDriver
- func (r *RDBDriver) CloseDB() (err error)
- func (r *RDBDriver) GetFetchMeta() (fetchMeta *models.FetchMeta, err error)
- func (r *RDBDriver) GetModuleByCveID(cveID string) ([]models.Metasploit, error)
- func (r *RDBDriver) GetModuleByEdbID(edbID string) ([]models.Metasploit, error)
- func (r *RDBDriver) GetModuleMultiByCveID(cveIDs []string) (map[string][]models.Metasploit, error)
- func (r *RDBDriver) GetModuleMultiByEdbID(edbIDs []string) (map[string][]models.Metasploit, error)
- func (r *RDBDriver) InsertMetasploit(records []models.Metasploit) (err error)
- func (r *RDBDriver) IsGoMsfdbModelV1() (bool, error)
- func (r *RDBDriver) MigrateDB() error
- func (r *RDBDriver) Name() string
- func (r *RDBDriver) OpenDB(dbType, dbPath string, debugSQL bool, _ Option) (err error)
- func (r *RDBDriver) UpsertFetchMeta(fetchMeta *models.FetchMeta) error
- type RedisDriver
- func (r *RedisDriver) CloseDB() (err error)
- func (r *RedisDriver) GetFetchMeta() (*models.FetchMeta, error)
- func (r *RedisDriver) GetModuleByCveID(cveID string) ([]models.Metasploit, error)
- func (r *RedisDriver) GetModuleByEdbID(edbID string) ([]models.Metasploit, error)
- func (r *RedisDriver) GetModuleMultiByCveID(cveIDs []string) (map[string][]models.Metasploit, error)
- func (r *RedisDriver) GetModuleMultiByEdbID(edbIDs []string) (map[string][]models.Metasploit, error)
- func (r *RedisDriver) InsertMetasploit(records []models.Metasploit) (err error)
- func (r *RedisDriver) IsGoMsfdbModelV1() (bool, error)
- func (r *RedisDriver) MigrateDB() error
- func (r *RedisDriver) Name() string
- func (r *RedisDriver) OpenDB(_, dbPath string, _ bool, option Option) error
- func (r *RedisDriver) UpsertFetchMeta(fetchMeta *models.FetchMeta) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDBLocked = xerrors.New("database is locked")
ErrDBLocked :
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { Name() string OpenDB(dbType, dbPath string, debugSQL bool, option Option) error MigrateDB() error CloseDB() error IsGoMsfdbModelV1() (bool, error) GetFetchMeta() (*models.FetchMeta, error) UpsertFetchMeta(*models.FetchMeta) error InsertMetasploit([]models.Metasploit) error GetModuleByCveID(string) ([]models.Metasploit, error) GetModuleMultiByCveID([]string) (map[string][]models.Metasploit, error) GetModuleByEdbID(string) ([]models.Metasploit, error) GetModuleMultiByEdbID([]string) (map[string][]models.Metasploit, error) }
DB :
type RDBDriver ¶
type RDBDriver struct {
// contains filtered or unexported fields
}
RDBDriver :
func (*RDBDriver) GetFetchMeta ¶
GetFetchMeta get FetchMeta from Database
func (*RDBDriver) GetModuleByCveID ¶
func (r *RDBDriver) GetModuleByCveID(cveID string) ([]models.Metasploit, error)
GetModuleByCveID :
func (*RDBDriver) GetModuleByEdbID ¶
func (r *RDBDriver) GetModuleByEdbID(edbID string) ([]models.Metasploit, error)
GetModuleByEdbID :
func (*RDBDriver) GetModuleMultiByCveID ¶ added in v0.2.1
GetModuleMultiByCveID :
func (*RDBDriver) GetModuleMultiByEdbID ¶ added in v0.2.1
GetModuleMultiByEdbID :
func (*RDBDriver) InsertMetasploit ¶
func (r *RDBDriver) InsertMetasploit(records []models.Metasploit) (err error)
InsertMetasploit :
func (*RDBDriver) IsGoMsfdbModelV1 ¶
IsGoMsfdbModelV1 determines if the DB was created at the time of go-msfdb Model v1
type RedisDriver ¶
type RedisDriver struct {
// contains filtered or unexported fields
}
RedisDriver is Driver for Redis
func (*RedisDriver) GetFetchMeta ¶
func (r *RedisDriver) GetFetchMeta() (*models.FetchMeta, error)
GetFetchMeta get FetchMeta from Database
func (*RedisDriver) GetModuleByCveID ¶
func (r *RedisDriver) GetModuleByCveID(cveID string) ([]models.Metasploit, error)
GetModuleByCveID :
func (*RedisDriver) GetModuleByEdbID ¶
func (r *RedisDriver) GetModuleByEdbID(edbID string) ([]models.Metasploit, error)
GetModuleByEdbID :
func (*RedisDriver) GetModuleMultiByCveID ¶ added in v0.2.1
func (r *RedisDriver) GetModuleMultiByCveID(cveIDs []string) (map[string][]models.Metasploit, error)
GetModuleMultiByCveID :
func (*RedisDriver) GetModuleMultiByEdbID ¶ added in v0.2.1
func (r *RedisDriver) GetModuleMultiByEdbID(edbIDs []string) (map[string][]models.Metasploit, error)
GetModuleMultiByEdbID :
func (*RedisDriver) InsertMetasploit ¶
func (r *RedisDriver) InsertMetasploit(records []models.Metasploit) (err error)
InsertMetasploit :
func (*RedisDriver) IsGoMsfdbModelV1 ¶
func (r *RedisDriver) IsGoMsfdbModelV1() (bool, error)
IsGoMsfdbModelV1 determines if the DB was created at the time of go-msfdb Model v1
func (*RedisDriver) OpenDB ¶
func (r *RedisDriver) OpenDB(_, dbPath string, _ bool, option Option) error
OpenDB opens Database
func (*RedisDriver) UpsertFetchMeta ¶
func (r *RedisDriver) UpsertFetchMeta(fetchMeta *models.FetchMeta) error
UpsertFetchMeta upsert FetchMeta to Database
Click to show internal directories.
Click to hide internal directories.