diff

package
v1.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDiff

func NewCmdDiff(out io.Writer) *cobra.Command

NewCmdDiff provides a gap diff analysis.

func RunDiff

func RunDiff(out io.Writer, cmd *cobra.Command, args []string) error

RunDiff runs diff when specified in cli

Types

type Config

type Config struct {
	Certification  string
	OpencontrolDir string
}

Config contains the settings for how to compute the gap analysis

type Inventory

type Inventory struct {
	common.Workspace

	MissingControlList map[string]common.Control
	// contains filtered or unexported fields
}

Inventory maintains the inventory of all the controls within a given workspace.

func ComputeGapAnalysis

func ComputeGapAnalysis(config Config) (Inventory, []error)

ComputeGapAnalysis will compute the gap analysis and return the inventory of the controls for the opencontrol workspace if successful. Otherwise, it will return a list of error messages. TODO: fix the error return to return of type error. This was used because existing code returned that type TODO: e.g. GetCertification

Jump to

Keyboard shortcuts

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