Documentation ¶
Index ¶
- func Actions(c echo.Context) error
- func DeleteComment(c echo.Context) error
- func DeleteFile(c echo.Context) error
- func DeleteFiles(c echo.Context) error
- func Download(c echo.Context) error
- func DumpRequest(req *http.Request)
- func GetFile(c echo.Context) error
- func GetFiles(c echo.Context) error
- func PostComment(c echo.Context) error
- func PostFiles(c echo.Context) error
- func PutFile(c echo.Context) error
- func PutFiles(c echo.Context) error
- func ScanFileFromObjectStorage(c echo.Context) error
- type AV
- type Comment
- type File
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanFileFromObjectStorage ¶
func ScanFileFromObjectStorage(c echo.Context) error
ScanFileFromObjectStorage scans which was pushed to object storage directly.
Types ¶
type File ¶
type File struct { Md5 string `json:"md5,omitempty"` Sha1 string `json:"sha1,omitempty"` Sha256 string `json:"sha256,omitempty"` Sha512 string `json:"sha512,omitempty"` Ssdeep string `json:"ssdeep,omitempty"` Crc32 string `json:"crc32,omitempty"` Magic string `json:"magic,omitempty"` Size int64 `json:"size,omitempty"` Exif map[string]string `json:"exif,omitempty"` TriD []string `json:"trid,omitempty"` Tags map[string]interface{} `json:"tags,omitempty"` Packer []string `json:"packer,omitempty"` FirstSubmission *time.Time `json:"first_submission,omitempty"` LastSubmission *time.Time `json:"last_submission,omitempty"` LastScanned *time.Time `json:"last_scanned,omitempty"` Submissions []submission `json:"submissions,omitempty"` Strings []stringStruct `json:"strings,omitempty"` MultiAV map[string]interface{} `json:"multiav,omitempty"` Status int `json:"status,omitempty"` Comments []Comment `json:"comments,omitempty"` PE *peparser.File `json:"pe,omitempty"` Histogram []int `json:"histogram,omitempty"` ByteEntropy []int `json:"byte_entropy,omitempty"` Type string `json:"type,omitempty"` }
File represent a sample
func GetAllFiles ¶
GetAllFiles return all files (optional: selecting fields)
func GetFileByFields ¶
GetFileByFields return user by username(optional: selecting fields)
func GetFileBySHA256 ¶
GetFileBySHA256 return user document
Click to show internal directories.
Click to hide internal directories.