Documentation
¶
Overview ¶
Package apitypes provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Ctime *int64 `json:"ctime,omitempty"`
FileMode uint32 `json:"fileMode"`
Group *uint32 `json:"group,omitempty"`
Md5 *string `json:"md5,omitempty"`
Mtime int64 `json:"mtime"`
Owner *uint32 `json:"owner,omitempty"`
Path string `json:"path"`
Sha1 *string `json:"sha1,omitempty"`
Sha256 *string `json:"sha256,omitempty"`
Size int64 `json:"size"`
}
File defines model for File.
type KnownFile ¶
type KnownFile struct {
KnownPath *string `json:"knownPath,omitempty"`
Md5 *string `json:"md5,omitempty"`
Path string `json:"path"`
Sha1 *string `json:"sha1,omitempty"`
Sha256 *string `json:"sha256,omitempty"`
Size *int64 `json:"size,omitempty"`
Status datastore.FileStatus `json:"status"`
}
KnownFile defines model for KnownFile.
type NewReportRequest ¶
type NewReportRequest struct {
Files []File `json:"files"`
Hostname string `json:"hostname"`
MachineId string `json:"machineId"`
ReportRunId *uuid.UUID `json:"reportRunId,omitempty"`
}
NewReportRequest defines model for NewReportRequest.
type NewReportResponse ¶
type NewReportResponse struct {
Files []ReportFile `json:"files"`
Id uuid.UUID `json:"id"`
}
NewReportResponse defines model for NewReportResponse.
type QueryByHashBatchJSONBody ¶
type QueryByHashBatchJSONBody = []HashQuery
QueryByHashBatchJSONBody defines parameters for QueryByHashBatch.
type QueryByHashBatchJSONRequestBody ¶
type QueryByHashBatchJSONRequestBody = QueryByHashBatchJSONBody
QueryByHashBatchJSONRequestBody defines body for QueryByHashBatch for application/json ContentType.
type ReportFile ¶
type ReportFile struct {
Error *string `json:"error,omitempty"`
Path string `json:"path"`
Status datastore.FileStatus `json:"status"`
}
ReportFile defines model for ReportFile.
type SubmitReportJSONRequestBody ¶
type SubmitReportJSONRequestBody = NewReportRequest
SubmitReportJSONRequestBody defines body for SubmitReport for application/json ContentType.