Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{ RefreshInterval: 5 * time.Minute, OnServiceUpdate: nil, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ZtAPI string `json:"ztAPI"` ID identity.IdentityConfig `json:"id"` ConfigTypes []string `json:"configTypes"` }
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
type ServiceEventType ¶ added in v0.13.0
type ServiceEventType string
const ( ServiceAdded ServiceEventType = "Added" ServiceRemoved ServiceEventType = "Removed" ServiceChanged ServiceEventType = "Changed" )
Click to show internal directories.
Click to hide internal directories.