keyless.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package cloudflare
  2. import "time"
  3. // KeylessSSL represents Keyless SSL configuration.
  4. type KeylessSSL struct {
  5. ID string `json:"id"`
  6. Name string `json:"name"`
  7. Host string `json:"host"`
  8. Port int `json:"port"`
  9. Status string `json:"success"`
  10. Enabled bool `json:"enabled"`
  11. Permissions []string `json:"permissions"`
  12. CreatedOn time.Time `json:"created_on"`
  13. ModifiedOn time.Time `json:"modifed_on"`
  14. }
  15. // KeylessSSLResponse represents the response from the Keyless SSL endpoint.
  16. type KeylessSSLResponse struct {
  17. Response
  18. Result []KeylessSSL `json:"result"`
  19. }
  20. // CreateKeyless creates a new Keyless SSL configuration for the zone.
  21. //
  22. // API reference: https://api.cloudflare.com/#keyless-ssl-for-a-zone-create-a-keyless-ssl-configuration
  23. func (api *API) CreateKeyless() {
  24. }
  25. // ListKeyless lists Keyless SSL configurations for a zone.
  26. //
  27. // API reference: https://api.cloudflare.com/#keyless-ssl-for-a-zone-list-keyless-ssls
  28. func (api *API) ListKeyless() {
  29. }
  30. // Keyless provides the configuration for a given Keyless SSL identifier.
  31. //
  32. // API reference: https://api.cloudflare.com/#keyless-ssl-for-a-zone-keyless-ssl-details
  33. func (api *API) Keyless() {
  34. }
  35. // UpdateKeyless updates an existing Keyless SSL configuration.
  36. //
  37. // API reference: https://api.cloudflare.com/#keyless-ssl-for-a-zone-update-keyless-configuration
  38. func (api *API) UpdateKeyless() {
  39. }
  40. // DeleteKeyless deletes an existing Keyless SSL configuration.
  41. //
  42. // API reference: https://api.cloudflare.com/#keyless-ssl-for-a-zone-delete-keyless-configuration
  43. func (api *API) DeleteKeyless() {
  44. }