oscal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OscaleNamespace = "http://ibm.github.io/compliance-trestle/schemas/oscal/cd"
)

Variables

This section is empty.

Functions

func IntersectProfileWithCD

func IntersectProfileWithCD(compDef cd.ComponentDefinition, profile oscal.Profile) cd.ComponentDefinition

func MakeInternalCompliance

func MakeInternalCompliance(catalog oscal.Catalog, profile oscal.Profile, cd cd.ComponentDefinition) internalcompliance.Compliance

Types

type ComponentObject

type ComponentObject struct {
	ComponentTitle      string
	RuleObjects         []RuleObject
	ControlImpleObjects []ControlImpleObject
}

func ParseComponentDefinition

func ParseComponentDefinition(cd ComponentDefinitionRoot) []ComponentObject

type ControlImpleObject

type ControlImpleObject struct {
	SetParameters  []SetParameter
	ControlObjects []ControlObject
}

type ControlObject

type ControlObject struct {
	ControlId string
	RuleIds   []string
}

type OscalCategory

type OscalCategory struct {
	Id         string
	ControlIds []string
}

type OscalStandard

type OscalStandard struct {
	Id         string
	Categories []OscalCategory
}

type RuleObject

type RuleObject struct {
	RuleId               string
	RuleDescription      string
	PolicyId             string
	ParameterId          string
	ParameterDescription string
}

func FindRulesByRuleId

func FindRulesByRuleId(ruleId string, rules []RuleObject) (RuleObject, bool)

func GetComponentWideRules

func GetComponentWideRules(component Component) []RuleObject

type TrestleComponentProps

type TrestleComponentProps struct {
	ComponentTitle       string
	ComponentDescription string
	ComponentType        string
}

type TrestleCsvRow

type TrestleCsvRow struct {
	TrestleComponentProps
	ControlIdList        []string
	RuleId               string
	RuleDescription      string
	ParameterId          string
	ParameterDescription string
	ProfileSource        string
	ProfileDescription   string
	Namespace            string
}

func (*TrestleCsvRow) Header

func (t *TrestleCsvRow) Header() []string

func (*TrestleCsvRow) ToStringList

func (t *TrestleCsvRow) ToStringList() []string

Jump to

Keyboard shortcuts

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