Introduction
The Gcore Go SDK provides convenient access to the Gcore REST API through a collection of service-oriented packages. Each service package corresponds to a major Gcore product or functionality area, providing type-safe methods for interacting with the API. The SDK is built with Stainless and follows modern Go patterns including:- Type-safe request/response structures
- Automatic pagination support
- Built-in error handling and retries
- Contextual timeouts and cancellation
- Request middleware support
Getting Started
Initialize a client to access all available services:Available Services
The Gcore Go SDK provides nine primary service packages, each accessible through the main client:Service Access Pattern
All services follow a consistent access pattern through the main client:Service Structure
Each service contains:- Top-level methods for direct operations on the service
- Sub-services for related functionality (e.g.,
client.Cloud.Projects,client.CDN.CDNResources) - Consistent patterns for CRUD operations, listing, and pagination
Common Patterns
Making Requests
All service methods follow these patterns:Auto-Pagination
The SDK provides automatic pagination for list endpoints:Error Handling
Handle API errors using Go’s standard error patterns:Request Options
Customize requests with functional options:Service Documentation
Explore detailed documentation for each service:Cloud
Cloud infrastructure including VMs, networks, load balancers, and storage volumes
CDN
Content delivery network resources, origins, certificates, and caching rules
DNS
DNS zones, records, DNSSEC, and authoritative name services
Storage
S3-compatible object storage with buckets and credentials management
Streaming
Video streaming, transcoding, broadcasts, and media management
IAM
Identity and access management with API tokens and user authentication
WAAP
Web application and API protection against security threats
Security
DDoS protection, security profiles, and BGP announcements
Fastedge
Edge computing with WebAssembly apps and key-value storage
Advanced Usage
Custom Requests
Make requests to undocumented endpoints:Middleware
Add custom middleware for logging or monitoring:Raw Response Access
Access response headers and metadata:Next Steps
- Explore individual service documentation using the cards above
- Review the complete API reference
- Check out examples in the repository
- Read about authentication and configuration
