Initial commit: Elydora Go SDK
Go SDK for Elydora agent operations, cryptographic signing, and audit trail integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
8916506ebc
26 files changed
+3381
No files matched your search
+30
@@ -0,0 +1,30 @@
|
||||
package elydora
|
||||
|
||||
import "fmt"
|
||||
|
||||
// CreateExport creates a new compliance export job.
|
||||
func (c *Client) CreateExport(params *CreateExportRequest) (*CreateExportResponse, error) {
|
||||
var result CreateExportResponse
|
||||
if err := c.doPost("/exports", params, &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
|
||||
// ListExports lists all exports for the organization.
|
||||
func (c *Client) ListExports() (*ListExportsResponse, error) {
|
||||
var result ListExportsResponse
|
||||
if err := c.doGet("/exports", &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
|
||||
// GetExport retrieves a specific export by ID.
|
||||
func (c *Client) GetExport(exportID string) (*GetExportResponse, error) {
|
||||
var result GetExportResponse
|
||||
if err := c.doGet(fmt.Sprintf("/exports/%s", exportID), &result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
Reference in new issue
Block a user