Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetResult ¶
GetResult retrieves a ScorecardResult for a given repository.
`repoPath` should be the URL to a repository with no scheme in it, for instance `https://gitlab.com/gitlab-org/sbom/generator` would become `gitlab.com/gitlab-org/sbom/generator`
type Parser ¶ added in v0.84.0
type Parser struct{}
func (Parser) ParseFile ¶ added in v0.84.0
func (p Parser) ParseFile(filename string) (ScorecardResult, error)
func (Parser) ParseFiles ¶ added in v0.84.0
type ScorecardCheck ¶
type ScorecardRepo ¶ added in v0.84.0
type ScorecardRepo struct {
Name string `json:"name"`
}
type ScorecardResult ¶
type ScorecardResult struct { Score float32 `json:"score" yaml:"score"` Checks []ScorecardCheck `json:"checks" yaml:"checks"` Repo ScorecardRepo `json:"repo"` }
Click to show internal directories.
Click to hide internal directories.