Versions in this module Expand all Collapse all v0 v0.11.0 Oct 24, 2023 v0.10.0 Apr 3, 2023 Changes in this version + const JSONDir + const LicensePatternsDir + type Resources struct + func NewResources(cfg *viper.Viper) *Resources + func (r *Resources) MkdirAllCustom(id string) error + func (r *Resources) MkdirAllSPDX() error + func (r *Resources) MkdirPreCheckSPDX() error + func (r *Resources) ReadCustomDir(dir string) ([]fs.DirEntry, string, error) + func (r *Resources) ReadCustomFile(filePath string) ([]byte, error) + func (r *Resources) ReadCustomLicensePatternIds() (ids []string, err error) + func (r *Resources) ReadCustomLicensePatternsDir(id string) ([]fs.DirEntry, string, error) + func (r *Resources) ReadSPDXJSONFiles() (licenseListBytes []byte, exceptionsBytes []byte, err error) + func (r *Resources) ReadSPDXPreCheckFile(id string, isDeprecated bool) ([]byte, error) + func (r *Resources) ReadSPDXTemplateFile(id string, isDeprecated bool) ([]byte, string, error) + func (r *Resources) ReadSPDXTextFile(id string, isDeprecated bool) ([]byte, error) + func (r *Resources) WriteCustomFile(bytes []byte, ff ...string) error + func (r *Resources) WriteSPDXFile(bytes []byte, ff ...string) error