(Crackers)
Crackers API
- CheckForCrackerUpdate - Check for Cracker Update
Check for a cracker update, based on the operating system and version.
package main
import(
cipherswarmagentsdkgo "github.com/unclesp1d3r/cipherswarm-agent-sdk-go"
"context"
"log"
)
func main() {
s := cipherswarmagentsdkgo.New(
cipherswarmagentsdkgo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
ctx := context.Background()
res, err := s.Crackers.CheckForCrackerUpdate(ctx, nil, nil)
if err != nil {
log.Fatal(err)
}
if res.CrackerUpdate != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
operatingSystem |
*string | ➖ | operating_system |
version |
*string | ➖ | version |
opts |
[]operations.Option | ➖ | The options for this request. |
*operations.CheckForCrackerUpdateResponse, error
Error Type | Status Code | Content Type |
---|---|---|
sdkerrors.ErrorObject | 400 | application/json |
sdkerrors.SDKError | 4XX, 5XX | */* |