Documentation ¶
Index ¶
- Constants
- func MakeGetEnrollEndpoint(s Service) endpoint.Endpoint
- func MakeOTAEnrollEndpoint(s Service) endpoint.Endpoint
- func MakeOTAPhase2Phase3Endpoint(s Service, scepDepot depot.Depot) endpoint.Endpoint
- type Endpoints
- type HTTPHandlers
- type ProfileServicePayload
- type ProfileServicePayloadContent
- type Service
- type TopicProvider
Constants ¶
View Source
const ( EnrollmentProfileId string = "com.github.micromdm.micromdm.enroll" OTAProfileId string = "com.github.micromdm.micromdm.ota" )
Variables ¶
This section is empty.
Functions ¶
func MakeGetEnrollEndpoint ¶
func MakeOTAEnrollEndpoint ¶
Types ¶
type Endpoints ¶
type HTTPHandlers ¶
type HTTPHandlers struct { EnrollHandler http.Handler OTAEnrollHandler http.Handler // In Apple's Over-the-Air design Phases 2 and 3 happen over the same URL. // The differentiator is which certificate signed the CMS POST body. OTAPhase2Phase3Handler http.Handler }
func MakeHTTPHandlers ¶
func MakeHTTPHandlers(ctx context.Context, endpoints Endpoints, opts ...httptransport.ServerOption) HTTPHandlers
type ProfileServicePayload ¶
type ProfileServicePayload struct { *cfgprofiles.Payload PayloadContent ProfileServicePayloadContent }
type Service ¶
type Service interface { Enroll(ctx context.Context) (profile.Mobileconfig, error) OTAEnroll(ctx context.Context) (profile.Mobileconfig, error) OTAPhase2(ctx context.Context) (profile.Mobileconfig, error) OTAPhase3(ctx context.Context) (profile.Mobileconfig, error) }
func NewService ¶
func NewService(topic TopicProvider, sub pubsub.Subscriber, scepURL, scepChallenge, url, tlsCertPath, scepSubject string, profileDB profile.Store, challengeStore challenge.Store) (Service, error)
type TopicProvider ¶
Click to show internal directories.
Click to hide internal directories.