Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client : Interface for the malwarescan api provided by SAP CP (see https://api.sap.com/api/MalwareScanAPI/overview)
type ClientImpl ¶
ClientImpl : Client implementation of the malwarescan api provided by SAP CP (see https://api.sap.com/api/MalwareScanAPI/overview)
func (*ClientImpl) Info ¶
func (c *ClientImpl) Info() (*Info, error)
Info : Returns some information about the scanengine used by the malwarescan service.
func (*ClientImpl) Scan ¶
func (c *ClientImpl) Scan(candidate io.Reader) (*ScanResult, error)
Scan : Triggers a malwarescan in SAP CP for the given content.
type ScanError ¶
type ScanError struct {
Message string
}
ScanError : Returned by the malwarescan api of SAP CP in case of an error
type ScanResult ¶
type ScanResult struct { MalwareDetected bool `json:"malwareDetected"` EncryptedContentDetected bool `json:"encryptedContentDetected"` ScanSize int `json:"scanSize"` Finding string `json:"finding,omitempty"` MimeType string `json:"mimeType"` SHA256 string `json:"SHA256"` }
ScanResult : Returned by the scan endpoint of the malwarescan api of SAP CP
Click to show internal directories.
Click to hide internal directories.