standard

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	Family      string `yaml:"family" json:"family"`
	Name        string `yaml:"name" json:"name"`
	Description string `yaml:"description" json:"description"`
}

Control struct stores data on a specific security requirement Schema info: https://github.com/opencontrol/schemas#standards-documentation

func (Control) GetDescription

func (control Control) GetDescription() string

GetDescription returns the string description of the control.

func (Control) GetFamily

func (control Control) GetFamily() string

GetFamily returns which family the control belongs to.

func (Control) GetName

func (control Control) GetName() string

GetName returns the string representation of the control.

type Standard

type Standard struct {
	Name     string             `yaml:"name" json:"name"`
	Controls map[string]Control `yaml:",inline"`
}

Standard struct is a collection of security requirements Schema info: https://github.com/opencontrol/schemas#standards-documentation

func (Standard) GetControl

func (standard Standard) GetControl(controlKey string) common.Control

GetControl returns a particular control

func (Standard) GetControls

func (standard Standard) GetControls() map[string]common.Control

GetControls returns all controls associated with the standard

func (Standard) GetName

func (standard Standard) GetName() string

GetName returns the name of the standard.

func (Standard) GetSortedControls

func (standard Standard) GetSortedControls() []string

GetSortedControls returns a list of sorted controls

Jump to

Keyboard shortcuts

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