admin.go 695 B

12345678910111213141516171819202122232425
  1. package admin
  2. import "github.com/smallstep/certificates/authority/status"
  3. // Type specifies the type of the admin. e.g. SUPER_ADMIN, REGULAR
  4. type Type string
  5. var (
  6. // TypeSuper superadmin
  7. TypeSuper = Type("SUPER_ADMIN")
  8. // TypeRegular regular
  9. TypeRegular = Type("REGULAR")
  10. )
  11. // Admin type.
  12. type Admin struct {
  13. ID string `json:"id"`
  14. AuthorityID string `json:"-"`
  15. Subject string `json:"subject"`
  16. ProvisionerName string `json:"provisionerName"`
  17. ProvisionerType string `json:"provisionerType"`
  18. ProvisionerID string `json:"provisionerID"`
  19. Type Type `json:"type"`
  20. Status status.Type `json:"status"`
  21. }