Documentation
¶
Overview ¶
Package security orchestrates parsing of the three Jamf Security Cloud OpenAPI specs (Risk, Device Lifecycle, Shared Signals & Events) and code generation for their commands. Generated commands live under internal/commands/security/generated/, wired under the hand-written "security" product command (internal/commands/security.go) alongside the hand-written `security setup`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(resources []*parser.Resource, scopeOf map[string]string, outputDir string) ([]string, error)
Generate emits one Go file per resource into outputDir. Returns the list of generated file paths.
func LoadResources ¶
LoadResources walks specsDir for *.json Security Cloud spec files, parses each via parser.ParseSecuritySpec, and returns the combined resources plus a resource-name → scope ("Risk"/"Lifecycle"/"SSE") map for the emitter, alongside the sorted list of spec files actually consumed (so the provenance writer doesn't have to re-glob and risk drifting from what was parsed).
Types ¶
This section is empty.