common

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2016 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoveredBy

type CoveredBy struct {
	ComponentKey    string `yaml:"component_key" json:"component_key"`
	VerificationKey string `yaml:"verification_key" json:"verification_key"`
}

CoveredBy struct is the pointing mechanism for for referring to VerificationReferences in the documentation. This struct is a one-to-one mapping of `covered_by` in the component.yaml schema https://github.com/opencontrol/schemas#component-yaml

type CoveredByList

type CoveredByList []CoveredBy

CoveredByList a slice of type CoveredBy

type GeneralReference

type GeneralReference struct {
	Name string `yaml:"name" json:"name"`
	Path string `yaml:"path" json:"path"`
	Type string `yaml:"type" json:"type"`
}

GeneralReference struct contains data for the name and path of a compliance reference. This struct is a one-to-one mapping of `references` in the component.yaml schema https://github.com/opencontrol/schemas#component-yaml

type GeneralReferences

type GeneralReferences []GeneralReference

GeneralReferences a slice of type GeneralReference

func (GeneralReferences) Len

func (slice GeneralReferences) Len() int

Len returns the length of the GeneralReferences slice

func (GeneralReferences) Less

func (slice GeneralReferences) Less(i, j int) bool

Less returns true if a GeneralReference is less than another reference

func (GeneralReferences) Swap

func (slice GeneralReferences) Swap(i, j int)

Swap swaps the two GeneralReferences

type VerificationReference

type VerificationReference struct {
	GeneralReference `yaml:",inline"`
	Key              string `yaml:"key" json:"key"`
}

VerificationReference struct is a general reference that verifies a specific control, it can be pointed to in the control documentation. This struct is a one-to-one mapping of `verifications` in the component.yaml schema https://github.com/opencontrol/schemas#component-yaml

type VerificationReferences

type VerificationReferences []VerificationReference

VerificationReferences a slice of type VerificationReference

func (VerificationReferences) Get

Get returns a VerificationReference of the given key

func (VerificationReferences) Len

func (slice VerificationReferences) Len() int

Len returns the length of the VerificationReference slice

func (VerificationReferences) Less

func (slice VerificationReferences) Less(i, j int) bool

Less returns true if a VerificationReference is less than another reference

func (VerificationReferences) Swap

func (slice VerificationReferences) Swap(i, j int)

Swap swaps the two VerificationReferences

Jump to

Keyboard shortcuts

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