test

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomCertificateSerialNumber

func GenerateRandomCertificateSerialNumber() (*big.Int, error)

func PlistReader

func PlistReader(v interface{}) (io.Reader, error)

PlistReader encodes v to XML Plist.

func SimpleSelfSignedRSAKeypair

func SimpleSelfSignedRSAKeypair(cn string, days int) (key *rsa.PrivateKey, cert *x509.Certificate, err error)

Types

type NopService

type NopService struct{}

func (*NopService) Authenticate

func (s *NopService) Authenticate(r *mdm.Request, m *mdm.Authenticate) error

func (*NopService) CheckOut

func (s *NopService) CheckOut(r *mdm.Request, m *mdm.CheckOut) error

func (*NopService) CommandAndReportResults

func (s *NopService) CommandAndReportResults(r *mdm.Request, results *mdm.CommandResults) (*mdm.Command, error)

func (*NopService) DeclarativeManagement

func (s *NopService) DeclarativeManagement(r *mdm.Request, m *mdm.DeclarativeManagement) ([]byte, error)

func (*NopService) GetBootstrapToken

func (s *NopService) GetBootstrapToken(r *mdm.Request, m *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error)

func (*NopService) GetToken

func (s *NopService) GetToken(r *mdm.Request, m *mdm.GetToken) (*mdm.GetTokenResponse, error)

func (*NopService) SetBootstrapToken

func (s *NopService) SetBootstrapToken(r *mdm.Request, m *mdm.SetBootstrapToken) error

func (*NopService) TokenUpdate

func (s *NopService) TokenUpdate(r *mdm.Request, m *mdm.TokenUpdate) error

func (*NopService) UserAuthenticate

func (s *NopService) UserAuthenticate(r *mdm.Request, m *mdm.UserAuthenticate) ([]byte, error)

Directories

Path Synopsis
Package protocol implements primitives and interfaces of the base Apple MDM protocol.
Package protocol implements primitives and interfaces of the base Apple MDM protocol.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳