nanomdm

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 13 Imported by: 1

Documentation

Overview

Pacakge nanomdm is an MDM service.

Index

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

func WithLogger(logger log.Logger) Option

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

func (s *Service) Authenticate(r *mdm.Request, message *mdm.Authenticate) error

Authenticate Check-in message implementation.

func (*Service) CheckOut

func (s *Service) CheckOut(r *mdm.Request, message *mdm.CheckOut) error

CheckOut 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 (s *Service) SetBootstrapToken(r *mdm.Request, message *mdm.SetBootstrapToken) error

func (*Service) TokenUpdate

func (s *Service) TokenUpdate(r *mdm.Request, message *mdm.TokenUpdate) error

TokenUpdate Check-in message implementation.

func (*Service) UserAuthenticate

func (s *Service) UserAuthenticate(r *mdm.Request, message *mdm.UserAuthenticate) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL