Documentation ¶
Index ¶
- func DscClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForBatchAddDataMask() *def.HttpRequestDef
- func GenReqDefForCreateDatabaseWaterMark() *def.HttpRequestDef
- func GenReqDefForCreateDocWatermark() *def.HttpRequestDef
- func GenReqDefForCreateDocWatermarkByAddress() *def.HttpRequestDef
- func GenReqDefForCreateImageWatermark() *def.HttpRequestDef
- func GenReqDefForCreateImageWatermarkByAddress() *def.HttpRequestDef
- func GenReqDefForShowDatabaseWaterMark() *def.HttpRequestDef
- func GenReqDefForShowDocWatermark() *def.HttpRequestDef
- func GenReqDefForShowDocWatermarkByAddress() *def.HttpRequestDef
- func GenReqDefForShowImageWatermark() *def.HttpRequestDef
- func GenReqDefForShowImageWatermarkByAddress() *def.HttpRequestDef
- func GenReqDefForShowImageWatermarkWithImage() *def.HttpRequestDef
- func GenReqDefForShowImageWatermarkWithImageByAddress() *def.HttpRequestDef
- func GenReqDefForShowOpenApiCalledRecords() *def.HttpRequestDef
- func GenReqDefForShowScanJobResults() *def.HttpRequestDef
- func GenReqDefForShowScanJobs() *def.HttpRequestDef
- type DscClient
- func (c *DscClient) BatchAddDataMask(request *model.BatchAddDataMaskRequest) (*model.BatchAddDataMaskResponse, error)
- func (c *DscClient) CreateDatabaseWaterMark(request *model.CreateDatabaseWaterMarkRequest) (*model.CreateDatabaseWaterMarkResponse, error)
- func (c *DscClient) CreateDocWatermark(request *model.CreateDocWatermarkRequest) (*model.CreateDocWatermarkResponse, error)
- func (c *DscClient) CreateDocWatermarkByAddress(request *model.CreateDocWatermarkByAddressRequest) (*model.CreateDocWatermarkByAddressResponse, error)
- func (c *DscClient) CreateImageWatermark(request *model.CreateImageWatermarkRequest) (*model.CreateImageWatermarkResponse, error)
- func (c *DscClient) CreateImageWatermarkByAddress(request *model.CreateImageWatermarkByAddressRequest) (*model.CreateImageWatermarkByAddressResponse, error)
- func (c *DscClient) ShowDatabaseWaterMark(request *model.ShowDatabaseWaterMarkRequest) (*model.ShowDatabaseWaterMarkResponse, error)
- func (c *DscClient) ShowDocWatermark(request *model.ShowDocWatermarkRequest) (*model.ShowDocWatermarkResponse, error)
- func (c *DscClient) ShowDocWatermarkByAddress(request *model.ShowDocWatermarkByAddressRequest) (*model.ShowDocWatermarkByAddressResponse, error)
- func (c *DscClient) ShowImageWatermark(request *model.ShowImageWatermarkRequest) (*model.ShowImageWatermarkResponse, error)
- func (c *DscClient) ShowImageWatermarkByAddress(request *model.ShowImageWatermarkByAddressRequest) (*model.ShowImageWatermarkByAddressResponse, error)
- func (c *DscClient) ShowImageWatermarkWithImage(request *model.ShowImageWatermarkWithImageRequest) (*model.ShowImageWatermarkWithImageResponse, error)
- func (c *DscClient) ShowImageWatermarkWithImageByAddress(request *model.ShowImageWatermarkWithImageByAddressRequest) (*model.ShowImageWatermarkWithImageByAddressResponse, error)
- func (c *DscClient) ShowOpenApiCalledRecords(request *model.ShowOpenApiCalledRecordsRequest) (*model.ShowOpenApiCalledRecordsResponse, error)
- func (c *DscClient) ShowScanJobResults(request *model.ShowScanJobResultsRequest) (*model.ShowScanJobResultsResponse, error)
- func (c *DscClient) ShowScanJobs(request *model.ShowScanJobsRequest) (*model.ShowScanJobsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DscClientBuilder ¶
func DscClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForBatchAddDataMask ¶
func GenReqDefForBatchAddDataMask() *def.HttpRequestDef
func GenReqDefForCreateDatabaseWaterMark ¶
func GenReqDefForCreateDatabaseWaterMark() *def.HttpRequestDef
func GenReqDefForCreateDocWatermark ¶
func GenReqDefForCreateDocWatermark() *def.HttpRequestDef
func GenReqDefForCreateDocWatermarkByAddress ¶ added in v0.0.83
func GenReqDefForCreateDocWatermarkByAddress() *def.HttpRequestDef
func GenReqDefForCreateImageWatermark ¶
func GenReqDefForCreateImageWatermark() *def.HttpRequestDef
func GenReqDefForCreateImageWatermarkByAddress ¶ added in v0.0.83
func GenReqDefForCreateImageWatermarkByAddress() *def.HttpRequestDef
func GenReqDefForShowDatabaseWaterMark ¶
func GenReqDefForShowDatabaseWaterMark() *def.HttpRequestDef
func GenReqDefForShowDocWatermark ¶
func GenReqDefForShowDocWatermark() *def.HttpRequestDef
func GenReqDefForShowDocWatermarkByAddress ¶ added in v0.0.83
func GenReqDefForShowDocWatermarkByAddress() *def.HttpRequestDef
func GenReqDefForShowImageWatermark ¶
func GenReqDefForShowImageWatermark() *def.HttpRequestDef
func GenReqDefForShowImageWatermarkByAddress ¶ added in v0.0.83
func GenReqDefForShowImageWatermarkByAddress() *def.HttpRequestDef
func GenReqDefForShowImageWatermarkWithImage ¶ added in v0.0.83
func GenReqDefForShowImageWatermarkWithImage() *def.HttpRequestDef
func GenReqDefForShowImageWatermarkWithImageByAddress ¶ added in v0.0.83
func GenReqDefForShowImageWatermarkWithImageByAddress() *def.HttpRequestDef
func GenReqDefForShowOpenApiCalledRecords ¶ added in v0.0.71
func GenReqDefForShowOpenApiCalledRecords() *def.HttpRequestDef
func GenReqDefForShowScanJobResults ¶ added in v0.0.68
func GenReqDefForShowScanJobResults() *def.HttpRequestDef
func GenReqDefForShowScanJobs ¶ added in v0.0.68
func GenReqDefForShowScanJobs() *def.HttpRequestDef
Types ¶
type DscClient ¶
type DscClient struct {
HcClient *http_client.HcHttpClient
}
func NewDscClient ¶
func NewDscClient(hcClient *http_client.HcHttpClient) *DscClient
func (*DscClient) BatchAddDataMask ¶
func (c *DscClient) BatchAddDataMask(request *model.BatchAddDataMaskRequest) (*model.BatchAddDataMaskResponse, error)
对数据进行脱敏
func (*DscClient) CreateDatabaseWaterMark ¶
func (c *DscClient) CreateDatabaseWaterMark(request *model.CreateDatabaseWaterMarkRequest) (*model.CreateDatabaseWaterMarkResponse, error)
对json体中数据动态添加水印
func (*DscClient) CreateDocWatermark ¶
func (c *DscClient) CreateDocWatermark(request *model.CreateDocWatermarkRequest) (*model.CreateDocWatermarkResponse, error)
对WORD(.docx),PPT(.pptx),EXCEL(.xlsx),PDF(.pdf) 类型的文件嵌入文字暗水印、文字明水印或者图片明水印,用户以formData的格式传入待加水印的文件和水印相关信息,DSC服务给文件加完水印后返回给用户已嵌入水印的文件的二进制流。
func (*DscClient) CreateDocWatermarkByAddress ¶ added in v0.0.83
func (c *DscClient) CreateDocWatermarkByAddress(request *model.CreateDocWatermarkByAddressRequest) (*model.CreateDocWatermarkByAddressResponse, error)
对WORD(.docx),PPT(.pptx),EXCEL(.xlsx),PDF(.pdf)*类型的文档嵌入文字暗水印、文字明水印或者图片明水印,用户传入待加水印的文档地址(目前支持OBS)和水印相关信息,DSC服务对文档加完水印后返回给用户已嵌入水印的文档的存放地址。
func (*DscClient) CreateImageWatermark ¶
func (c *DscClient) CreateImageWatermark(request *model.CreateImageWatermarkRequest) (*model.CreateImageWatermarkResponse, error)
对图片嵌入文字暗水印或者图片暗水印,用户以formData的格式传入待加水印图片和水印相关信息,DSC服务对图片加完水印后返回给用户已嵌入水印的图片二进制流,目前支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。
func (*DscClient) CreateImageWatermarkByAddress ¶ added in v0.0.83
func (c *DscClient) CreateImageWatermarkByAddress(request *model.CreateImageWatermarkByAddressRequest) (*model.CreateImageWatermarkByAddressResponse, error)
对指定存储地址信息(目前支持华为云OBS)的图片嵌入文字暗水印或者图片暗水印,已嵌入的水印的图片将存放在用户指定的位置(目前支持华为云OBS),支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。
func (*DscClient) ShowDatabaseWaterMark ¶
func (c *DscClient) ShowDatabaseWaterMark(request *model.ShowDatabaseWaterMarkRequest) (*model.ShowDatabaseWaterMarkResponse, error)
提取请求数据中水印内容
func (*DscClient) ShowDocWatermark ¶
func (c *DscClient) ShowDocWatermark(request *model.ShowDocWatermarkRequest) (*model.ShowDocWatermarkResponse, error)
对已嵌入文字暗水印的WORD(.docx),PPT(.pptx),EXCEL(.xlsx),PDF(.pdf)类型的文档进行文字暗水印提取,用户以formData的格式传入待提取水印的文件,DSC服务以JSON的格式返回从文档里提取的出的文字暗水印内容。
func (*DscClient) ShowDocWatermarkByAddress ¶ added in v0.0.83
func (c *DscClient) ShowDocWatermarkByAddress(request *model.ShowDocWatermarkByAddressRequest) (*model.ShowDocWatermarkByAddressResponse, error)
支持对已嵌入文字暗水印的WORD(.docx),PPT(.pptx),EXCEL(.xlsx),PDF(.pdf)类型的文档进行水印提取,用户传入待提取水印的文档地址(目前支持OBS),DSC服务以JSON的格式返回从文档里提取的出的文字暗水印内容。
func (*DscClient) ShowImageWatermark ¶
func (c *DscClient) ShowImageWatermark(request *model.ShowImageWatermarkRequest) (*model.ShowImageWatermarkResponse, error)
对已嵌入文字暗水印的图片进行水印提取,用户以formData的格式传入待提取水印的图片,DSC服务以JSON的格式返回从图片里提取的出的文字暗水印。目前支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。
func (*DscClient) ShowImageWatermarkByAddress ¶ added in v0.0.83
func (c *DscClient) ShowImageWatermarkByAddress(request *model.ShowImageWatermarkByAddressRequest) (*model.ShowImageWatermarkByAddressResponse, error)
对指定存储地址信息(目前支持华为云OBS)的已嵌入文字暗水印的图片提取文字暗水印,支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。
func (*DscClient) ShowImageWatermarkWithImage ¶ added in v0.0.83
func (c *DscClient) ShowImageWatermarkWithImage(request *model.ShowImageWatermarkWithImageRequest) (*model.ShowImageWatermarkWithImageResponse, error)
对已嵌入图片暗水印的图片进行水印提取,用户以formData的格式传入待提取水印的图片,DSC服务以图片二进制流的格式返回从图片里提取的出的图片暗水印。目前支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。
func (*DscClient) ShowImageWatermarkWithImageByAddress ¶ added in v0.0.83
func (c *DscClient) ShowImageWatermarkWithImageByAddress(request *model.ShowImageWatermarkWithImageByAddressRequest) (*model.ShowImageWatermarkWithImageByAddressResponse, error)
对指定存储地址信息(目前支持华为云OBS)的已嵌入图片暗水印的图片提取图片暗水印,提取出的水印图片将存放在用户指定的位置(目前支持华为云OBS),支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。
func (*DscClient) ShowOpenApiCalledRecords ¶ added in v0.0.71
func (c *DscClient) ShowOpenApiCalledRecords(request *model.ShowOpenApiCalledRecordsRequest) (*model.ShowOpenApiCalledRecordsResponse, error)
查询OpenApi调用记录
func (*DscClient) ShowScanJobResults ¶ added in v0.0.68
func (c *DscClient) ShowScanJobResults(request *model.ShowScanJobResultsRequest) (*model.ShowScanJobResultsResponse, error)
查询指定任务扫描结果
func (*DscClient) ShowScanJobs ¶ added in v0.0.68
func (c *DscClient) ShowScanJobs(request *model.ShowScanJobsRequest) (*model.ShowScanJobsResponse, error)
查询扫描任务列表