Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentScanPayload ¶
type ContentScanPayload struct {
Filename string `json:"filename"` // <= 256 characters
Document string `json:"document"`
}
ContentScanPayload this shouldn't exceed 1MB.
type ContentScanResponse ¶
type ContentScanResponse struct {
PolicyBreakCount int64 `json:"policy_break_count"`
Policies []string `json:"policies"`
PolicyBreaks []PolicyBreak `json:"policy_breaks"`
}
type ContentScanResult ¶
type ContentScanResult struct {
Result ContentScanResponse `json:"result"`
Error *Error `json:"error"`
}
type MultipleContentScanPayload ¶
type MultipleContentScanPayload []ContentScanPayload
MultipleContentScanPayload this shouldn't exceed 2MB.
type MultipleContentScanResponse ¶
type MultipleContentScanResponse []ContentScanResponse
type MultipleContentScanResult ¶
type MultipleContentScanResult struct {
Result []ContentScanResponse `json:"result"`
Error *Error `json:"error"`
}
type PolicyBreak ¶
type QuotaContent ¶
type QuotaResponse ¶
type QuotaResponse struct {
Content QuotaContent `json:"content"`
}
type QuotaResult ¶
type QuotaResult struct {
Result QuotaResponse `json:"result"`
Error *Error `json:"error"`
}
type ScanClient ¶
type ScanClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...client.ClientOption) (*ScanClient, error)
func (*ScanClient) ContentScan ¶
func (c *ScanClient) ContentScan(payload ContentScanPayload) (*ContentScanResult, error)
func (*ScanClient) MultipleContentScan ¶
func (c *ScanClient) MultipleContentScan(payload []ContentScanPayload) (*MultipleContentScanResult, error)
func (*ScanClient) Quota ¶
func (c *ScanClient) Quota() (*QuotaResult, error)
Click to show internal directories.
Click to hide internal directories.