v1.9.0
This commit is contained in:
18
pkg/cloudbroker/audit/export_audits_to_file.go
Normal file
18
pkg/cloudbroker/audit/export_audits_to_file.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package audit
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ExportAuditsToFile Get audits in csv file, return []byte which should be written to a file *tar.gz
|
||||
func (a Audit) ExportAuditsToFile(ctx context.Context) ([]byte, error) {
|
||||
url := "/cloudbroker/audit/exportAuditsToFile"
|
||||
|
||||
res, err := a.client.DecortApiCall(ctx, http.MethodPost, url, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res, nil
|
||||
}
|
||||
@@ -33,9 +33,6 @@ type ListAudits struct {
|
||||
// Main info about audit
|
||||
type RecordAudit struct {
|
||||
|
||||
// Apitask
|
||||
Apitask string `json:"apitask"`
|
||||
|
||||
// Arguments
|
||||
Arguments string `json:"args"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user