Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 v1.3.0 Jun 10, 2018 Changes in this version + const EnrollmentProfileId + const OTAProfileId + func MakeGetEnrollEndpoint(s Service) endpoint.Endpoint + func MakeOTAEnrollEndpoint(s Service) endpoint.Endpoint + func MakeOTAPhase2Phase3Endpoint(s Service, scepDepot *boltdepot.Depot) endpoint.Endpoint + type AccessRights int + const AppManagement + const ApplicationInspection + const DeviceErase + const DeviceInformationQuery + const DeviceLock + const NetworkInformationQuery + const ProfileInspection + const ProfileInstallAndRemoval + const ProvisioningProfileInspection + const ProvisioningProfileInstallAndRemoval + const RestrictionQuery + const SecurityQuery + const SettingsManipulation + type Endpoints struct + GetEnrollEndpoint endpoint.Endpoint + OTAEnrollEndpoint endpoint.Endpoint + OTAPhase2Phase3Endpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, scepDepot *boltdepot.Depot) Endpoints + type HTTPHandlers struct + EnrollHandler http.Handler + OTAEnrollHandler http.Handler + OTAPhase2Phase3Handler http.Handler + func MakeHTTPHandlers(ctx context.Context, endpoints Endpoints, opts ...httptransport.ServerOption) HTTPHandlers + type MDMPayloadContent struct + AccessRights AccessRights + CheckInURL string + CheckOutWhenRemoved bool + IdentityCertificateUUID string + ServerCapabilities []string + ServerURL string + SignMessage bool + Topic string + type Payload struct + PayloadContent interface{} + PayloadDescription string + PayloadDisplayName string + PayloadIdentifier string + PayloadOrganization string + PayloadScope string + PayloadType string + PayloadUUID string + PayloadVersion int + func NewPayload(payloadType string) *Payload + type Profile struct + ConsentText map[string]string + DurationUntilRemoval float32 + PayloadContent []interface{} + PayloadDescription string + PayloadDisplayName string + PayloadExpirationDate *time.Time + PayloadIdentifier string + PayloadOrganization string + PayloadRemovalDisallowed bool + PayloadScope string + PayloadType string + PayloadUUID string + PayloadVersion int + RemovalDate *time.Time + func NewProfile() *Profile + type ProfileServicePayload struct + Challenge string + DeviceAttributes []string + URL string + type SCEPPayloadContent struct + CAFingerprint []byte + Challenge string + KeyType string + KeyUsage int + Keysize int + Name string + Subject [][][]string + URL string + type Service interface + Enroll func(ctx context.Context) (profile.Mobileconfig, error) + OTAEnroll func(ctx context.Context) (profile.Mobileconfig, error) + OTAPhase2 func(ctx context.Context) (profile.Mobileconfig, error) + OTAPhase3 func(ctx context.Context) (profile.Mobileconfig, error) + func NewService(topic TopicProvider, sub pubsub.Subscriber, ...) (Service, error) + type TopicProvider interface + PushTopic func() (string, error)