You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smallstep-certificates/authority/mgmt/admin.go

24 lines
532 B
Go

package mgmt
import (
"github.com/smallstep/certificates/authority/admin"
)
// AdminType specifies the type of the admin. e.g. SUPER_ADMIN, REGULAR
type AdminType admin.Type
var (
// AdminTypeSuper superadmin
AdminTypeSuper = admin.TypeSuper
// AdminTypeRegular regular
AdminTypeRegular = admin.TypeRegular
)
// Admin type.
type Admin admin.Admin
// ToCertificates converts an Admin to the Admin type expected by the authority.
func (adm *Admin) ToCertificates() (*admin.Admin, error) {
return (*admin.Admin)(adm), nil
}