Documentation
¶
Index ¶
- func ALlProcessingJobs() ([]sqlc.ProcessingJob, error)
- func AddProcessingJobMessage(jobid int64, message string) error
- func Connect() (*pgxpool.Pool, error)
- func CreateFile(ctx context.Context, name string, fileBytes []byte) (sqlc.File, error)
- func DeleteFileByID(fileID string) error
- func FailProcessingJob(jobid int64, jobErr error) error
- func FinishProcessingJob(jobid int64) error
- func GetAllFiles() ([]sqlc.File, error)
- func GetFileByID(fileID string) (sqlc.File, error)
- func GetFileMime(fileID pgtype.UUID) (string, error)
- func GetFileProperties(fileID pgtype.UUID) (sqlc.FileProperty, error)
- func GetMSOfficeResults(fileID string) (sqlc.Msoffice, error)
- func GetYaraResults(fileID string) (sqlc.YaraResult, error)
- func InsertFileCapa(params sqlc.InsertFileCapaParams) error
- func InsertFileDiec(params sqlc.InsertFileDIECParams) error
- func InsertFileProperties(properties sqlc.InsertFilePropertiesParams) error
- func InsertMSOfficeResults(params sqlc.InsertMSOfficeResultsParams) error
- func InsertYaraResults(params sqlc.InsertYaraResultsParams) error
- func NewProcessingJob(ctx context.Context, fileid pgtype.UUID, jobType string) (sqlc.ProcessingJob, error)
- func Ping() error
- func StartProcessingJob(jobid int64) error
- type CapaData
- type CapaResult
- type Diec
- type DiecData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ALlProcessingJobs ¶
func ALlProcessingJobs() ([]sqlc.ProcessingJob, error)
func AddProcessingJobMessage ¶
func CreateFile ¶
CreateFile() creates the filesystem object and the DB entry for a file
func DeleteFileByID ¶
func FailProcessingJob ¶
FailProcessingJob() marks the job as completed
func FinishProcessingJob ¶
FinishProcessingJob() marks the job as completed
func GetAllFiles ¶
func GetFileMime ¶
GetFileMime() returns the MimeType for a file
func GetFileProperties ¶
func GetFileProperties(fileID pgtype.UUID) (sqlc.FileProperty, error)
func GetYaraResults ¶
func GetYaraResults(fileID string) (sqlc.YaraResult, error)
func InsertFileCapa ¶
func InsertFileCapa(params sqlc.InsertFileCapaParams) error
func InsertFileDiec ¶
func InsertFileDiec(params sqlc.InsertFileDIECParams) error
func InsertFileProperties ¶
func InsertFileProperties(properties sqlc.InsertFilePropertiesParams) error
func InsertMSOfficeResults ¶
func InsertMSOfficeResults(params sqlc.InsertMSOfficeResultsParams) error
func InsertYaraResults ¶
func InsertYaraResults(params sqlc.InsertYaraResultsParams) error
func NewProcessingJob ¶
func NewProcessingJob(ctx context.Context, fileid pgtype.UUID, jobType string) (sqlc.ProcessingJob, error)
NewProcessingJob() Creates a new Processing Job in the Database
func StartProcessingJob ¶
StartProcessingJob() starts the job
Types ¶
type CapaResult ¶
func GetFileCapa ¶
func GetFileCapa(fileID string) (CapaResult, error)
type DiecData ¶
type DiecData struct {
Detects []struct {
Filetype string `json:"filetype"`
Parentfilepart string `json:"parentfilepart"`
Values []struct {
Info string `json:"info"`
Name string `json:"name"`
String string `json:"string"`
Type string `json:"type"`
Version string `json:"version"`
} `json:"values"`
} `json:"detects"`
}
Click to show internal directories.
Click to hide internal directories.