Documentation ¶
Overview ¶
Package checks contains documentation about checks.
Package checks contains documentation about checks.
Index ¶
- type CheckDoc
- type CheckDocImpl
- func (c *CheckDocImpl) GetDescription() string
- func (c *CheckDocImpl) GetDocumentationURL(commitish string) string
- func (c *CheckDocImpl) GetName() string
- func (c *CheckDocImpl) GetRemediation() []string
- func (c *CheckDocImpl) GetRisk() string
- func (c *CheckDocImpl) GetShort() string
- func (c *CheckDocImpl) GetSupportedRepoTypes() []string
- func (c *CheckDocImpl) GetTags() []string
- type Doc
- type DocImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckDoc ¶
type CheckDoc interface { GetName() string GetRisk() string GetShort() string GetDescription() string GetRemediation() []string GetTags() []string GetSupportedRepoTypes() []string GetDocumentationURL(commitish string) string }
CheckDoc defines the documentation interface for a check.
type CheckDocImpl ¶
type CheckDocImpl struct {
// contains filtered or unexported fields
}
CheckDocImpl implementts `CheckDoc` interface and stores documentation about a check.
func (*CheckDocImpl) GetDescription ¶
func (c *CheckDocImpl) GetDescription() string
GetDescription returns the full description of the check.
func (*CheckDocImpl) GetDocumentationURL ¶
func (c *CheckDocImpl) GetDocumentationURL(commitish string) string
GetDocumentationURL returns the URL for the documentation of check `name`.
func (*CheckDocImpl) GetName ¶
func (c *CheckDocImpl) GetName() string
GetName returns the name of the check.
func (*CheckDocImpl) GetRemediation ¶
func (c *CheckDocImpl) GetRemediation() []string
GetRemediation returns the remediation of the check.
func (*CheckDocImpl) GetRisk ¶
func (c *CheckDocImpl) GetRisk() string
GetRisk returns the risk of the check.
func (*CheckDocImpl) GetShort ¶
func (c *CheckDocImpl) GetShort() string
GetShort returns the short description of the check.
func (*CheckDocImpl) GetSupportedRepoTypes ¶ added in v3.2.1
func (c *CheckDocImpl) GetSupportedRepoTypes() []string
GetSupportedRepoTypes returns the list of repo types the check supports.
func (*CheckDocImpl) GetTags ¶
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.
type DocImpl ¶
type DocImpl struct {
// contains filtered or unexported fields
}
DocImpl implements `Doc` interface and contains checks' documentation.
func (DocImpl) CheckExists ¶
CheckExists returns whether the check `name` exists or not.