certificates/authority/admin/admin.go

26 lines
695 B
Go
Raw Normal View History

2021-05-18 04:07:25 +00:00
package admin
2021-05-18 23:50:54 +00:00
import "github.com/smallstep/certificates/authority/status"
// Type specifies the type of the admin. e.g. SUPER_ADMIN, REGULAR
2021-05-18 04:07:25 +00:00
type Type string
2021-05-18 23:50:54 +00:00
var (
// TypeSuper superadmin
TypeSuper = Type("SUPER_ADMIN")
// TypeRegular regular
TypeRegular = Type("REGULAR")
)
2021-05-18 04:07:25 +00:00
// Admin type.
type Admin struct {
2021-05-18 23:50:54 +00:00
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"`
2021-05-18 04:07:25 +00:00
}