Skip to content

v0.1.2

Latest

Choose a tag to compare

@fgouteroux fgouteroux released this 08 Oct 12:41

✅ Main Changes

Enhanced Error Reporting - All API errors now include the response body

Modified sendRequest() to always read response body before checking status
Error messages include full JSON response (truncated to 500 chars if needed)
No need to enable debug mode to see error details

Flexible Status Code Handling - sendRequest() now accepts:

Specific status codes (200, 201, 204, etc.)
0 to accept any 2xx status code
All methods now use centralized error handling

Modular Code Structure - Split into logical files:

client.go - Core client and authentication
domain.go - Domain management
organization.go - Organization management
acme.go - ACME operations
certificate.go - SSL certificate management

📁 Files Created/Modified
Source Files:

sectigo/client.go
sectigo/domain.go
sectigo/organization.go
sectigo/acme.go
sectigo/certificate.go

Test Files:

sectigo/client_test.go
sectigo/domain_test.go
sectigo/organization_test.go
sectigo/acme_test.go
sectigo/certificate_test.go