control

package
v0.0.0-...-3ca5dd0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: CC0-1.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiff

func NewDiff(controlName, fieldType string, firstField, secondField field) reporter.Reporter

NewDiff creates a new collection of information that can report diff info for a control.

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`.

Jump to

Keyboard shortcuts

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