Documentation ¶
Overview ¶
Pacakge nanomdm is an MDM service.
Index ¶
- type DeclarativeManagementHTTPCaller
- type Option
- type Service
- func (s *Service) Authenticate(r *mdm.Request, message *mdm.Authenticate) error
- func (s *Service) CheckOut(r *mdm.Request, message *mdm.CheckOut) error
- func (s *Service) CommandAndReportResults(r *mdm.Request, results *mdm.CommandResults) (*mdm.Command, error)
- func (s *Service) DeclarativeManagement(r *mdm.Request, message *mdm.DeclarativeManagement) ([]byte, error)
- func (s *Service) GetBootstrapToken(r *mdm.Request, message *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error)
- func (s *Service) SetBootstrapToken(r *mdm.Request, message *mdm.SetBootstrapToken) error
- func (s *Service) TokenUpdate(r *mdm.Request, message *mdm.TokenUpdate) error
- func (s *Service) UserAuthenticate(r *mdm.Request, message *mdm.UserAuthenticate) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeclarativeManagementHTTPCaller ¶ added in v0.3.0
type DeclarativeManagementHTTPCaller struct {
// contains filtered or unexported fields
}
func NewDeclarativeManagementHTTPCaller ¶ added in v0.3.0
func NewDeclarativeManagementHTTPCaller(urlPrefix string) *DeclarativeManagementHTTPCaller
NewDeclarativeManagementHTTPCaller creates a new DeclarativeManagementHTTPCaller
func (*DeclarativeManagementHTTPCaller) DeclarativeManagement ¶ added in v0.3.0
func (c *DeclarativeManagementHTTPCaller) DeclarativeManagement(r *mdm.Request, message *mdm.DeclarativeManagement) ([]byte, error)
DeclarativeManagement calls out to an HTTP URL to handle the actual Declarative Management protocol
type Option ¶
type Option func(*Service)
func WithDeclarativeManagement ¶ added in v0.3.0
func WithDeclarativeManagement(dm service.DeclarativeManagement) Option
func WithLogger ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the main NanoMDM service which dispatches to storage.
func New ¶
func New(store storage.ServiceStore, opts ...Option) *Service
New returns a new NanoMDM main service.
func (*Service) Authenticate ¶
Authenticate Check-in message implementation.
func (*Service) CommandAndReportResults ¶
func (s *Service) CommandAndReportResults(r *mdm.Request, results *mdm.CommandResults) (*mdm.Command, error)
CommandAndReportResults command report and next-command request implementation.
func (*Service) DeclarativeManagement ¶ added in v0.3.0
func (s *Service) DeclarativeManagement(r *mdm.Request, message *mdm.DeclarativeManagement) ([]byte, error)
DeclarativeManagement Check-in message implementation. Calls out to the service's DM handler (if configured).
func (*Service) GetBootstrapToken ¶
func (s *Service) GetBootstrapToken(r *mdm.Request, message *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error)
func (*Service) SetBootstrapToken ¶
func (*Service) TokenUpdate ¶
TokenUpdate Check-in message implementation.
func (*Service) UserAuthenticate ¶
Click to show internal directories.
Click to hide internal directories.