mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-03 23:15:28 +00:00
26 lines
695 B
Go
26 lines
695 B
Go
package admin
|
|
|
|
import "github.com/smallstep/certificates/authority/status"
|
|
|
|
// Type specifies the type of the admin. e.g. SUPER_ADMIN, REGULAR
|
|
type Type string
|
|
|
|
var (
|
|
// TypeSuper superadmin
|
|
TypeSuper = Type("SUPER_ADMIN")
|
|
// TypeRegular regular
|
|
TypeRegular = Type("REGULAR")
|
|
)
|
|
|
|
// Admin type.
|
|
type Admin struct {
|
|
ID string `json:"id"`
|
|
AuthorityID string `json:"-"`
|
|
Subject string `json:"subject"`
|
|
ProvisionerName string `json:"provisionerName"`
|
|
ProvisionerType string `json:"provisionerType"`
|
|
ProvisionerID string `json:"provisionerID"`
|
|
Type Type `json:"type"`
|
|
Status status.Type `json:"status"`
|
|
}
|