Documentation
¶
Overview ¶
Package service defines an MDM service
Index ¶
- func CheckinRequest(svc Checkin, r *mdm.Request, bodyBytes []byte) ([]byte, error)
- func CommandAndReportResultsRequest(svc CommandAndReportResults, r *mdm.Request, bodyBytes []byte) ([]byte, error)
- type Checkin
- type CheckinAndCommandService
- type CommandAndReportResults
- type DeclarativeManagement
- type HTTPStatusError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckinRequest ¶
CheckinRequest is a simple adapter that takes the raw check-in bodyBytes and dispatches to the respective check-in method on svc.
func CommandAndReportResultsRequest ¶
func CommandAndReportResultsRequest(svc CommandAndReportResults, r *mdm.Request, bodyBytes []byte) ([]byte, error)
CommandAndReportResultsRequest is a simple adapter that takes the raw command result report bodyBytes, dispatches to svc, and returns the response.
Types ¶
type Checkin ¶
type Checkin interface { Authenticate(*mdm.Request, *mdm.Authenticate) error TokenUpdate(*mdm.Request, *mdm.TokenUpdate) error CheckOut(*mdm.Request, *mdm.CheckOut) error SetBootstrapToken(*mdm.Request, *mdm.SetBootstrapToken) error GetBootstrapToken(*mdm.Request, *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error) UserAuthenticate(*mdm.Request, *mdm.UserAuthenticate) ([]byte, error) DeclarativeManagement }
Checkin represents the various check-in requests. See https://developer.apple.com/documentation/devicemanagement/check-in
type CheckinAndCommandService ¶
type CheckinAndCommandService interface { Checkin CommandAndReportResults }
CheckinAndCommandService faciliates check-ins and commands.
type CommandAndReportResults ¶
type CommandAndReportResults interface {
CommandAndReportResults(*mdm.Request, *mdm.CommandResults) (*mdm.Command, error)
}
CommandAndReportResults represents the command report and next-command request. See https://developer.apple.com/documentation/devicemanagement/implementing_device_management/sending_mdm_commands_to_a_device
type DeclarativeManagement ¶ added in v0.3.0
type DeclarativeManagement interface {
DeclarativeManagement(*mdm.Request, *mdm.DeclarativeManagement) ([]byte, error)
}
DeclarativeManagement is the interface for handling the Apple Declarative Management protocol via MDM "v1."
type HTTPStatusError ¶
func NewHTTPStatusError ¶
func NewHTTPStatusError(status int, err error) *HTTPStatusError
func (*HTTPStatusError) Error ¶
func (e *HTTPStatusError) Error() string
func (*HTTPStatusError) Unwrap ¶
func (e *HTTPStatusError) Unwrap() error
Directories
¶
Path | Synopsis |
---|---|
Package certauth
|
Package certauth |
Pacakge dump is a NanoMDM service that dumps raw responses
|
Pacakge dump is a NanoMDM service that dumps raw responses |
Package microwebhook provides a MicroMDM-emulating webhook
|
Package microwebhook provides a MicroMDM-emulating webhook |
Package multi contains a multi-service dispatcher.
|
Package multi contains a multi-service dispatcher. |
Pacakge nanomdm is an MDM service.
|
Pacakge nanomdm is an MDM service. |