info.go 408 B

12345678910111213141516
  1. // Package info contains the definitions for the info endpoint
  2. package info
  3. // Req is the request struct for an info API request.
  4. type Req struct {
  5. Label string `json:"label"`
  6. Profile string `json:"profile"`
  7. }
  8. // Resp is the response for an Info API request.
  9. type Resp struct {
  10. Certificate string `json:"certificate"`
  11. Usage []string `json:"usages"`
  12. ExpiryString string `json:"expiry"`
  13. }