Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Add Taxonomies shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaglow committed May 28, 2018
1 parent abcac07 commit 9b60725
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions job.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ type Report struct {
ReportBody ReportBody `json:"report,omitempty"`
}

// Taxonomies is a shortcut to get taxonomies from the report
func (r *Report) Taxonomies() []Taxonomy {
return r.ReportBody.Summary.Taxonomies
}

// Artifact represents an artifact
type Artifact struct {
DataType string `json:"dataType"`
Expand Down

0 comments on commit 9b60725

Please sign in to comment.