Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NarrativeTable ¶
type NarrativeTable struct {
// contains filtered or unexported fields
}
NarrativeTable represents the node in the Word docx XML tree that corresponds to the justification fields for a security control.
func NewNarrativeTable ¶
func NewNarrativeTable(root xml.Node) NarrativeTable
NewNarrativeTable creates a NarrativeTable instance.
func (*NarrativeTable) Fill ¶
func (t *NarrativeTable) Fill(openControlData opencontrols.Data) (err error)
Fill inserts the OpenControl data into the table.
func (*NarrativeTable) SectionRows ¶
func (t *NarrativeTable) SectionRows() ([]xml.Node, error)
SectionRows returns the list of rows which correspond to each "part" of the narrative. Will return a single row when the narrative isn't split into parts.
type ParameterTable ¶
type ParameterTable struct {
// contains filtered or unexported fields
}
ParameterTable represents the node in the Word docx XML tree that corresponds to the justification fields for a security control.
func NewParameterTable ¶
func NewParameterTable(root xml.Node) ParameterTable
NewParameterTable creates a ParameterTable instance.
func (*ParameterTable) Fill ¶
func (t *ParameterTable) Fill(openControlData opencontrols.Data) (err error)
Fill inserts the OpenControl data into the table.
func (*ParameterTable) SectionRows ¶
func (t *ParameterTable) SectionRows() ([]xml.Node, error)
SectionRows returns the list of rows which correspond to each row containing the parameter. Will return a single row when the parameter isn't split into parts.
type SummaryTable ¶
type SummaryTable struct {
// contains filtered or unexported fields
}
SummaryTable represents the node in the Word docx XML tree that corresponds to the summary information for a security control.
func NewSummaryTable ¶
func NewSummaryTable(root xml.Node) (SummaryTable, error)
NewSummaryTable creates a SummaryTable instance.
func (*SummaryTable) ControlName ¶
func (st *SummaryTable) ControlName() (name string, err error)
ControlName - name of the control
func (*SummaryTable) Diff ¶
func (st *SummaryTable) Diff(openControlData opencontrols.Data) ([]reporter.Reporter, error)
Diff returns the list of diffs in the control table.
func (*SummaryTable) Fill ¶
func (st *SummaryTable) Fill(openControlData opencontrols.Data) (err error)
Fill inserts the OpenControl justifications into the table. Note this modifies the `table`.