Directories
¶
| Path | Synopsis |
|---|---|
|
tools/download_progress
Package download_progress provides a terminal progress bar for streaming file downloads.
|
Package download_progress provides a terminal progress bar for streaming file downloads. |
|
Package device_management is a generated Go SDK for Apple MDM and Declarative Device Management (DDM), built from Apple's canonical schema repo (github.com/apple/device-management).
|
Package device_management is a generated Go SDK for Apple MDM and Declarative Device Management (DDM), built from Apple's canonical schema repo (github.com/apple/device-management). |
|
cmd/fetchspec
command
Command fetchspec is the acquisition stage of the device-management SDK pipeline.
|
Command fetchspec is the acquisition stage of the device-management SDK pipeline. |
|
cmd/gendm
command
Command gendm is the codegen stage of the device-management SDK pipeline: it reads the committed spec snapshots (metadata/specs) and emits the generated payload structs, validation and registries under mdm/ and ddm/.
|
Command gendm is the codegen stage of the device-management SDK pipeline: it reads the committed spec snapshots (metadata/specs) and emits the generated payload structs, validation and registries under mdm/ and ddm/. |
|
cmd/specdiff
command
Command specdiff renders a semantic, human-readable markdown report of what changed between two spec snapshot trees — the review surface for Apple's moving schema target.
|
Command specdiff renders a semantic, human-readable markdown report of what changed between two spec snapshot trees — the review surface for Apple's moving schema target. |
|
ddm
Package ddm turns validated, generated declaration structs into syntactically correct Declarative Device Management JSON.
|
Package ddm turns validated, generated declaration structs into syntactically correct Declarative Device Management JSON. |
|
internal/codegen
Package codegen orchestrates the offline device-management code generator: it loads the committed spec snapshots, clears previously generated output (identified by the DO-NOT-EDIT header), builds view models (build), renders them through the template firewall (render) and assembles files (fileasm).
|
Package codegen orchestrates the offline device-management code generator: it loads the committed spec snapshots, clears previously generated output (identified by the DO-NOT-EDIT header), builds view models (build), renders them through the template firewall (render) and assembles files (fileasm). |
|
internal/codegen/build
Package build flattens parsed specs into fully-resolved view models.
|
Package build flattens parsed specs into fully-resolved view models. |
|
internal/codegen/fileasm
Package fileasm is the single choke-point for generated-file scaffolding: the DO-NOT-EDIT header, package clause, grouped imports and gofmt.
|
Package fileasm is the single choke-point for generated-file scaffolding: the DO-NOT-EDIT header, package clause, grouped imports and gofmt. |
|
internal/codegen/naming
Package naming holds the spec-to-Go identifier rules shared by every emitter.
|
Package naming holds the spec-to-Go identifier rules shared by every emitter. |
|
internal/codegen/render
Package render is the firewall between view models and Go source: view models go in, source fragments come out, and the only mechanism is text/template execution over the embedded .tmpl files.
|
Package render is the firewall between view models and Go source: view models go in, source fragments come out, and the only mechanism is text/template execution over the embedded .tmpl files. |
|
internal/codegen/view
Package view defines the pure-data models the templates render.
|
Package view defines the pure-data models the templates render. |
|
internal/plistenc
Package plistenc is a deterministic XML property-list encoder for the device-management SDK.
|
Package plistenc is a deterministic XML property-list encoder for the device-management SDK. |
|
internal/spec
Package spec models Apple's device-management schema files (the YAML specs in github.com/apple/device-management) and parses them into the normalized form committed as JSON snapshots under metadata/specs.
|
Package spec models Apple's device-management schema files (the YAML specs in github.com/apple/device-management) and parses them into the normalized form committed as JSON snapshots under metadata/specs. |
|
mdm
Package mdm turns validated, generated payload structs into syntactically correct MDM artifacts: command plists and configuration profiles (.mobileconfig).
|
Package mdm turns validated, generated payload structs into syntactically correct MDM artifacts: command plists and configuration profiles (.mobileconfig). |
|
ptr
Package ptr provides helpers for the SDK's optional fields.
|
Package ptr provides helpers for the SDK's optional fields. |
|
validate
Package validate implements the value checks Apple's device-management schema declares on payload keys: closed value sets (rangelist), numeric bounds (range), regular-expression formats, array cardinality (repetition) and string subtypes (<url>, <hostname>, <email>).
|
Package validate implements the value checks Apple's device-management schema declares on payload keys: closed value sets (rangelist), numeric bounds (range), regular-expression formats, array cardinality (repetition) and string subtypes (<url>, <hostname>, <email>). |
|
examples
|
|
|
apple_update_cdn/cdn/ParseURL
command
|
|
|
device_management/commands/lock_device
command
Build a DeviceLock MDM command plist from typed, spec-validated values.
|
Build a DeviceLock MDM command plist from typed, spec-validated values. |
|
device_management/ddm/activation_set
command
Build a DDM activation that ties a set of configurations together — the complete declaration set a DDM server would serve for a passcode policy.
|
Build a DDM activation that ties a set of configurations together — the complete declaration set a DDM server would serve for a passcode policy. |
|
device_management/ddm/passcode_declaration
command
Build a DDM passcode-policy declaration as JSON.
|
Build a DDM passcode-policy declaration as JSON. |
|
device_management/profiles/build_mobileconfig
command
Build a configuration profile (.mobileconfig) with a restrictions payload.
|
Build a configuration profile (.mobileconfig) with a restrictions payload. |
|
itunes_search/basic_search
command
|
|
|
itunes_search/debug_json
command
|
|
|
itunes_search/lookup_amg_artist
command
|
|
|
itunes_search/lookup_by_id
command
|
|
|
itunes_search/lookup_by_isbn
command
|
|
|
itunes_search/lookup_by_upc
command
|
|
|
itunes_search/search_movies
command
|
|
|
itunes_search/search_podcasts
command
|
|
|
itunes_search/search_software
command
|
|
|
recipes
|
|
Click to show internal directories.
Click to hide internal directories.