agent

package
v0.0.0-...-2921379 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enroll

func Enroll(srv *mattrax.Server) http.HandlerFunc

Enroll handles the device enrollment.

func Mount

func Mount(srv *mattrax.Server)

Mount initialise the MDM server

func Sync

func Sync(srv *mattrax.Server) http.HandlerFunc

Sync handles the device management sync.

Types

type EnrollRequest

type EnrollRequest struct {
	UDID               string                      `json:"udid"`
	Hostname           string                      `json:"hostname"`
	CertificateRequest []byte                      `json:"certificateRequest"`
	User               EnrollRequestAuthentication `json:"user"`
}

EnrollRequest is the request for a device to enroll

type EnrollRequestAuthentication

type EnrollRequestAuthentication struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

EnrollRequestAuthentication is the authentication information for enrollment request

type EnrollResponse

type EnrollResponse struct {
	Server          string `json:"server"`
	RootCertificate string `json:"rootCertificate"`
	Certificate     string `json:"certificate"`
}

EnrollResponse is the response with the device enrollment information

Jump to

Keyboard shortcuts

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