Documentation ¶
Index ¶
- Variables
- type Config
- type FileStore
- type MDM
- func (m *MDM) Command(cmd map[string]interface{}) error
- func (m *MDM) Deliver(serial string) error
- func (m *MDM) InstallEnterpriseApplication(udid string, manifest *macospkg.Manifest) error
- func (m *MDM) InstallProfile(udid string, profile *profile.TopLevelProfile) error
- func (m *MDM) SerialToUDID(serial string) (string, error)
- type Payload
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("serial not found")
ErrNotFound indicates the serial number was not found
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MDMPrefix string MDMToken string SigningIdentity string CacheSize int CacheTTL time.Duration CachePrefix string *profile.Config }
Config is configuration for an MDM
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
FileStore implements FileStore completely in memory and uses an LRU cache to limit memory usage
func NewFileStore ¶
NewFileStore returns a new FileStore with the given cache size (item count) and item ttl
type MDM ¶
MDM is a MicroMDM service
func (*MDM) Deliver ¶
Deliver generates the necessary profile and certificates and delivers them to the device with serial
func (*MDM) InstallEnterpriseApplication ¶
InstallEnterpriseApplication runs the InstallEnterpriseApplication command with the given udid and manifest
func (*MDM) InstallProfile ¶
func (m *MDM) InstallProfile(udid string, profile *profile.TopLevelProfile) error
InstallProfile runs the InstallProfile command with the given udid and profile
type Payload ¶
Payload is the script payload containing CA and localhost key pairs
func GeneratePKI ¶
GeneratePKI generates and returns a certificate root profile and PEM encoded CA and localhost key pairs with the given CA validity in years