Documentation ¶
Overview ¶
automod helpers for visual content (image blobs)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbyssClassifyResult ¶
type AbyssClassifyResult struct { }
type AbyssClient ¶
func NewAbyssClient ¶
func NewAbyssClient(host, password, ratelimitBypass string) AbyssClient
func (*AbyssClient) AbyssScanBlobRule ¶
func (ac *AbyssClient) AbyssScanBlobRule(c *automod.RecordContext, blob lexutil.LexBlob, data []byte) error
type AbyssMatchHit ¶
type AbyssMatchResult ¶
type AbyssMatchResult struct { Status string `json:"status"` Hits []AbyssMatchHit `json:"hits"` }
func (*AbyssMatchResult) IsAbuseMatch ¶
func (amr *AbyssMatchResult) IsAbuseMatch() bool
type AbyssReviewState ¶
type AbyssScanResp ¶
type AbyssScanResp struct { Blob *lexutil.LexBlob `json:"blob"` Match *AbyssMatchResult `json:"match,omitempty"` Classify *AbyssClassifyResult `json:"classify,omitempty"` Review *AbyssReviewState `json:"review,omitempty"` }
type HiveAIClient ¶
type HiveAIClient struct { Client http.Client ApiToken string PreScreenClient *PreScreenClient }
func NewHiveAIClient ¶
func NewHiveAIClient(token string) HiveAIClient
func (*HiveAIClient) HiveLabelBlobRule ¶
func (hal *HiveAIClient) HiveLabelBlobRule(c *automod.RecordContext, blob lexutil.LexBlob, data []byte) error
type HiveAIResp ¶
type HiveAIResp struct {
Status []HiveAIResp_Status `json:"status"`
}
schema: https://docs.thehive.ai/reference/classification
func (*HiveAIResp) SummarizeLabels ¶
func (resp *HiveAIResp) SummarizeLabels() []string
type HiveAIResp_Class ¶
type HiveAIResp_Out ¶
type HiveAIResp_Out struct { Time float64 `json:"time"` Classes []HiveAIResp_Class `json:"classes"` }
type HiveAIResp_Response ¶
type HiveAIResp_Response struct {
Output []HiveAIResp_Out `json:"output"`
}
type HiveAIResp_Status ¶
type HiveAIResp_Status struct {
Response HiveAIResp_Response `json:"response"`
}
type PreScreenClient ¶
func NewPreScreenClient ¶
func NewPreScreenClient(host, token string) *PreScreenClient
func (*PreScreenClient) PreScreenImage ¶
type PreScreenResult ¶
type PreScreenResult struct {
Result string `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.