Skip to content

Commit dd1f7dc

Browse files
committed
Rename Package -> PackageInformation
Signed-off-by: Jose Fuentes <[email protected]>
1 parent 711e271 commit dd1f7dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/report.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Report struct {
1313
// Package indicates which package was used for the report. (deprecated)
1414
Package string `json:"package"`
1515
// PackageInformation contains all the information about the package that was used to generate the report.
16-
PackageInformation Package `json:"package-information"`
16+
PackageInformation PackageInformation `json:"package-information"`
1717
// Name is the name of the package that was used for this report.
1818
Name string `json:"name"`
1919
// Description is the description of the package that was used for this report.
@@ -22,8 +22,8 @@ type Report struct {
2222
Sections []ReportSection `json:"sections,omitempty"`
2323
}
2424

25-
// Package contains all the details to identify a package.
26-
type Package struct {
25+
// PackageInformation contains all the details to identify a package.
26+
type PackageInformation struct {
2727
// Namespace the package belongs to.
2828
Namespace string `json:"namespace"`
2929
// ID is the ID of the package.

pkg/exporter/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (e *JSONExporter) Export(ctx context.Context, policyManifest *packaging.Pol
2626
// TODO: we are omitting ID, Timestamp and Cluster for now, but it will get fixed with #1
2727
PreflightVersion: version.PreflightVersion,
2828
Package: policyManifest.ID,
29-
PackageInformation: api.Package{
29+
PackageInformation: api.PackageInformation{
3030
Namespace: policyManifest.Namespace,
3131
ID: policyManifest.ID,
3232
Version: policyManifest.PackageVersion,

0 commit comments

Comments
 (0)