Commit Graph
3 Commits
Author SHA1 Message Date
nutcas3 70504379c5 feat: Add HMAC-SHA256 authentication utilities to Terraform provider client
- Add crypto/hmac, crypto/sha256, and encoding/base64 imports
- Add hmacSHA256 function for HMAC-SHA256 signature generation with base64 URL encoding
- Add base64URLEncode helper function for URL-safe base64 encoding
- Add reference implementation comments for SDK compatibility
2026-04-25 05:09:35 +03:00
nutcas3 c7627d92ec refactor: Replace interface{} with any alias in Terraform provider code
- Replace interface{} with any in providerConfigure, doRequest, get, post, put method signatures
- Replace interface{} with any in dataSourceSubscriberRead, dataSourceSystemStatsRead functions
- Replace interface{} with any in resourceSubscriberCreate/Read/Update/Delete, resourceRatingPlanCreate/Read/Update/Delete functions
- Replace map[string]interface{} with map[string]any in subscriber create/update request bodies
- Update
2026-04-20 18:25:22 +03:00
nutcas3 8c8d71056f feat: Add Terraform provider API client with HTTP methods and provider configuration
- Add APIClient struct with BaseURL, APIKey, and HTTPClient with 30s timeout
- Add providerConfigure to initialize client from schema with api_url and api_key
- Add doRequest helper with context support, JSON marshaling, Content-Type and Authorization headers
- Add get method accepting GET requests with 200 OK validation and JSON decoding
- Add post method accepting POST requests with 200/201 status validation and optional
2026-04-17 17:37:18 +03:00