Documentation ¶
Index ¶
- Constants
- type 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
Constants ¶
View Source
const ( LicensePatternsDir = "license_patterns" JSONDir = "json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
func NewResources ¶
func (*Resources) MkdirAllCustom ¶
func (*Resources) MkdirAllSPDX ¶
func (*Resources) MkdirPreCheckSPDX ¶
func (*Resources) ReadCustomDir ¶
func (*Resources) ReadCustomFile ¶
func (*Resources) ReadCustomLicensePatternIds ¶
func (*Resources) ReadCustomLicensePatternsDir ¶
func (*Resources) ReadSPDXJSONFiles ¶
func (*Resources) ReadSPDXPreCheckFile ¶
func (*Resources) ReadSPDXTemplateFile ¶
func (*Resources) ReadSPDXTextFile ¶
func (*Resources) WriteCustomFile ¶
Click to show internal directories.
Click to hide internal directories.