package builder2v1

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

Index

Functions

func BuildCreationInfoSection2_1

func BuildCreationInfoSection2_1(packageName string, code string, namespacePrefix string, creatorType string, creator string, testValues map[string]string) (*spdx.CreationInfo2_1, error)

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

func BuildFileSection2_1

func BuildFileSection2_1(filePath string, prefix string, fileNumber int) (*spdx.File2_1, error)

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

func BuildPackageSection2_1

func BuildPackageSection2_1(packageName string, dirRoot string, pathsIgnore []string) (*spdx.Package2_1, error)

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

func BuildRelationshipSection2_1

func BuildRelationshipSection2_1(packageName string) (*spdx.Relationship2_1, error)

BuildRelationshipSection2_1 creates an SPDX Relationship (version 2.1) 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.3.0
Published
Apr 3, 2022
Platform
windows/amd64
Imports
7 packages
Last checked
6 seconds ago

Tools for package owners.