scorecard

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scorecard

type Scorecard struct {
	Scores map[string][]TestScore
}

func New

func New() *Scorecard

New creates and initializes a new Scorecard

func (*Scorecard) Add

func (s *Scorecard) Add(ts TestScore)

Add adds a TestScore to the Scorecard

type TestScore

type TestScore struct {
	Name string

	ResourceRef struct {
		Kind      string
		Name      string
		Namespace string
		Version   string
	}

	Grade    int
	Comments []TestScoreComment
}

func (*TestScore) AddComment

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

func (*TestScore) AddMeta

func (ts *TestScore) AddMeta(typeMeta metav1.TypeMeta, objectMeta metav1.ObjectMeta)

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