Skip to content

Go code generators for the Apple Device Management schema data

License

Notifications You must be signed in to change notification settings

jessepeterson/admgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go code generators for the Apple Device Management schema data

Package admgen and its related commands generate Go code from the Apple Device Management schema data.

Go Reference

Example

For example assuming you had the Apple repository checked out in ./device-management of this repo, you could:

$ go run ./cmd/admgencmd/... ./device-management/mdm/commands/information.device.yaml | head
// Code generated by "admgencmd"; DO NOT EDIT.
// Source: information.device.yaml
package main

import "time"

// GenericCommandPayload is the "inner" generic payload for Apple MDM commands.
type GenericCommandPayload struct {
	RequestType                  string // must be set to MDM command name
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`

About

Go code generators for the Apple Device Management schema data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages