Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Reputation(ctx context.Context, req *FileReputationRequest) (*pangea.PangeaResponse[FileReputationResult], error) ReputationBulk(ctx context.Context, req *FileReputationBulkRequest) (*pangea.PangeaResponse[FileReputationBulkResult], error) // Base service methods pangea.BaseServicer }
type FileReputationBulkRequest ¶ added in v3.5.0
type FileReputationBulkRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest Hashes []string `json:"hashes"` // One of "sha256", "sha", "md5". HashType string `json:"hash_type"` // Echo the API parameters in the response. Verbose *bool `json:"verbose,omitempty"` // Include raw data from this provider. Raw *bool `json:"raw,omitempty"` // Use reputation data from this provider. Provider string `json:"provider,omitempty"` }
type FileReputationBulkResult ¶ added in v3.5.0
type FileReputationBulkResult struct { // High-level normalized results sent // by the Pangea service Data map[string]ReputationData `json:"data"` // The parameters, which were passed in // the request, echoed back Parameters map[string]any `json:"parameters,omitempty"` // The raw data from the provider. // Each provider's data will have its own format RawData map[string]any `json:"raw_data,omitempty"` }
type FileReputationRequest ¶
type FileReputationRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest Hash string `json:"hash"` // One of "sha256", "sha", "md5". HashType string `json:"hash_type"` // Echo the API parameters in the response. Verbose *bool `json:"verbose,omitempty"` // Include raw data from this provider. Raw *bool `json:"raw,omitempty"` // Use reputation data from this provider. Provider string `json:"provider,omitempty"` }
func NewFileReputationRequestFromFilepath ¶
func NewFileReputationRequestFromFilepath(fp string) (*FileReputationRequest, error)
Create a FileReputationRequest from path file
type FileReputationResult ¶
type FileReputationResult struct { // High-level normalized results sent // by the Pangea service Data ReputationData `json:"data"` // The parameters, which were passed in // the request, echoed back Parameters interface{} `json:"parameters,omitempty"` // The raw data from the provider. // Each provider's data will have its own format RawData interface{} `json:"raw_data,omitempty"` }
type ReputationData ¶
type ReputationData struct { // The categories that apply to this // indicator as determined by the provider Category []string `json:"category"` // The score, given by the Pangea service, // for the indicator Score int `json:"score"` // The verdict, given by the Pangea service, // for the indicator Verdict string `json:"verdict"` }
Click to show internal directories.
Click to hide internal directories.