Skip to content

Commit

Permalink
licences
Browse files Browse the repository at this point in the history
  • Loading branch information
houdini91 committed Dec 12, 2023
1 parent 3b756a3 commit b120480
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions syft/format/common/cyclonedxhelpers/lib_scribe.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cyclonedxhelpers

import (
"github.com/CycloneDX/cyclonedx-go"
"github.com/anchore/syft/syft/pkg"
)

func EncodeLicenses(p pkg.Package) *cyclonedx.Licenses {
return encodeLicenses(p)
}
6 changes: 6 additions & 0 deletions syft/format/syftjson/lib_scribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ package syftjson

import (
"github.com/anchore/syft/syft/format/syftjson/model"
"github.com/anchore/syft/syft/pkg"
"github.com/anchore/syft/syft/source"
)

func ToSourceModel(src source.Description) model.Source {
return toSourceModel(src)
}

func ToSyftPackage(p model.Package) pkg.Package {
m := make(map[string]string)
return toSyftPackage(p, m)
}

0 comments on commit b120480

Please sign in to comment.