Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnrollUrl, _ = url.Parse("/edge/client/v1/enroll")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ZtAPI string `json:"ztAPI"` ID identity.Config `json:"id"` ConfigTypes []string `json:"configTypes"` CaPool *x509.CertPool AuthToken string `json:"-"` Authenticator rest_util.Authenticator }
func NewFromFile ¶
type EnrollmentClaims ¶
type EnrollmentClaims struct { EnrollmentMethod string `json:"em"` SignatureCert *x509.Certificate `json:"-"` jwt.StandardClaims }
func (*EnrollmentClaims) EnrolmentUrl ¶
func (t *EnrollmentClaims) EnrolmentUrl() string
func (*EnrollmentClaims) ToMapClaims ¶
func (t *EnrollmentClaims) ToMapClaims() (jwt.MapClaims, error)
func (EnrollmentClaims) Valid ¶
func (t EnrollmentClaims) Valid() error
Click to show internal directories.
Click to hide internal directories.