Documentation
¶
Index ¶
- func FormatOscalVersion(version string) (formattedVersion string)
- func GetLatestSupportedVersion() string
- func GetOscalVersionFromMap(model map[string]interface{}) (version string, err error)
- func GetTimestamp() time.Time
- func IsValidOscalVersion(version string) error
- func ReplaceOscalVersionInMap(model map[string]interface{}, version string) (upgradedModel map[string]interface{}, err error)
- func UpdateLastModified(metadata map[string]interface{})
- func VersionWarning(version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatOscalVersion ¶
FormatOscalVersion takes a version string and returns a formatted version string
func GetLatestSupportedVersion ¶
func GetLatestSupportedVersion() string
GetLatestSupportedVersion returns the latest version of the OSCAL schema supported by the go-oscal release
func GetOscalVersionFromMap ¶
GetOscalVersionFromMap returns formatted OSCAL version if valid version is passed, returns error if not.
func IsValidOscalVersion ¶
IsValidOscalVersion returns true if the version is supported, false if not.
func ReplaceOscalVersionInMap ¶
func ReplaceOscalVersionInMap(model map[string]interface{}, version string) (upgradedModel map[string]interface{}, err error)
ReplaceOscalVersionInMap returns the model with the oscal version replaced
func UpdateLastModified ¶
func UpdateLastModified(metadata map[string]interface{})
UpdateLastModified updates the last-modified field in the metadata
func VersionWarning ¶
VersionWarning returns an warning as an error if there are any known issues with the current version or it isn't the latest.
Types ¶
This section is empty.