package builder2v3

import "github.com/spdx/tools-golang/builder/builder2v3"

Index

Functions

func BuildCreationInfoSection2_3

func BuildCreationInfoSection2_3(creatorType string, creator string, testValues map[string]string) (*v2_3.CreationInfo, error)

BuildCreationInfoSection2_3 creates an SPDX Package (version 2.3), returning that package or error if any is encountered. Arguments:

func BuildFileSection2_3

func BuildFileSection2_3(filePath string, prefix string, fileNumber int) (*v2_3.File, error)

BuildFileSection2_3 creates an SPDX File (version 2.3), returning that file or error if any is encountered. Arguments:

func BuildPackageSection2_3

func BuildPackageSection2_3(packageName string, dirRoot string, pathsIgnore []string) (*v2_3.Package, error)

BuildPackageSection2_3 creates an SPDX Package (version 2.3), returning that package or error if any is encountered. Arguments:

func BuildRelationshipSection2_3

func BuildRelationshipSection2_3(packageName string) (*v2_3.Relationship, error)

BuildRelationshipSection2_3 creates an SPDX Relationship (version 2.3) solely for the document "DESCRIBES" package relationship, returning that relationship or error if any is encountered. Arguments:

Source Files

build_creation_info.go build_file.go build_package.go build_relationship.go

Version
v0.4.0
Published
Jan 12, 2023
Platform
darwin/amd64
Imports
8 packages
Last checked
1 minute ago

Tools for package owners.