checks

package
v2.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package checks contains documentation about checks.

Package checks contains documentation about checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckDoc added in v2.2.8

type CheckDoc interface {
	GetName() string
	GetRisk() string
	GetShort() string
	GetDescription() string
	GetRemediation() []string
	GetTags() []string
	GetDocumentationURL(commitish string) string
}

CheckDoc defines the documentation interface for a check.

type CheckDocImpl added in v2.2.8

type CheckDocImpl struct {
	// contains filtered or unexported fields
}

CheckDocImpl implementts `CheckDoc` interface and stores documentation about a check.

func (*CheckDocImpl) GetDescription added in v2.2.8

func (c *CheckDocImpl) GetDescription() string

GetDescription returns the full description of the check.

func (*CheckDocImpl) GetDocumentationURL added in v2.2.8

func (c *CheckDocImpl) GetDocumentationURL(commitish string) string

GetDocumentationURL returns the URL for the documentation of check `name`.

func (*CheckDocImpl) GetName added in v2.2.8

func (c *CheckDocImpl) GetName() string

GetName returns the name of the check.

func (*CheckDocImpl) GetRemediation added in v2.2.8

func (c *CheckDocImpl) GetRemediation() []string

GetRemediation returns the remediation of the check.

func (*CheckDocImpl) GetRisk added in v2.2.8

func (c *CheckDocImpl) GetRisk() string

GetRisk returns the risk of the check.

func (*CheckDocImpl) GetShort added in v2.2.8

func (c *CheckDocImpl) GetShort() string

GetShort returns the short description of the check.

func (*CheckDocImpl) GetTags added in v2.2.8

func (c *CheckDocImpl) GetTags() []string

GetTags returns the list of tags or the check.

type Doc

type Doc interface {
	GetCheck(name string) (CheckDoc, error)
	GetChecks() []CheckDoc
	CheckExists(name string) bool
}

Doc defines the documentation interface.

func Read

func Read() (Doc, error)

Read loads the checks' documentation.

type DocImpl added in v2.2.8

type DocImpl struct {
	// contains filtered or unexported fields
}

DocImpl implements `Doc` interface and contains checks' documentation.

func (DocImpl) CheckExists added in v2.2.8

func (d DocImpl) CheckExists(name string) bool

CheckExists returns whether the check `name` exists or not.

func (*DocImpl) GetCheck added in v2.2.8

func (d *DocImpl) GetCheck(name string) (CheckDoc, error)

GetCheck returns the information for check `name`.

func (*DocImpl) GetChecks added in v2.2.8

func (d *DocImpl) GetChecks() []CheckDoc

GetChecks returns the information for check `name`.

Directories

Path Synopsis
Package internal contains internal functions for reading input YAML file.
Package internal contains internal functions for reading input YAML file.

Jump to

Keyboard shortcuts

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