micromdm

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MDM

type MDM struct {
	// URLPrefix is the prefix for MDM without the trailing slash, e.g. https://mdm.example.com
	URLPrefix string
	Token     string
	// contains filtered or unexported fields
}

MDM implements the MDM interface. The interface has a configurable cache for serial-to-UDID lookups

func New

func New(prefix, token string, size int) (*MDM, error)

New returns new MDM with the given parameters. size is the size (number of items) of the cache.

func (*MDM) InstallEnterpriseApplication

func (m *MDM) InstallEnterpriseApplication(udid string, manifest *macospkg.Manifest) error

InstallEnterpriseApplication runs the InstallEnterpriseApplication command with the given udid and manifest

func (*MDM) Transform added in v0.10.0

func (m *MDM) Transform(serial string) (string, error)

Transform returns the UDID for the given serial. If the serial is not found, attest.ErrInvalidIdentifier is returned

Jump to

Keyboard shortcuts

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