scorecard

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grade added in v0.3.0

type Grade int
const (
	GradeCritical Grade = 1
	GradeWarning  Grade = 5
	GradeAlmostOK Grade = 7
	GradeAllOK    Grade = 10
)

func (Grade) String added in v1.2.0

func (g Grade) String() string

type Scorecard

type Scorecard map[string]*ScoredObject

func New

func New() Scorecard

New creates and initializes a new Scorecard

func (Scorecard) AnyBelowOrEqualToGrade added in v1.0.0

func (s Scorecard) AnyBelowOrEqualToGrade(threshold Grade) bool

func (Scorecard) NewObject added in v0.6.0

func (s Scorecard) NewObject(typeMeta metav1.TypeMeta, objectMeta metav1.ObjectMeta) *ScoredObject

type ScoredObject added in v0.6.0

type ScoredObject struct {
	TypeMeta   metav1.TypeMeta
	ObjectMeta metav1.ObjectMeta
	Checks     []TestScore
	// contains filtered or unexported fields
}

func (*ScoredObject) Add added in v0.6.0

func (so *ScoredObject) Add(ts TestScore, check ks.Check)

func (ScoredObject) AnyBelowOrEqualToGrade added in v1.2.0

func (s ScoredObject) AnyBelowOrEqualToGrade(threshold Grade) bool

func (ScoredObject) HumanFriendlyRef added in v0.6.0

func (so ScoredObject) HumanFriendlyRef() string

type TestScore

type TestScore struct {
	Check    ks.Check
	Grade    Grade
	Skipped  bool
	Comments []TestScoreComment
}

func (*TestScore) AddComment

func (ts *TestScore) AddComment(path, summary, description string)

type TestScoreComment

type TestScoreComment struct {
	Path        string
	Summary     string
	Description string
}

Jump to

Keyboard shortcuts

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