Help us shape the future of Go! Take the 2026 Go Developer Survey

security

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 11 Imported by: 0

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

func LoadResources(specsDir string) ([]*parser.Resource, map[string]string, []string, error)

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.

Jump to

Keyboard shortcuts

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