oscal

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GemaraNamespace = "https://github.com/ossf/gemara/ns/oscal"

Variables

This section is empty.

Functions

func GetTime

func GetTime(timeStr string) *time.Time

GetTime parses a RFC3339 time string. Returns pointer to time if valid, else nil.

func GetTimeWithFallback

func GetTimeWithFallback(timeStr string, fallback time.Time) time.Time

func NilIfEmpty

func NilIfEmpty[T any](slice []T) *[]T

NilIfEmpty returns a pointer to the slice, or nil if empty.

func NormalizeControl

func NormalizeControl(controlId string, subPart bool) string

NormalizeControl alters the given control id to conform to OSCAL constraints. If the control is a subpart, the subpart identifier is extracted and returned.

func Validate

func Validate(oscalModels oscal.OscalModels) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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