spdx_go_proto

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RelationshipType_name = map[int32]string{
		0:  "RELATIONSHIP_TYPE_UNSPECIFIED",
		1:  "DESCRIBES",
		2:  "DESCRIBED_BY",
		3:  "CONTAINS",
		4:  "CONTAINED_BY",
		5:  "DEPENDS_ON",
		6:  "DEPENDENCY_OF",
		7:  "DEPENDENCY_MANIFEST_OF",
		8:  "BUILD_DEPENDENCY_OF",
		9:  "DEV_DEPENDENCY_OF",
		10: "OPTIONAL_DEPENDENCY_OF",
		11: "PROVIDED_DEPENDENCY_OF",
		12: "TEST_DEPENDENCY_OF",
		13: "RUNTIME_DEPENDENCY_OF",
		14: "EXAMPLE_OF",
		15: "GENERATES",
		16: "GENERATED_FROM",
		17: "ANCESTOR_OF",
		18: "DESCENDANT_OF",
		19: "VARIANT_OF",
		20: "DISTRIBUTION_ARTIFACT",
		21: "PATCH_FOR",
		22: "PATCH_APPLIED",
		23: "COPY_OF",
		24: "FILE_ADDED",
		25: "FILE_DELETED",
		26: "FILE_MODIFIED",
		27: "EXPANDED_FROM_ARCHIVE",
		28: "DYNAMIC_LINK",
		29: "STATIC_LINK",
		30: "DATA_FILE_OF",
		31: "TEST_CASE_OF",
		32: "BUILD_TOOL_OF",
		33: "DEV_TOOL_OF",
		34: "TEST_OF",
		35: "TEST_TOOL_OF",
		36: "DOCUMENTATION_OF",
		37: "OPTIONAL_COMPONENT_OF",
		38: "METAFILE_OF",
		39: "PACKAGE_OF",
		40: "AMENDS",
		41: "PREREQUISITE_FOR",
		42: "HAS_PREREQUISITE",
		43: "OTHER",
	}
	RelationshipType_value = map[string]int32{
		"RELATIONSHIP_TYPE_UNSPECIFIED": 0,
		"DESCRIBES":                     1,
		"DESCRIBED_BY":                  2,
		"CONTAINS":                      3,
		"CONTAINED_BY":                  4,
		"DEPENDS_ON":                    5,
		"DEPENDENCY_OF":                 6,
		"DEPENDENCY_MANIFEST_OF":        7,
		"BUILD_DEPENDENCY_OF":           8,
		"DEV_DEPENDENCY_OF":             9,
		"OPTIONAL_DEPENDENCY_OF":        10,
		"PROVIDED_DEPENDENCY_OF":        11,
		"TEST_DEPENDENCY_OF":            12,
		"RUNTIME_DEPENDENCY_OF":         13,
		"EXAMPLE_OF":                    14,
		"GENERATES":                     15,
		"GENERATED_FROM":                16,
		"ANCESTOR_OF":                   17,
		"DESCENDANT_OF":                 18,
		"VARIANT_OF":                    19,
		"DISTRIBUTION_ARTIFACT":         20,
		"PATCH_FOR":                     21,
		"PATCH_APPLIED":                 22,
		"COPY_OF":                       23,
		"FILE_ADDED":                    24,
		"FILE_DELETED":                  25,
		"FILE_MODIFIED":                 26,
		"EXPANDED_FROM_ARCHIVE":         27,
		"DYNAMIC_LINK":                  28,
		"STATIC_LINK":                   29,
		"DATA_FILE_OF":                  30,
		"TEST_CASE_OF":                  31,
		"BUILD_TOOL_OF":                 32,
		"DEV_TOOL_OF":                   33,
		"TEST_OF":                       34,
		"TEST_TOOL_OF":                  35,
		"DOCUMENTATION_OF":              36,
		"OPTIONAL_COMPONENT_OF":         37,
		"METAFILE_OF":                   38,
		"PACKAGE_OF":                    39,
		"AMENDS":                        40,
		"PREREQUISITE_FOR":              41,
		"HAS_PREREQUISITE":              42,
		"OTHER":                         43,
	}
)

Enum value maps for RelationshipType.

View Source
var (
	FileNote_FileType_name = map[int32]string{
		0:  "FILE_TYPE_UNSPECIFIED",
		1:  "SOURCE",
		2:  "BINARY",
		3:  "ARCHIVE",
		4:  "APPLICATION",
		5:  "AUDIO",
		6:  "IMAGE",
		7:  "TEXT",
		8:  "VIDEO",
		9:  "DOCUMENTATION",
		10: "SPDX",
		11: "OTHER",
	}
	FileNote_FileType_value = map[string]int32{
		"FILE_TYPE_UNSPECIFIED": 0,
		"SOURCE":                1,
		"BINARY":                2,
		"ARCHIVE":               3,
		"APPLICATION":           4,
		"AUDIO":                 5,
		"IMAGE":                 6,
		"TEXT":                  7,
		"VIDEO":                 8,
		"DOCUMENTATION":         9,
		"SPDX":                  10,
		"OTHER":                 11,
	}
)

Enum value maps for FileNote_FileType.

View Source
var (
	PackageInfoNote_ExternalRef_Category_name = map[int32]string{
		0: "CATEGORY_UNSPECIFIED",
		1: "SECURITY",
		2: "PACKAGE_MANAGER",
		3: "PERSISTENT_ID",
		4: "OTHER",
	}
	PackageInfoNote_ExternalRef_Category_value = map[string]int32{
		"CATEGORY_UNSPECIFIED": 0,
		"SECURITY":             1,
		"PACKAGE_MANAGER":      2,
		"PERSISTENT_ID":        3,
		"OTHER":                4,
	}
)

Enum value maps for PackageInfoNote_ExternalRef_Category.

Functions

This section is empty.

Types

type DocumentNote

type DocumentNote struct {

	// Provide a reference number that can be used to understand how to parse and
	// interpret the rest of the file
	SpdxVersion string `protobuf:"bytes,1,opt,name=spdx_version,json=spdxVersion,proto3" json:"spdx_version,omitempty"`
	// Compliance with the SPDX specification includes populating the SPDX fields
	// therein with data related to such fields ("SPDX-Metadata")
	DataLicence string `protobuf:"bytes,2,opt,name=data_licence,json=dataLicence,proto3" json:"data_licence,omitempty"`
	// contains filtered or unexported fields
}

DocumentNote represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/

func (*DocumentNote) Descriptor deprecated

func (*DocumentNote) Descriptor() ([]byte, []int)

Deprecated: Use DocumentNote.ProtoReflect.Descriptor instead.

func (*DocumentNote) GetDataLicence

func (x *DocumentNote) GetDataLicence() string

func (*DocumentNote) GetSpdxVersion

func (x *DocumentNote) GetSpdxVersion() string

func (*DocumentNote) ProtoMessage

func (*DocumentNote) ProtoMessage()

func (*DocumentNote) ProtoReflect

func (x *DocumentNote) ProtoReflect() protoreflect.Message

func (*DocumentNote) Reset

func (x *DocumentNote) Reset()

func (*DocumentNote) String

func (x *DocumentNote) String() string

type DocumentOccurrence

type DocumentOccurrence struct {

	// Identify the current SPDX document which may be referenced in relationships
	// by other files, packages internally and documents externally
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Identify name of this document as designated by creator
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Provide an SPDX document specific namespace as a unique absolute Uniform
	// Resource Identifier (URI) as specified in RFC-3986, with the exception of
	// the ‘#’ delimiter
	Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// Identify any external SPDX documents referenced within this SPDX document
	ExternalDocumentRefs []string `protobuf:"bytes,4,rep,name=external_document_refs,json=externalDocumentRefs,proto3" json:"external_document_refs,omitempty"`
	// A field for creators of the SPDX file to provide the version of
	// the SPDX License List used when the SPDX file was created
	LicenseListVersion string `protobuf:"bytes,5,opt,name=license_list_version,json=licenseListVersion,proto3" json:"license_list_version,omitempty"`
	// Identify who (or what, in the case of a tool) created the SPDX file. If the
	// SPDX file was created by an individual, indicate the person's name
	Creators []string `protobuf:"bytes,6,rep,name=creators,proto3" json:"creators,omitempty"`
	// Identify when the SPDX file was originally created. The date is to be
	// specified according to combined date and time in UTC format as specified in
	// ISO 8601 standard
	CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// A field for creators of the SPDX file to provide general comments
	// about the creation of the SPDX file or any other relevant comment not
	// included in the other fields
	CreatorComment string `protobuf:"bytes,8,opt,name=creator_comment,json=creatorComment,proto3" json:"creator_comment,omitempty"`
	// A field for creators of the SPDX file content to provide comments
	// to the consumers of the SPDX document
	DocumentComment string `protobuf:"bytes,9,opt,name=document_comment,json=documentComment,proto3" json:"document_comment,omitempty"`
	// contains filtered or unexported fields
}

DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/

func (*DocumentOccurrence) Descriptor deprecated

func (*DocumentOccurrence) Descriptor() ([]byte, []int)

Deprecated: Use DocumentOccurrence.ProtoReflect.Descriptor instead.

func (*DocumentOccurrence) GetCreateTime

func (x *DocumentOccurrence) GetCreateTime() *timestamp.Timestamp

func (*DocumentOccurrence) GetCreatorComment

func (x *DocumentOccurrence) GetCreatorComment() string

func (*DocumentOccurrence) GetCreators

func (x *DocumentOccurrence) GetCreators() []string

func (*DocumentOccurrence) GetDocumentComment

func (x *DocumentOccurrence) GetDocumentComment() string

func (*DocumentOccurrence) GetExternalDocumentRefs

func (x *DocumentOccurrence) GetExternalDocumentRefs() []string

func (*DocumentOccurrence) GetId

func (x *DocumentOccurrence) GetId() string

func (*DocumentOccurrence) GetLicenseListVersion

func (x *DocumentOccurrence) GetLicenseListVersion() string

func (*DocumentOccurrence) GetNamespace

func (x *DocumentOccurrence) GetNamespace() string

func (*DocumentOccurrence) GetTitle

func (x *DocumentOccurrence) GetTitle() string

func (*DocumentOccurrence) ProtoMessage

func (*DocumentOccurrence) ProtoMessage()

func (*DocumentOccurrence) ProtoReflect

func (x *DocumentOccurrence) ProtoReflect() protoreflect.Message

func (*DocumentOccurrence) Reset

func (x *DocumentOccurrence) Reset()

func (*DocumentOccurrence) String

func (x *DocumentOccurrence) String() string

type FileNote

type FileNote struct {

	// Identify the full path and filename that corresponds to the file
	// information in this section
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// This field provides information about the type of file identified
	FileType FileNote_FileType `` /* 130-byte string literal not displayed */
	// Provide a unique identifier to match analysis information on each specific
	// file in a package
	Checksum []string `protobuf:"bytes,3,rep,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/

func (*FileNote) Descriptor deprecated

func (*FileNote) Descriptor() ([]byte, []int)

Deprecated: Use FileNote.ProtoReflect.Descriptor instead.

func (*FileNote) GetChecksum

func (x *FileNote) GetChecksum() []string

func (*FileNote) GetFileType

func (x *FileNote) GetFileType() FileNote_FileType

func (*FileNote) GetTitle

func (x *FileNote) GetTitle() string

func (*FileNote) ProtoMessage

func (*FileNote) ProtoMessage()

func (*FileNote) ProtoReflect

func (x *FileNote) ProtoReflect() protoreflect.Message

func (*FileNote) Reset

func (x *FileNote) Reset()

func (*FileNote) String

func (x *FileNote) String() string

type FileNote_FileType

type FileNote_FileType int32

File Type is intrinsic to the file, independent of how the file is being used

const (
	// Unspecified
	FileNote_FILE_TYPE_UNSPECIFIED FileNote_FileType = 0
	// The file is human readable source code (.c, .html, etc.)
	FileNote_SOURCE FileNote_FileType = 1
	// The file is a compiled object, target image or binary executable (.o, .a,
	// etc.)
	FileNote_BINARY FileNote_FileType = 2
	// The file represents an archive (.tar, .jar, etc.)
	FileNote_ARCHIVE FileNote_FileType = 3
	// The file is associated with a specific application type (MIME type of
	// application/*)
	FileNote_APPLICATION FileNote_FileType = 4
	// The file is associated with an audio file (MIME type of audio/* , e.g.
	// .mp3)
	FileNote_AUDIO FileNote_FileType = 5
	// The file is associated with an picture image file (MIME type of image/*,
	// e.g., .jpg, .gif)
	FileNote_IMAGE FileNote_FileType = 6
	// The file is human readable text file (MIME type of text/*)
	FileNote_TEXT FileNote_FileType = 7
	// The file is associated with a video file type (MIME type of video/*)
	FileNote_VIDEO FileNote_FileType = 8
	// The file serves as documentation
	FileNote_DOCUMENTATION FileNote_FileType = 9
	// The file is an SPDX document
	FileNote_SPDX FileNote_FileType = 10
	// The file doesn't fit into the above categories (generated artifacts, data
	// files, etc.)
	FileNote_OTHER FileNote_FileType = 11
)

func (FileNote_FileType) Descriptor

func (FileNote_FileType) Enum

func (FileNote_FileType) EnumDescriptor deprecated

func (FileNote_FileType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileNote_FileType.Descriptor instead.

func (FileNote_FileType) Number

func (FileNote_FileType) String

func (x FileNote_FileType) String() string

func (FileNote_FileType) Type

type FileOccurrence

type FileOccurrence struct {

	// Uniquely identify any element in an SPDX document which may be referenced
	// by other elements
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// This field contains the license the SPDX file creator has concluded as
	// governing the file or alternative values if the governing license cannot be
	// determined
	LicenseConcluded *common_go_proto.License `protobuf:"bytes,2,opt,name=license_concluded,json=licenseConcluded,proto3" json:"license_concluded,omitempty"`
	// This field contains the license information actually found in the file, if
	// any
	FilesLicenseInfo []string `protobuf:"bytes,3,rep,name=files_license_info,json=filesLicenseInfo,proto3" json:"files_license_info,omitempty"`
	// Identify the copyright holder of the file, as well as any dates present
	Copyright string `protobuf:"bytes,4,opt,name=copyright,proto3" json:"copyright,omitempty"`
	// This field provides a place for the SPDX file creator to record any general
	// comments about the file
	Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
	// This field provides a place for the SPDX file creator to record license
	// notices or other such related notices found in the file
	Notice string `protobuf:"bytes,6,opt,name=notice,proto3" json:"notice,omitempty"`
	// This field provides a place for the SPDX file creator to record file
	// contributors
	Contributors []string `protobuf:"bytes,7,rep,name=contributors,proto3" json:"contributors,omitempty"`
	// This field provides a place for the SPDX data creator to record, at the
	// file level, acknowledgements that may be needed to be communicated in
	// some contexts
	Attributions []string `protobuf:"bytes,8,rep,name=attributions,proto3" json:"attributions,omitempty"`
	// contains filtered or unexported fields
}

FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/

func (*FileOccurrence) Descriptor deprecated

func (*FileOccurrence) Descriptor() ([]byte, []int)

Deprecated: Use FileOccurrence.ProtoReflect.Descriptor instead.

func (*FileOccurrence) GetAttributions

func (x *FileOccurrence) GetAttributions() []string

func (*FileOccurrence) GetComment

func (x *FileOccurrence) GetComment() string

func (*FileOccurrence) GetContributors

func (x *FileOccurrence) GetContributors() []string

func (*FileOccurrence) GetCopyright

func (x *FileOccurrence) GetCopyright() string

func (*FileOccurrence) GetFilesLicenseInfo

func (x *FileOccurrence) GetFilesLicenseInfo() []string

func (*FileOccurrence) GetId

func (x *FileOccurrence) GetId() string

func (*FileOccurrence) GetLicenseConcluded

func (x *FileOccurrence) GetLicenseConcluded() *common_go_proto.License

func (*FileOccurrence) GetNotice

func (x *FileOccurrence) GetNotice() string

func (*FileOccurrence) ProtoMessage

func (*FileOccurrence) ProtoMessage()

func (*FileOccurrence) ProtoReflect

func (x *FileOccurrence) ProtoReflect() protoreflect.Message

func (*FileOccurrence) Reset

func (x *FileOccurrence) Reset()

func (*FileOccurrence) String

func (x *FileOccurrence) String() string

type PackageInfoNote

type PackageInfoNote struct {

	// Identify the full name of the package as given by the Package Originator
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Identify the version of the package
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Identify the actual distribution source for the package/directory
	// identified in the SPDX file
	Supplier string `protobuf:"bytes,3,opt,name=supplier,proto3" json:"supplier,omitempty"`
	// If the package identified in the SPDX file originated from a different
	// person or organization than identified as Package Supplier, this field
	// identifies from where or whom the package originally came
	Originator string `protobuf:"bytes,4,opt,name=originator,proto3" json:"originator,omitempty"`
	// This section identifies the download Universal Resource Locator (URL), or
	// a specific location within a version control system (VCS) for the package
	// at the time that the SPDX file was created
	DownloadLocation string `protobuf:"bytes,5,opt,name=download_location,json=downloadLocation,proto3" json:"download_location,omitempty"`
	// Indicates whether the file content of this package has been available for
	// or subjected to analysis when creating the SPDX document
	Analyzed bool `protobuf:"varint,6,opt,name=analyzed,proto3" json:"analyzed,omitempty"`
	// This field provides an independently reproducible mechanism identifying
	// specific contents of a package based on the actual files (except the SPDX
	// file itself, if it is included in the package) that make up each package
	// and that correlates to the data in this SPDX file
	VerificationCode string `protobuf:"bytes,7,opt,name=verification_code,json=verificationCode,proto3" json:"verification_code,omitempty"`
	// Provide an independently reproducible mechanism that permits unique
	// identification of a specific package that correlates to the data in this
	// SPDX file
	Checksum string `protobuf:"bytes,8,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// Provide a place for the SPDX file creator to record a web site that serves
	// as the package's home page
	HomePage string `protobuf:"bytes,9,opt,name=home_page,json=homePage,proto3" json:"home_page,omitempty"`
	// Contain the license the SPDX file creator has concluded as governing the
	// This field is to contain a list of all licenses found in the package. The
	// relationship between licenses (i.e., conjunctive, disjunctive) is not
	// specified in this field – it is simply a listing of all licenses found
	FilesLicenseInfo []string `protobuf:"bytes,10,rep,name=files_license_info,json=filesLicenseInfo,proto3" json:"files_license_info,omitempty"`
	// List the licenses that have been declared by the authors of the package
	LicenseDeclared *common_go_proto.License `protobuf:"bytes,11,opt,name=license_declared,json=licenseDeclared,proto3" json:"license_declared,omitempty"`
	// Identify the copyright holders of the package, as well as any dates present
	Copyright string `protobuf:"bytes,12,opt,name=copyright,proto3" json:"copyright,omitempty"`
	// A short description of the package
	SummaryDescription string `protobuf:"bytes,13,opt,name=summary_description,json=summaryDescription,proto3" json:"summary_description,omitempty"`
	// A more detailed description of the package
	DetailedDescription string `protobuf:"bytes,14,opt,name=detailed_description,json=detailedDescription,proto3" json:"detailed_description,omitempty"`
	// ExternalRef
	ExternalRefs []*PackageInfoNote_ExternalRef `protobuf:"bytes,15,rep,name=external_refs,json=externalRefs,proto3" json:"external_refs,omitempty"`
	// A place for the SPDX data creator to record, at the package level,
	// acknowledgements that may be needed to be communicated in some contexts
	Attribution string `protobuf:"bytes,16,opt,name=attribution,proto3" json:"attribution,omitempty"`
	// The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
	PackageType string `protobuf:"bytes,17,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
	// contains filtered or unexported fields
}

PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/

func (*PackageInfoNote) Descriptor deprecated

func (*PackageInfoNote) Descriptor() ([]byte, []int)

Deprecated: Use PackageInfoNote.ProtoReflect.Descriptor instead.

func (*PackageInfoNote) GetAnalyzed

func (x *PackageInfoNote) GetAnalyzed() bool

func (*PackageInfoNote) GetAttribution

func (x *PackageInfoNote) GetAttribution() string

func (*PackageInfoNote) GetChecksum

func (x *PackageInfoNote) GetChecksum() string

func (*PackageInfoNote) GetCopyright

func (x *PackageInfoNote) GetCopyright() string

func (*PackageInfoNote) GetDetailedDescription

func (x *PackageInfoNote) GetDetailedDescription() string

func (*PackageInfoNote) GetDownloadLocation

func (x *PackageInfoNote) GetDownloadLocation() string

func (*PackageInfoNote) GetExternalRefs

func (x *PackageInfoNote) GetExternalRefs() []*PackageInfoNote_ExternalRef

func (*PackageInfoNote) GetFilesLicenseInfo

func (x *PackageInfoNote) GetFilesLicenseInfo() []string

func (*PackageInfoNote) GetHomePage

func (x *PackageInfoNote) GetHomePage() string

func (*PackageInfoNote) GetLicenseDeclared

func (x *PackageInfoNote) GetLicenseDeclared() *common_go_proto.License

func (*PackageInfoNote) GetOriginator

func (x *PackageInfoNote) GetOriginator() string

func (*PackageInfoNote) GetPackageType

func (x *PackageInfoNote) GetPackageType() string

func (*PackageInfoNote) GetSummaryDescription

func (x *PackageInfoNote) GetSummaryDescription() string

func (*PackageInfoNote) GetSupplier

func (x *PackageInfoNote) GetSupplier() string

func (*PackageInfoNote) GetTitle

func (x *PackageInfoNote) GetTitle() string

func (*PackageInfoNote) GetVerificationCode

func (x *PackageInfoNote) GetVerificationCode() string

func (*PackageInfoNote) GetVersion

func (x *PackageInfoNote) GetVersion() string

func (*PackageInfoNote) ProtoMessage

func (*PackageInfoNote) ProtoMessage()

func (*PackageInfoNote) ProtoReflect

func (x *PackageInfoNote) ProtoReflect() protoreflect.Message

func (*PackageInfoNote) Reset

func (x *PackageInfoNote) Reset()

func (*PackageInfoNote) String

func (x *PackageInfoNote) String() string

type PackageInfoNote_ExternalRef

type PackageInfoNote_ExternalRef struct {

	// An External Reference allows a Package to reference an external source of
	// additional information, metadata, enumerations, asset identifiers, or
	// downloadable content believed to be relevant to the Package
	Category PackageInfoNote_ExternalRef_Category `` /* 133-byte string literal not displayed */
	// Type of category (e.g. 'npm' for the PACKAGE_MANAGER category)
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// The unique string with no spaces necessary to access the package-specific
	// information, metadata, or content within the target location
	Locator string `protobuf:"bytes,3,opt,name=locator,proto3" json:"locator,omitempty"`
	// Human-readable information about the purpose and target of the reference
	Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package

func (*PackageInfoNote_ExternalRef) Descriptor deprecated

func (*PackageInfoNote_ExternalRef) Descriptor() ([]byte, []int)

Deprecated: Use PackageInfoNote_ExternalRef.ProtoReflect.Descriptor instead.

func (*PackageInfoNote_ExternalRef) GetCategory

func (*PackageInfoNote_ExternalRef) GetComment

func (x *PackageInfoNote_ExternalRef) GetComment() string

func (*PackageInfoNote_ExternalRef) GetLocator

func (x *PackageInfoNote_ExternalRef) GetLocator() string

func (*PackageInfoNote_ExternalRef) GetType

func (x *PackageInfoNote_ExternalRef) GetType() string

func (*PackageInfoNote_ExternalRef) ProtoMessage

func (*PackageInfoNote_ExternalRef) ProtoMessage()

func (*PackageInfoNote_ExternalRef) ProtoReflect

func (*PackageInfoNote_ExternalRef) Reset

func (x *PackageInfoNote_ExternalRef) Reset()

func (*PackageInfoNote_ExternalRef) String

func (x *PackageInfoNote_ExternalRef) String() string

type PackageInfoNote_ExternalRef_Category

type PackageInfoNote_ExternalRef_Category int32

The category of the external reference

const (
	// Unspecified
	PackageInfoNote_ExternalRef_CATEGORY_UNSPECIFIED PackageInfoNote_ExternalRef_Category = 0
	// Security (e.g. cpe22Type, cpe23Type)
	PackageInfoNote_ExternalRef_SECURITY PackageInfoNote_ExternalRef_Category = 1
	// Package Manager (e.g. maven-central, npm, nuget, bower, purl)
	PackageInfoNote_ExternalRef_PACKAGE_MANAGER PackageInfoNote_ExternalRef_Category = 2
	// Persistent-Id (e.g. swh)
	PackageInfoNote_ExternalRef_PERSISTENT_ID PackageInfoNote_ExternalRef_Category = 3
	// Other
	PackageInfoNote_ExternalRef_OTHER PackageInfoNote_ExternalRef_Category = 4
)

func (PackageInfoNote_ExternalRef_Category) Descriptor

func (PackageInfoNote_ExternalRef_Category) Enum

func (PackageInfoNote_ExternalRef_Category) EnumDescriptor deprecated

func (PackageInfoNote_ExternalRef_Category) EnumDescriptor() ([]byte, []int)

Deprecated: Use PackageInfoNote_ExternalRef_Category.Descriptor instead.

func (PackageInfoNote_ExternalRef_Category) Number

func (PackageInfoNote_ExternalRef_Category) String

func (PackageInfoNote_ExternalRef_Category) Type

type PackageInfoOccurrence

type PackageInfoOccurrence struct {

	// Uniquely identify any element in an SPDX document which may be referenced
	// by other elements
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Provide the actual file name of the package, or path of the directory being
	// treated as a package
	Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	// Provide a place for the SPDX file creator to record any relevant background
	// information or additional comments about the origin of the package
	SourceInfo string `protobuf:"bytes,3,opt,name=source_info,json=sourceInfo,proto3" json:"source_info,omitempty"`
	// package or alternative values, if the governing license cannot be
	// determined
	LicenseConcluded *common_go_proto.License `protobuf:"bytes,4,opt,name=license_concluded,json=licenseConcluded,proto3" json:"license_concluded,omitempty"`
	// A place for the SPDX file creator to record any general
	// comments about the package being described
	Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
	// The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
	PackageType string `protobuf:"bytes,6,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
	// Identify the full name of the package as given by the Package Originator
	Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	// Identify the version of the package
	Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"`
	// Provide a place for the SPDX file creator to record a web site that serves
	// as the package's home page
	HomePage string `protobuf:"bytes,9,opt,name=home_page,json=homePage,proto3" json:"home_page,omitempty"`
	// A short description of the package
	SummaryDescription string `protobuf:"bytes,10,opt,name=summary_description,json=summaryDescription,proto3" json:"summary_description,omitempty"`
	// contains filtered or unexported fields
}

PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/

func (*PackageInfoOccurrence) Descriptor deprecated

func (*PackageInfoOccurrence) Descriptor() ([]byte, []int)

Deprecated: Use PackageInfoOccurrence.ProtoReflect.Descriptor instead.

func (*PackageInfoOccurrence) GetComment

func (x *PackageInfoOccurrence) GetComment() string

func (*PackageInfoOccurrence) GetFilename

func (x *PackageInfoOccurrence) GetFilename() string

func (*PackageInfoOccurrence) GetHomePage

func (x *PackageInfoOccurrence) GetHomePage() string

func (*PackageInfoOccurrence) GetId

func (x *PackageInfoOccurrence) GetId() string

func (*PackageInfoOccurrence) GetLicenseConcluded

func (x *PackageInfoOccurrence) GetLicenseConcluded() *common_go_proto.License

func (*PackageInfoOccurrence) GetPackageType

func (x *PackageInfoOccurrence) GetPackageType() string

func (*PackageInfoOccurrence) GetSourceInfo

func (x *PackageInfoOccurrence) GetSourceInfo() string

func (*PackageInfoOccurrence) GetSummaryDescription

func (x *PackageInfoOccurrence) GetSummaryDescription() string

func (*PackageInfoOccurrence) GetTitle

func (x *PackageInfoOccurrence) GetTitle() string

func (*PackageInfoOccurrence) GetVersion

func (x *PackageInfoOccurrence) GetVersion() string

func (*PackageInfoOccurrence) ProtoMessage

func (*PackageInfoOccurrence) ProtoMessage()

func (*PackageInfoOccurrence) ProtoReflect

func (x *PackageInfoOccurrence) ProtoReflect() protoreflect.Message

func (*PackageInfoOccurrence) Reset

func (x *PackageInfoOccurrence) Reset()

func (*PackageInfoOccurrence) String

func (x *PackageInfoOccurrence) String() string

type RelationshipNote

type RelationshipNote struct {

	// The type of relationship between the source and target SPDX elements
	Type RelationshipType `protobuf:"varint,1,opt,name=type,proto3,enum=grafeas.v1beta1.spdx.RelationshipType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/

func (*RelationshipNote) Descriptor deprecated

func (*RelationshipNote) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipNote.ProtoReflect.Descriptor instead.

func (*RelationshipNote) GetType

func (x *RelationshipNote) GetType() RelationshipType

func (*RelationshipNote) ProtoMessage

func (*RelationshipNote) ProtoMessage()

func (*RelationshipNote) ProtoReflect

func (x *RelationshipNote) ProtoReflect() protoreflect.Message

func (*RelationshipNote) Reset

func (x *RelationshipNote) Reset()

func (*RelationshipNote) String

func (x *RelationshipNote) String() string

type RelationshipOccurrence

type RelationshipOccurrence struct {

	// Also referred to as SPDXRef-A
	// The source SPDX element (file, package, etc)
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Also referred to as SPDXRef-B
	// The target SPDC element (file, package, etc)
	// In cases where there are "known unknowns", the use of the keyword
	// NOASSERTION can be used The keywords NONE can be used to indicate that an
	// SPDX element (package/file/snippet) has no other elements connected by
	// some relationship to it
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// The type of relationship between the source and target SPDX elements
	Type RelationshipType `protobuf:"varint,3,opt,name=type,proto3,enum=grafeas.v1beta1.spdx.RelationshipType" json:"type,omitempty"`
	// A place for the SPDX file creator to record any general comments about
	// the relationship
	Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/

func (*RelationshipOccurrence) Descriptor deprecated

func (*RelationshipOccurrence) Descriptor() ([]byte, []int)

Deprecated: Use RelationshipOccurrence.ProtoReflect.Descriptor instead.

func (*RelationshipOccurrence) GetComment

func (x *RelationshipOccurrence) GetComment() string

func (*RelationshipOccurrence) GetSource

func (x *RelationshipOccurrence) GetSource() string

func (*RelationshipOccurrence) GetTarget

func (x *RelationshipOccurrence) GetTarget() string

func (*RelationshipOccurrence) GetType

func (*RelationshipOccurrence) ProtoMessage

func (*RelationshipOccurrence) ProtoMessage()

func (*RelationshipOccurrence) ProtoReflect

func (x *RelationshipOccurrence) ProtoReflect() protoreflect.Message

func (*RelationshipOccurrence) Reset

func (x *RelationshipOccurrence) Reset()

func (*RelationshipOccurrence) String

func (x *RelationshipOccurrence) String() string

type RelationshipType

type RelationshipType int32

The type of relationship between the source and target SPDX elements RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/

const (
	// Unspecified
	RelationshipType_RELATIONSHIP_TYPE_UNSPECIFIED RelationshipType = 0
	// Is to be used when SPDXRef-DOCUMENT describes SPDXRef-A
	RelationshipType_DESCRIBES RelationshipType = 1
	// Is to be used when SPDXRef-A is described by SPDXREF-Document
	RelationshipType_DESCRIBED_BY RelationshipType = 2
	// Is to be used when SPDXRef-A contains SPDXRef-B
	RelationshipType_CONTAINS RelationshipType = 3
	// Is to be used when SPDXRef-A is contained by SPDXRef-B
	RelationshipType_CONTAINED_BY RelationshipType = 4
	// Is to be used when SPDXRef-A depends on SPDXRef-B
	RelationshipType_DEPENDS_ON RelationshipType = 5
	// Is to be used when SPDXRef-A is dependency of SPDXRef-B
	RelationshipType_DEPENDENCY_OF RelationshipType = 6
	// Is to be used when SPDXRef-A is a manifest file that lists a set of
	// dependencies for SPDXRef-B
	RelationshipType_DEPENDENCY_MANIFEST_OF RelationshipType = 7
	// Is to be used when SPDXRef-A is a build dependency of SPDXRef-B
	RelationshipType_BUILD_DEPENDENCY_OF RelationshipType = 8
	// Is to be used when SPDXRef-A is a development dependency of SPDXRef-B
	RelationshipType_DEV_DEPENDENCY_OF RelationshipType = 9
	// Is to be used when SPDXRef-A is an optional dependency of SPDXRef-B
	RelationshipType_OPTIONAL_DEPENDENCY_OF RelationshipType = 10
	// Is to be used when SPDXRef-A is a to be provided dependency of
	// SPDXRef-B
	RelationshipType_PROVIDED_DEPENDENCY_OF RelationshipType = 11
	// Is to be used when SPDXRef-A is a test dependency of SPDXRef-B
	RelationshipType_TEST_DEPENDENCY_OF RelationshipType = 12
	// Is to be used when SPDXRef-A is a dependency required for the execution
	// of SPDXRef-B
	RelationshipType_RUNTIME_DEPENDENCY_OF RelationshipType = 13
	// Is to be used when SPDXRef-A is an example of SPDXRef-B
	RelationshipType_EXAMPLE_OF RelationshipType = 14
	// Is to be used when SPDXRef-A generates SPDXRef-B
	RelationshipType_GENERATES RelationshipType = 15
	// Is to be used when SPDXRef-A was generated from SPDXRef-B
	RelationshipType_GENERATED_FROM RelationshipType = 16
	// Is to be used when SPDXRef-A is an ancestor (same lineage but
	// pre-dates) SPDXRef-B
	RelationshipType_ANCESTOR_OF RelationshipType = 17
	// Is to be used when SPDXRef-A is a descendant of (same lineage but
	// postdates) SPDXRef-B
	RelationshipType_DESCENDANT_OF RelationshipType = 18
	// Is to be used when SPDXRef-A is a variant of (same lineage but not
	// clear which came first) SPDXRef-B
	RelationshipType_VARIANT_OF RelationshipType = 19
	// Is to be used when distributing SPDXRef-A requires that SPDXRef-B also
	// be distributed
	RelationshipType_DISTRIBUTION_ARTIFACT RelationshipType = 20
	// Is to be used when SPDXRef-A is a patch file for (to be applied to)
	// SPDXRef-B
	RelationshipType_PATCH_FOR RelationshipType = 21
	// Is to be used when SPDXRef-A is a patch file that has been applied to
	// SPDXRef-B
	RelationshipType_PATCH_APPLIED RelationshipType = 22
	// Is to be used when SPDXRef-A is an exact copy of SPDXRef-B
	RelationshipType_COPY_OF RelationshipType = 23
	// Is to be used when SPDXRef-A is a file that was added to SPDXRef-B
	RelationshipType_FILE_ADDED RelationshipType = 24
	// Is to be used when SPDXRef-A is a file that was deleted from SPDXRef-B
	RelationshipType_FILE_DELETED RelationshipType = 25
	// Is to be used when SPDXRef-A is a file that was modified from SPDXRef-B
	RelationshipType_FILE_MODIFIED RelationshipType = 26
	// Is to be used when SPDXRef-A is expanded from the archive SPDXRef-B
	RelationshipType_EXPANDED_FROM_ARCHIVE RelationshipType = 27
	// Is to be used when SPDXRef-A dynamically links to SPDXRef-B
	RelationshipType_DYNAMIC_LINK RelationshipType = 28
	// Is to be used when SPDXRef-A statically links to SPDXRef-B
	RelationshipType_STATIC_LINK RelationshipType = 29
	// Is to be used when SPDXRef-A is a data file used in SPDXRef-B
	RelationshipType_DATA_FILE_OF RelationshipType = 30
	// Is to be used when SPDXRef-A is a test case used in testing SPDXRef-B
	RelationshipType_TEST_CASE_OF RelationshipType = 31
	// Is to be used when SPDXRef-A is used to build SPDXRef-B
	RelationshipType_BUILD_TOOL_OF RelationshipType = 32
	// Is to be used when SPDXRef-A is used as a development tool for
	// SPDXRef-B
	RelationshipType_DEV_TOOL_OF RelationshipType = 33
	// Is to be used when SPDXRef-A is used for testing SPDXRef-B
	RelationshipType_TEST_OF RelationshipType = 34
	// Is to be used when SPDXRef-A is used as a test tool for SPDXRef-B
	RelationshipType_TEST_TOOL_OF RelationshipType = 35
	// Is to be used when SPDXRef-A provides documentation of SPDXRef-B
	RelationshipType_DOCUMENTATION_OF RelationshipType = 36
	// Is to be used when SPDXRef-A is an optional component of SPDXRef-B
	RelationshipType_OPTIONAL_COMPONENT_OF RelationshipType = 37
	// Is to be used when SPDXRef-A is a metafile of SPDXRef-B
	RelationshipType_METAFILE_OF RelationshipType = 38
	// Is to be used when SPDXRef-A is used as a package as part of SPDXRef-B
	RelationshipType_PACKAGE_OF RelationshipType = 39
	// Is to be used when (current) SPDXRef-DOCUMENT amends the SPDX
	// information in SPDXRef-B
	RelationshipType_AMENDS RelationshipType = 40
	// Is to be used when SPDXRef-A is a prerequisite for SPDXRef-B
	RelationshipType_PREREQUISITE_FOR RelationshipType = 41
	// Is to be used when SPDXRef-A has as a prerequisite SPDXRef-B
	RelationshipType_HAS_PREREQUISITE RelationshipType = 42
	// Is to be used for a relationship which has not been defined in the
	// formal SPDX specification. A description of the relationship should be
	// included in the Relationship comments field
	RelationshipType_OTHER RelationshipType = 43
)

func (RelationshipType) Descriptor

func (RelationshipType) Enum

func (RelationshipType) EnumDescriptor deprecated

func (RelationshipType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RelationshipType.Descriptor instead.

func (RelationshipType) Number

func (RelationshipType) String

func (x RelationshipType) String() string

func (RelationshipType) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL