Original Repository: https://github.com/cybledev/odin-sdk-go
Installation
To use the Odin SDK in your Go project, you need to install it using thego get command:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
A Go SDK for interacting with the Odin API for cybersecurity and threat detection
go get command:
go get github.com/cybledev/odin-sdk-go@v2
import github.com/cybledev/odin-sdk-go@v2
func ApiKeyAuth() runtime.ClientAuthInfoWriter {
return runtime.ClientAuthInfoWriterFunc(func(r runtime.ClientRequest, \_ strfmt.Registry) error {
return r.SetHeaderParam("x-api-key", os.Getenv("<APIKey>"))
})
}
limit := int64(10)
esr := models.ExposedSearchRequest{
Limit: &limit,
Query: "provider: aws",
SortBy: "files",
SortDir: "desc",
}
buckets := []*models.ExposedBucket{}
searchParams := exposed_buckets.NewPostV1ExposedBucketsSearchParamsWithContext(ctx).WithQuery(&esr)
resp, err := client.ExposedBuckets.PostV1ExposedBucketsSearch(searchParams, apiKeyAuth())
<APIKey> with your actual Odin API key from the odin dashboard.Was this page helpful?