Expand description
High-level client interface for interacting with the CodeDefender SaaS API.
This module provides functions to upload files, analyze binaries, initiate obfuscation, and poll for obfuscation results via blocking HTTP requests.
All endpoints require a valid API key, passed via the Authorization header
using the ApiKey scheme.
Re-exports§
pub use codedefender_config;pub use serde_json;
Enums§
Statics§
- ANALYZE_
EP - ANALYZE_
STATUS_ EP - BASE_
URL - Changing the BASE_URL env variable allows you to specify a different backend like staging or local.
- DEFEND_
EP - DOWNLOAD_
EP - GET_
UPLOAD_ URL_ EP
Functions§
- defend
- Starts the obfuscation process for a given file using the provided configuration.
- download
- Polls the obfuscation status.
- download_
analysis_ result - Downloads and deserializes the analysis result from the presigned URL.
- download_
obfuscated_ file - Downloads the obfuscated file from the presigned URL.
- get_
analyze_ status - Polls the analysis status.
- get_
upload_ info - Gets the presigned upload URL and file ID for uploading a file.
- start_
analyze - Starts analysis of a previously uploaded binary file and optionally its PDB file.
- upload_
data - Uploads raw data bytes to CodeDefender with a specific filename and returns the file ID.
- upload_
file - Uploads a binary file to CodeDefender and returns a UUID representing the uploaded file.
- upload_
to_ s3 - Uploads file bytes to the presigned S3 URL.