Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API.
Index ¶
- Constants
- Variables
- func Convert_softwarecomposition_Annotation_To_v1beta1_Annotation(in *softwarecomposition.Annotation, out *Annotation, s conversion.Scope) error
- func Convert_softwarecomposition_Annotator_To_v1beta1_Annotator(in *softwarecomposition.Annotator, out *Annotator, s conversion.Scope) error
- func Convert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject(in *softwarecomposition.ArtifactOfProject, out *ArtifactOfProject, ...) error
- func Convert_softwarecomposition_Checksum_To_v1beta1_Checksum(in *softwarecomposition.Checksum, out *Checksum, s conversion.Scope) error
- func Convert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo(in *softwarecomposition.CreationInfo, out *CreationInfo, s conversion.Scope) error
- func Convert_softwarecomposition_Creator_To_v1beta1_Creator(in *softwarecomposition.Creator, out *Creator, s conversion.Scope) error
- func Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(in *softwarecomposition.DocElementID, out *DocElementID, s conversion.Scope) error
- func Convert_softwarecomposition_Document_To_v1beta1_Document(in *softwarecomposition.Document, out *Document, s conversion.Scope) error
- func Convert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef(in *softwarecomposition.ExternalDocumentRef, out *ExternalDocumentRef, ...) error
- func Convert_softwarecomposition_File_To_v1beta1_File(in *softwarecomposition.File, out *File, s conversion.Scope) error
- func Convert_softwarecomposition_Originator_To_v1beta1_Originator(in *softwarecomposition.Originator, out *Originator, s conversion.Scope) error
- func Convert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense(in *softwarecomposition.OtherLicense, out *OtherLicense, s conversion.Scope) error
- func Convert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference(in *softwarecomposition.PackageExternalReference, ...) error
- func Convert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode(in *softwarecomposition.PackageVerificationCode, out *PackageVerificationCode, ...) error
- func Convert_softwarecomposition_Package_To_v1beta1_Package(in *softwarecomposition.Package, out *Package, s conversion.Scope) error
- func Convert_softwarecomposition_Relationship_To_v1beta1_Relationship(in *softwarecomposition.Relationship, out *Relationship, s conversion.Scope) error
- func Convert_softwarecomposition_Review_To_v1beta1_Review(in *softwarecomposition.Review, out *Review, s conversion.Scope) error
- func Convert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List(in *softwarecomposition.SBOMSPDXv2p3List, out *SBOMSPDXv2p3List, ...) error
- func Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(in *softwarecomposition.SBOMSPDXv2p3Spec, out *SBOMSPDXv2p3Spec, ...) error
- func Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(in *softwarecomposition.SBOMSPDXv2p3Status, out *SBOMSPDXv2p3Status, ...) error
- func Convert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3(in *softwarecomposition.SBOMSPDXv2p3, out *SBOMSPDXv2p3, s conversion.Scope) error
- func Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(in *softwarecomposition.SnippetRangePointer, out *SnippetRangePointer, ...) error
- func Convert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange(in *softwarecomposition.SnippetRange, out *SnippetRange, s conversion.Scope) error
- func Convert_softwarecomposition_Snippet_To_v1beta1_Snippet(in *softwarecomposition.Snippet, out *Snippet, s conversion.Scope) error
- func Convert_softwarecomposition_Supplier_To_v1beta1_Supplier(in *softwarecomposition.Supplier, out *Supplier, s conversion.Scope) error
- func Convert_v1beta1_Annotation_To_softwarecomposition_Annotation(in *Annotation, out *softwarecomposition.Annotation, s conversion.Scope) error
- func Convert_v1beta1_Annotator_To_softwarecomposition_Annotator(in *Annotator, out *softwarecomposition.Annotator, s conversion.Scope) error
- func Convert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject(in *ArtifactOfProject, out *softwarecomposition.ArtifactOfProject, ...) error
- func Convert_v1beta1_Checksum_To_softwarecomposition_Checksum(in *Checksum, out *softwarecomposition.Checksum, s conversion.Scope) error
- func Convert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo(in *CreationInfo, out *softwarecomposition.CreationInfo, s conversion.Scope) error
- func Convert_v1beta1_Creator_To_softwarecomposition_Creator(in *Creator, out *softwarecomposition.Creator, s conversion.Scope) error
- func Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(in *DocElementID, out *softwarecomposition.DocElementID, s conversion.Scope) error
- func Convert_v1beta1_Document_To_softwarecomposition_Document(in *Document, out *softwarecomposition.Document, s conversion.Scope) error
- func Convert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef(in *ExternalDocumentRef, out *softwarecomposition.ExternalDocumentRef, ...) error
- func Convert_v1beta1_File_To_softwarecomposition_File(in *File, out *softwarecomposition.File, s conversion.Scope) error
- func Convert_v1beta1_Originator_To_softwarecomposition_Originator(in *Originator, out *softwarecomposition.Originator, s conversion.Scope) error
- func Convert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense(in *OtherLicense, out *softwarecomposition.OtherLicense, s conversion.Scope) error
- func Convert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference(in *PackageExternalReference, ...) error
- func Convert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode(in *PackageVerificationCode, out *softwarecomposition.PackageVerificationCode, ...) error
- func Convert_v1beta1_Package_To_softwarecomposition_Package(in *Package, out *softwarecomposition.Package, s conversion.Scope) error
- func Convert_v1beta1_Relationship_To_softwarecomposition_Relationship(in *Relationship, out *softwarecomposition.Relationship, s conversion.Scope) error
- func Convert_v1beta1_Review_To_softwarecomposition_Review(in *Review, out *softwarecomposition.Review, s conversion.Scope) error
- func Convert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List(in *SBOMSPDXv2p3List, out *softwarecomposition.SBOMSPDXv2p3List, ...) error
- func Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(in *SBOMSPDXv2p3Spec, out *softwarecomposition.SBOMSPDXv2p3Spec, ...) error
- func Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(in *SBOMSPDXv2p3Status, out *softwarecomposition.SBOMSPDXv2p3Status, ...) error
- func Convert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3(in *SBOMSPDXv2p3, out *softwarecomposition.SBOMSPDXv2p3, s conversion.Scope) error
- func Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(in *SnippetRangePointer, out *softwarecomposition.SnippetRangePointer, ...) error
- func Convert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange(in *SnippetRange, out *softwarecomposition.SnippetRange, s conversion.Scope) error
- func Convert_v1beta1_Snippet_To_softwarecomposition_Snippet(in *Snippet, out *softwarecomposition.Snippet, s conversion.Scope) error
- func Convert_v1beta1_Supplier_To_softwarecomposition_Supplier(in *Supplier, out *softwarecomposition.Supplier, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func RenderDocElementID(deID DocElementID) string
- func RenderElementID(eID ElementID) string
- func Resource(resource string) schema.GroupResource
- type Annotation
- type Annotator
- type ArtifactOfProject
- type Checksum
- type ChecksumAlgorithm
- type CreationInfo
- type Creator
- type DocElementID
- type Document
- type ElementID
- type ExternalDocumentRef
- type File
- type Originator
- type OtherLicense
- type Package
- type PackageExternalReference
- type PackageVerificationCode
- type Relationship
- type Review
- type SBOMSPDXv2p3
- type SBOMSPDXv2p3List
- type SBOMSPDXv2p3Spec
- type SBOMSPDXv2p3Status
- type Snippet
- type SnippetRange
- type SnippetRangePointer
- type Supplier
Constants ¶
const ( // F.2 Security types TypeSecurityCPE23Type string = "cpe23Type" TypeSecurityCPE22Type string = "cpe22Type" TypeSecurityAdvisory string = "advisory" TypeSecurityFix string = "fix" TypeSecurityUrl string = "url" TypeSecuritySwid string = "swid" // F.3 Package-Manager types TypePackageManagerMavenCentral string = "maven-central" TypePackageManagerNpm string = "npm" TypePackageManagerNuGet string = "nuget" TypePackageManagerBower string = "bower" TypePackageManagerPURL string = "purl" // 11.1 Relationship field types TypeRelationshipDescribe string = "DESCRIBES" TypeRelationshipDescribeBy string = "DESCRIBED_BY" TypeRelationshipContains string = "CONTAINS" TypeRelationshipContainedBy string = "CONTAINED_BY" TypeRelationshipDependsOn string = "DEPENDS_ON" TypeRelationshipDependencyOf string = "DEPENDENCY_OF" TypeRelationshipBuildDependencyOf string = "BUILD_DEPENDENCY_OF" TypeRelationshipDevDependencyOf string = "DEV_DEPENDENCY_OF" TypeRelationshipOptionalDependencyOf string = "OPTIONAL_DEPENDENCY_OF" TypeRelationshipProvidedDependencyOf string = "PROVIDED_DEPENDENCY_OF" TypeRelationshipTestDependencyOf string = "TEST_DEPENDENCY_OF" TypeRelationshipRuntimeDependencyOf string = "RUNTIME_DEPENDENCY_OF" TypeRelationshipExampleOf string = "EXAMPLE_OF" TypeRelationshipGenerates string = "GENERATES" TypeRelationshipGeneratedFrom string = "GENERATED_FROM" TypeRelationshipAncestorOf string = "ANCESTOR_OF" TypeRelationshipDescendantOf string = "DESCENDANT_OF" TypeRelationshipVariantOf string = "VARIANT_OF" TypeRelationshipDistributionArtifact string = "DISTRIBUTION_ARTIFACT" TypeRelationshipPatchFor string = "PATCH_FOR" TypeRelationshipPatchApplied string = "PATCH_APPLIED" TypeRelationshipCopyOf string = "COPY_OF" TypeRelationshipFileAdded string = "FILE_ADDED" TypeRelationshipFileDeleted string = "FILE_DELETED" TypeRelationshipFileModified string = "FILE_MODIFIED" TypeRelationshipExpandedFromArchive string = "EXPANDED_FROM_ARCHIVE" TypeRelationshipDynamicLink string = "DYNAMIC_LINK" TypeRelationshipStaticLink string = "STATIC_LINK" TypeRelationshipDataFileOf string = "DATA_FILE_OF" TypeRelationshipTestCaseOf string = "TEST_CASE_OF" TypeRelationshipBuildToolOf string = "BUILD_TOOL_OF" TypeRelationshipDevToolOf string = "DEV_TOOL_OF" TypeRelationshipTestOf string = "TEST_OF" TypeRelationshipTestToolOf string = "TEST_TOOL_OF" TypeRelationshipDocumentationOf string = "DOCUMENTATION_OF" TypeRelationshipOptionalComponentOf string = "OPTIONAL_COMPONENT_OF" TypeRelationshipMetafileOf string = "METAFILE_OF" TypeRelationshipPackageOf string = "PACKAGE_OF" TypeRelationshipAmends string = "AMENDS" TypeRelationshipPrerequisiteFor string = "PREREQUISITE_FOR" TypeRelationshipHasPrerequisite string = "HAS_PREREQUISITE" TypeRelationshipRequirementDescriptionFor string = "REQUIREMENT_DESCRIPTION_FOR" TypeRelationshipSpecificationFor string = "SPECIFICATION_FOR" TypeRelationshipOther string = "OTHER" )
Constants for various string types
const GroupName = "spdx.softwarecomposition.kubescape.io"
GroupName holds the API group name.
Variables ¶
var ( // SchemeBuilder allows to add this group to a scheme. // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // AddToScheme adds this group to a scheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_softwarecomposition_Annotation_To_v1beta1_Annotation ¶
func Convert_softwarecomposition_Annotation_To_v1beta1_Annotation(in *softwarecomposition.Annotation, out *Annotation, s conversion.Scope) error
Convert_softwarecomposition_Annotation_To_v1beta1_Annotation is an autogenerated conversion function.
func Convert_softwarecomposition_Annotator_To_v1beta1_Annotator ¶
func Convert_softwarecomposition_Annotator_To_v1beta1_Annotator(in *softwarecomposition.Annotator, out *Annotator, s conversion.Scope) error
Convert_softwarecomposition_Annotator_To_v1beta1_Annotator is an autogenerated conversion function.
func Convert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject ¶
func Convert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject(in *softwarecomposition.ArtifactOfProject, out *ArtifactOfProject, s conversion.Scope) error
Convert_softwarecomposition_ArtifactOfProject_To_v1beta1_ArtifactOfProject is an autogenerated conversion function.
func Convert_softwarecomposition_Checksum_To_v1beta1_Checksum ¶
func Convert_softwarecomposition_Checksum_To_v1beta1_Checksum(in *softwarecomposition.Checksum, out *Checksum, s conversion.Scope) error
Convert_softwarecomposition_Checksum_To_v1beta1_Checksum is an autogenerated conversion function.
func Convert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo ¶
func Convert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo(in *softwarecomposition.CreationInfo, out *CreationInfo, s conversion.Scope) error
Convert_softwarecomposition_CreationInfo_To_v1beta1_CreationInfo is an autogenerated conversion function.
func Convert_softwarecomposition_Creator_To_v1beta1_Creator ¶
func Convert_softwarecomposition_Creator_To_v1beta1_Creator(in *softwarecomposition.Creator, out *Creator, s conversion.Scope) error
Convert_softwarecomposition_Creator_To_v1beta1_Creator is an autogenerated conversion function.
func Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID ¶
func Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID(in *softwarecomposition.DocElementID, out *DocElementID, s conversion.Scope) error
Convert_softwarecomposition_DocElementID_To_v1beta1_DocElementID is an autogenerated conversion function.
func Convert_softwarecomposition_Document_To_v1beta1_Document ¶
func Convert_softwarecomposition_Document_To_v1beta1_Document(in *softwarecomposition.Document, out *Document, s conversion.Scope) error
Convert_softwarecomposition_Document_To_v1beta1_Document is an autogenerated conversion function.
func Convert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef ¶
func Convert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef(in *softwarecomposition.ExternalDocumentRef, out *ExternalDocumentRef, s conversion.Scope) error
Convert_softwarecomposition_ExternalDocumentRef_To_v1beta1_ExternalDocumentRef is an autogenerated conversion function.
func Convert_softwarecomposition_File_To_v1beta1_File ¶
func Convert_softwarecomposition_File_To_v1beta1_File(in *softwarecomposition.File, out *File, s conversion.Scope) error
Convert_softwarecomposition_File_To_v1beta1_File is an autogenerated conversion function.
func Convert_softwarecomposition_Originator_To_v1beta1_Originator ¶
func Convert_softwarecomposition_Originator_To_v1beta1_Originator(in *softwarecomposition.Originator, out *Originator, s conversion.Scope) error
Convert_softwarecomposition_Originator_To_v1beta1_Originator is an autogenerated conversion function.
func Convert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense ¶
func Convert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense(in *softwarecomposition.OtherLicense, out *OtherLicense, s conversion.Scope) error
Convert_softwarecomposition_OtherLicense_To_v1beta1_OtherLicense is an autogenerated conversion function.
func Convert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference ¶
func Convert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference(in *softwarecomposition.PackageExternalReference, out *PackageExternalReference, s conversion.Scope) error
Convert_softwarecomposition_PackageExternalReference_To_v1beta1_PackageExternalReference is an autogenerated conversion function.
func Convert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode ¶
func Convert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode(in *softwarecomposition.PackageVerificationCode, out *PackageVerificationCode, s conversion.Scope) error
Convert_softwarecomposition_PackageVerificationCode_To_v1beta1_PackageVerificationCode is an autogenerated conversion function.
func Convert_softwarecomposition_Package_To_v1beta1_Package ¶
func Convert_softwarecomposition_Package_To_v1beta1_Package(in *softwarecomposition.Package, out *Package, s conversion.Scope) error
Convert_softwarecomposition_Package_To_v1beta1_Package is an autogenerated conversion function.
func Convert_softwarecomposition_Relationship_To_v1beta1_Relationship ¶
func Convert_softwarecomposition_Relationship_To_v1beta1_Relationship(in *softwarecomposition.Relationship, out *Relationship, s conversion.Scope) error
Convert_softwarecomposition_Relationship_To_v1beta1_Relationship is an autogenerated conversion function.
func Convert_softwarecomposition_Review_To_v1beta1_Review ¶
func Convert_softwarecomposition_Review_To_v1beta1_Review(in *softwarecomposition.Review, out *Review, s conversion.Scope) error
Convert_softwarecomposition_Review_To_v1beta1_Review is an autogenerated conversion function.
func Convert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List ¶
func Convert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List(in *softwarecomposition.SBOMSPDXv2p3List, out *SBOMSPDXv2p3List, s conversion.Scope) error
Convert_softwarecomposition_SBOMSPDXv2p3List_To_v1beta1_SBOMSPDXv2p3List is an autogenerated conversion function.
func Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec ¶
func Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec(in *softwarecomposition.SBOMSPDXv2p3Spec, out *SBOMSPDXv2p3Spec, s conversion.Scope) error
Convert_softwarecomposition_SBOMSPDXv2p3Spec_To_v1beta1_SBOMSPDXv2p3Spec is an autogenerated conversion function.
func Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status ¶
func Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status(in *softwarecomposition.SBOMSPDXv2p3Status, out *SBOMSPDXv2p3Status, s conversion.Scope) error
Convert_softwarecomposition_SBOMSPDXv2p3Status_To_v1beta1_SBOMSPDXv2p3Status is an autogenerated conversion function.
func Convert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3 ¶
func Convert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3(in *softwarecomposition.SBOMSPDXv2p3, out *SBOMSPDXv2p3, s conversion.Scope) error
Convert_softwarecomposition_SBOMSPDXv2p3_To_v1beta1_SBOMSPDXv2p3 is an autogenerated conversion function.
func Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer ¶
func Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer(in *softwarecomposition.SnippetRangePointer, out *SnippetRangePointer, s conversion.Scope) error
Convert_softwarecomposition_SnippetRangePointer_To_v1beta1_SnippetRangePointer is an autogenerated conversion function.
func Convert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange ¶
func Convert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange(in *softwarecomposition.SnippetRange, out *SnippetRange, s conversion.Scope) error
Convert_softwarecomposition_SnippetRange_To_v1beta1_SnippetRange is an autogenerated conversion function.
func Convert_softwarecomposition_Snippet_To_v1beta1_Snippet ¶
func Convert_softwarecomposition_Snippet_To_v1beta1_Snippet(in *softwarecomposition.Snippet, out *Snippet, s conversion.Scope) error
Convert_softwarecomposition_Snippet_To_v1beta1_Snippet is an autogenerated conversion function.
func Convert_softwarecomposition_Supplier_To_v1beta1_Supplier ¶
func Convert_softwarecomposition_Supplier_To_v1beta1_Supplier(in *softwarecomposition.Supplier, out *Supplier, s conversion.Scope) error
Convert_softwarecomposition_Supplier_To_v1beta1_Supplier is an autogenerated conversion function.
func Convert_v1beta1_Annotation_To_softwarecomposition_Annotation ¶
func Convert_v1beta1_Annotation_To_softwarecomposition_Annotation(in *Annotation, out *softwarecomposition.Annotation, s conversion.Scope) error
Convert_v1beta1_Annotation_To_softwarecomposition_Annotation is an autogenerated conversion function.
func Convert_v1beta1_Annotator_To_softwarecomposition_Annotator ¶
func Convert_v1beta1_Annotator_To_softwarecomposition_Annotator(in *Annotator, out *softwarecomposition.Annotator, s conversion.Scope) error
Convert_v1beta1_Annotator_To_softwarecomposition_Annotator is an autogenerated conversion function.
func Convert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject ¶
func Convert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject(in *ArtifactOfProject, out *softwarecomposition.ArtifactOfProject, s conversion.Scope) error
Convert_v1beta1_ArtifactOfProject_To_softwarecomposition_ArtifactOfProject is an autogenerated conversion function.
func Convert_v1beta1_Checksum_To_softwarecomposition_Checksum ¶
func Convert_v1beta1_Checksum_To_softwarecomposition_Checksum(in *Checksum, out *softwarecomposition.Checksum, s conversion.Scope) error
Convert_v1beta1_Checksum_To_softwarecomposition_Checksum is an autogenerated conversion function.
func Convert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo ¶
func Convert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo(in *CreationInfo, out *softwarecomposition.CreationInfo, s conversion.Scope) error
Convert_v1beta1_CreationInfo_To_softwarecomposition_CreationInfo is an autogenerated conversion function.
func Convert_v1beta1_Creator_To_softwarecomposition_Creator ¶
func Convert_v1beta1_Creator_To_softwarecomposition_Creator(in *Creator, out *softwarecomposition.Creator, s conversion.Scope) error
Convert_v1beta1_Creator_To_softwarecomposition_Creator is an autogenerated conversion function.
func Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID ¶
func Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID(in *DocElementID, out *softwarecomposition.DocElementID, s conversion.Scope) error
Convert_v1beta1_DocElementID_To_softwarecomposition_DocElementID is an autogenerated conversion function.
func Convert_v1beta1_Document_To_softwarecomposition_Document ¶
func Convert_v1beta1_Document_To_softwarecomposition_Document(in *Document, out *softwarecomposition.Document, s conversion.Scope) error
Convert_v1beta1_Document_To_softwarecomposition_Document is an autogenerated conversion function.
func Convert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef ¶
func Convert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef(in *ExternalDocumentRef, out *softwarecomposition.ExternalDocumentRef, s conversion.Scope) error
Convert_v1beta1_ExternalDocumentRef_To_softwarecomposition_ExternalDocumentRef is an autogenerated conversion function.
func Convert_v1beta1_File_To_softwarecomposition_File ¶
func Convert_v1beta1_File_To_softwarecomposition_File(in *File, out *softwarecomposition.File, s conversion.Scope) error
Convert_v1beta1_File_To_softwarecomposition_File is an autogenerated conversion function.
func Convert_v1beta1_Originator_To_softwarecomposition_Originator ¶
func Convert_v1beta1_Originator_To_softwarecomposition_Originator(in *Originator, out *softwarecomposition.Originator, s conversion.Scope) error
Convert_v1beta1_Originator_To_softwarecomposition_Originator is an autogenerated conversion function.
func Convert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense ¶
func Convert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense(in *OtherLicense, out *softwarecomposition.OtherLicense, s conversion.Scope) error
Convert_v1beta1_OtherLicense_To_softwarecomposition_OtherLicense is an autogenerated conversion function.
func Convert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference ¶
func Convert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference(in *PackageExternalReference, out *softwarecomposition.PackageExternalReference, s conversion.Scope) error
Convert_v1beta1_PackageExternalReference_To_softwarecomposition_PackageExternalReference is an autogenerated conversion function.
func Convert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode ¶
func Convert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode(in *PackageVerificationCode, out *softwarecomposition.PackageVerificationCode, s conversion.Scope) error
Convert_v1beta1_PackageVerificationCode_To_softwarecomposition_PackageVerificationCode is an autogenerated conversion function.
func Convert_v1beta1_Package_To_softwarecomposition_Package ¶
func Convert_v1beta1_Package_To_softwarecomposition_Package(in *Package, out *softwarecomposition.Package, s conversion.Scope) error
Convert_v1beta1_Package_To_softwarecomposition_Package is an autogenerated conversion function.
func Convert_v1beta1_Relationship_To_softwarecomposition_Relationship ¶
func Convert_v1beta1_Relationship_To_softwarecomposition_Relationship(in *Relationship, out *softwarecomposition.Relationship, s conversion.Scope) error
Convert_v1beta1_Relationship_To_softwarecomposition_Relationship is an autogenerated conversion function.
func Convert_v1beta1_Review_To_softwarecomposition_Review ¶
func Convert_v1beta1_Review_To_softwarecomposition_Review(in *Review, out *softwarecomposition.Review, s conversion.Scope) error
Convert_v1beta1_Review_To_softwarecomposition_Review is an autogenerated conversion function.
func Convert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List ¶
func Convert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List(in *SBOMSPDXv2p3List, out *softwarecomposition.SBOMSPDXv2p3List, s conversion.Scope) error
Convert_v1beta1_SBOMSPDXv2p3List_To_softwarecomposition_SBOMSPDXv2p3List is an autogenerated conversion function.
func Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec ¶
func Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec(in *SBOMSPDXv2p3Spec, out *softwarecomposition.SBOMSPDXv2p3Spec, s conversion.Scope) error
Convert_v1beta1_SBOMSPDXv2p3Spec_To_softwarecomposition_SBOMSPDXv2p3Spec is an autogenerated conversion function.
func Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status ¶
func Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status(in *SBOMSPDXv2p3Status, out *softwarecomposition.SBOMSPDXv2p3Status, s conversion.Scope) error
Convert_v1beta1_SBOMSPDXv2p3Status_To_softwarecomposition_SBOMSPDXv2p3Status is an autogenerated conversion function.
func Convert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3 ¶
func Convert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3(in *SBOMSPDXv2p3, out *softwarecomposition.SBOMSPDXv2p3, s conversion.Scope) error
Convert_v1beta1_SBOMSPDXv2p3_To_softwarecomposition_SBOMSPDXv2p3 is an autogenerated conversion function.
func Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer ¶
func Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer(in *SnippetRangePointer, out *softwarecomposition.SnippetRangePointer, s conversion.Scope) error
Convert_v1beta1_SnippetRangePointer_To_softwarecomposition_SnippetRangePointer is an autogenerated conversion function.
func Convert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange ¶
func Convert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange(in *SnippetRange, out *softwarecomposition.SnippetRange, s conversion.Scope) error
Convert_v1beta1_SnippetRange_To_softwarecomposition_SnippetRange is an autogenerated conversion function.
func Convert_v1beta1_Snippet_To_softwarecomposition_Snippet ¶
func Convert_v1beta1_Snippet_To_softwarecomposition_Snippet(in *Snippet, out *softwarecomposition.Snippet, s conversion.Scope) error
Convert_v1beta1_Snippet_To_softwarecomposition_Snippet is an autogenerated conversion function.
func Convert_v1beta1_Supplier_To_softwarecomposition_Supplier ¶
func Convert_v1beta1_Supplier_To_softwarecomposition_Supplier(in *Supplier, out *softwarecomposition.Supplier, s conversion.Scope) error
Convert_v1beta1_Supplier_To_softwarecomposition_Supplier is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func RenderDocElementID ¶
func RenderDocElementID(deID DocElementID) string
RenderDocElementID takes a DocElementID and returns the string equivalent, with the SPDXRef- prefix (and, if applicable, the DocumentRef- prefix) reinserted. If a SpecialID is present, it will be rendered verbatim and DocumentRefID and ElementRefID will be ignored.
func RenderElementID ¶
RenderElementID takes an ElementID and returns the string equivalent, with the SPDXRef- prefix reinserted.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Annotation ¶
type Annotation struct { // 12.1: Annotator // Cardinality: conditional (mandatory, one) if there is an Annotation Annotator Annotator `json:"annotator"` // 12.2: Annotation Date: YYYY-MM-DDThh:mm:ssZ // Cardinality: conditional (mandatory, one) if there is an Annotation AnnotationDate string `json:"annotationDate"` // 12.3: Annotation Type: "REVIEW" or "OTHER" // Cardinality: conditional (mandatory, one) if there is an Annotation AnnotationType string `json:"annotationType"` // 12.4: SPDX Identifier Reference // Cardinality: conditional (mandatory, one) if there is an Annotation // This field is not used in hierarchical data formats where the referenced element is clear, such as JSON or YAML. AnnotationSPDXIdentifier DocElementID `json:"-" yaml:"-"` // 12.5: Annotation Comment // Cardinality: conditional (mandatory, one) if there is an Annotation AnnotationComment string `json:"comment"` }
Annotation is an Annotation section of an SPDX Document for version 2.3 of the spec.
func (*Annotation) DeepCopy ¶
func (in *Annotation) DeepCopy() *Annotation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Annotation.
func (*Annotation) DeepCopyInto ¶
func (in *Annotation) DeepCopyInto(out *Annotation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Annotator ¶
type Annotator struct { Annotator string // including AnnotatorType: one of "Person", "Organization" or "Tool" AnnotatorType string }
func (*Annotator) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Annotator.
func (*Annotator) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Annotator) MarshalJSON ¶
MarshalJSON converts the receiver into a slice of bytes representing an Annotator in string form. This function is also used when marshalling to YAML
func (*Annotator) UnmarshalJSON ¶
UnmarshalJSON takes an annotator in the typical one-line format and parses it into an Annotator struct. This function is also used when unmarshalling YAML
type ArtifactOfProject ¶
type ArtifactOfProject struct { // DEPRECATED in version 2.1 of spec // 8.9: Artifact of Project Name // Cardinality: conditional, required if present, one per AOP Name string `json:"name"` // DEPRECATED in version 2.1 of spec // 8.10: Artifact of Project Homepage: URL or "UNKNOWN" // Cardinality: optional, one per AOP HomePage string `json:"homePage"` // DEPRECATED in version 2.1 of spec // 8.11: Artifact of Project Uniform Resource Identifier // Cardinality: optional, one per AOP URI string `json:"URI"` }
ArtifactOfProject is a DEPRECATED collection of data regarding a Package, as defined in sections 8.9-8.11 in version 2.3 of the spec. NOTE: the JSON schema does not define the structure of this object: https://github.com/spdx/spdx-spec/blob/development/v2.3.1/schemas/spdx-schema.json#L480
func (*ArtifactOfProject) DeepCopy ¶
func (in *ArtifactOfProject) DeepCopy() *ArtifactOfProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactOfProject.
func (*ArtifactOfProject) DeepCopyInto ¶
func (in *ArtifactOfProject) DeepCopyInto(out *ArtifactOfProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Checksum ¶
type Checksum struct { Algorithm ChecksumAlgorithm `json:"algorithm"` Value string `json:"checksumValue"` }
Checksum provides a unique identifier to match analysis information on each specific file in a package. The Algorithm field describes the ChecksumAlgorithm used and the Value represents the file checksum
func (*Checksum) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Checksum.
func (*Checksum) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChecksumAlgorithm ¶
type ChecksumAlgorithm string
ChecksumAlgorithm represents the algorithm used to generate the file checksum in the Checksum struct.
const ( SHA224 ChecksumAlgorithm = "SHA224" SHA1 ChecksumAlgorithm = "SHA1" SHA256 ChecksumAlgorithm = "SHA256" SHA384 ChecksumAlgorithm = "SHA384" SHA512 ChecksumAlgorithm = "SHA512" MD2 ChecksumAlgorithm = "MD2" MD4 ChecksumAlgorithm = "MD4" MD5 ChecksumAlgorithm = "MD5" MD6 ChecksumAlgorithm = "MD6" SHA3_256 ChecksumAlgorithm = "SHA3-256" SHA3_384 ChecksumAlgorithm = "SHA3-384" SHA3_512 ChecksumAlgorithm = "SHA3-512" BLAKE2b_256 ChecksumAlgorithm = "BLAKE2b-256" BLAKE2b_384 ChecksumAlgorithm = "BLAKE2b-384" BLAKE2b_512 ChecksumAlgorithm = "BLAKE2b-512" BLAKE3 ChecksumAlgorithm = "BLAKE3" ADLER32 ChecksumAlgorithm = "ADLER32" )
The checksum algorithms mentioned in the spdxv2.2.0 https://spdx.github.io/spdx-spec/4-file-information/#44-file-checksum
type CreationInfo ¶
type CreationInfo struct { // 6.7: License List Version // Cardinality: optional, one LicenseListVersion string `json:"licenseListVersion"` // 6.8: Creators: may have multiple keys for Person, Organization // and/or Tool // Cardinality: mandatory, one or many Creators []Creator `json:"creators"` // 6.9: Created: data format YYYY-MM-DDThh:mm:ssZ // Cardinality: mandatory, one Created string `json:"created"` // 6.10: Creator Comment // Cardinality: optional, one CreatorComment string `json:"comment"` }
CreationInfo is a Document Creation Information section of an SPDX Document for version 2.3 of the spec.
func (*CreationInfo) DeepCopy ¶
func (in *CreationInfo) DeepCopy() *CreationInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreationInfo.
func (*CreationInfo) DeepCopyInto ¶
func (in *CreationInfo) DeepCopyInto(out *CreationInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Creator ¶
type Creator struct { Creator string // CreatorType should be one of "Person", "Organization", or "Tool" CreatorType string }
Creator is a wrapper around the Creator SPDX field. The SPDX field contains two values, which requires special handling in order to marshal/unmarshal it to/from Go data types.
func (*Creator) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Creator.
func (*Creator) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Creator) MarshalJSON ¶
MarshalJSON converts the receiver into a slice of bytes representing a Creator in string form. This function is also used with marshalling to YAML
func (*Creator) UnmarshalJSON ¶
UnmarshalJSON takes an annotator in the typical one-line format and parses it into a Creator struct. This function is also used when unmarshalling YAML
type DocElementID ¶
DocElementID represents an SPDX element identifier that could be defined in a different SPDX document, and therefore could have a "DocumentRef-" portion, such as Relationships and Annotations. ElementID is used for attributes in which a "DocumentRef-" portion cannot appear, such as a Package or File definition (since it is necessarily being defined in the present document). DocumentRefID will be the empty string for elements defined in the present document. DocElementIDs should NOT contain the mandatory 'DocumentRef-' or 'SPDXRef-' portions. SpecialID is used ONLY if the DocElementID matches a defined set of permitted special values for a particular field, e.g. "NONE" or "NOASSERTION" for the right-hand side of Relationships. If SpecialID is set, DocumentRefID and ElementRefID should be empty (and vice versa).
func MakeDocElementID ¶
func MakeDocElementID(docRef string, eltRef string) DocElementID
MakeDocElementID takes strings (without prefixes) for the DocumentRef- and SPDXRef- identifiers, and returns a DocElementID. An empty string should be used for the DocumentRef- portion if it is referring to the present document.
func MakeDocElementSpecial ¶
func MakeDocElementSpecial(specialID string) DocElementID
MakeDocElementSpecial takes a "special" string (e.g. "NONE" or "NOASSERTION" for the right side of a Relationship), nd returns a DocElementID with it in the SpecialID field. Other fields will be empty.
func (*DocElementID) DeepCopy ¶
func (in *DocElementID) DeepCopy() *DocElementID
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DocElementID.
func (*DocElementID) DeepCopyInto ¶
func (in *DocElementID) DeepCopyInto(out *DocElementID)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DocElementID) MarshalJSON ¶
func (d DocElementID) MarshalJSON() ([]byte, error)
MarshalJSON converts the receiver into a slice of bytes representing a DocElementID in string form. This function is also used when marshalling to YAML
func (*DocElementID) UnmarshalJSON ¶
func (d *DocElementID) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON takes a SPDX Identifier string parses it into a DocElementID struct. This function is also used when unmarshalling YAML
type Document ¶
type Document struct { // Added DocumentDescribes []string `json:"documentDescribes"` // 6.1: SPDX Version; should be in the format "SPDX-2.3" // Cardinality: mandatory, one SPDXVersion string `json:"spdxVersion"` // 6.2: Data License; should be "CC0-1.0" // Cardinality: mandatory, one DataLicense string `json:"dataLicense"` // 6.3: SPDX Identifier; should be "DOCUMENT" to represent // mandatory identifier of SPDXRef-DOCUMENT // Cardinality: mandatory, one SPDXIdentifier ElementID `json:"SPDXID"` // 6.4: Document Name // Cardinality: mandatory, one DocumentName string `json:"name"` // 6.5: Document Namespace // Cardinality: mandatory, one DocumentNamespace string `json:"documentNamespace"` // 6.6: External Document References // Cardinality: optional, one or many ExternalDocumentReferences []ExternalDocumentRef `json:"externalDocumentRefs"` // 6.11: Document Comment // Cardinality: optional, one DocumentComment string `json:"comment"` CreationInfo *CreationInfo `json:"creationInfo"` Packages []*Package `json:"packages"` Files []*File `json:"files"` OtherLicenses []*OtherLicense `json:"hasExtractedLicensingInfos"` Relationships []*Relationship `json:"relationships"` Annotations []Annotation `json:"annotations"` Snippets []Snippet `json:"snippets"` // DEPRECATED in version 2.0 of spec Reviews []*Review `json:"-" yaml:"-"` }
Document is an SPDX Document for version 2.3 of the spec. See https://spdx.github.io/spdx-spec/v2.3/document-creation-information
func (*Document) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Document.
func (*Document) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ElementID ¶
type ElementID string
ElementID represents the identifier string portion of an SPDX element identifier. DocElementID should be used for any attributes which can contain identifiers defined in a different SPDX document. ElementIDs should NOT contain the mandatory 'SPDXRef-' portion.
func (ElementID) MarshalJSON ¶
MarshalJSON returns an SPDXRef- prefixed JSON string
func (*ElementID) UnmarshalJSON ¶
UnmarshalJSON validates SPDXRef- prefixes and removes them when processing ElementIDs
type ExternalDocumentRef ¶
type ExternalDocumentRef struct { // DocumentRefID is the ID string defined in the start of the // reference. It should _not_ contain the "DocumentRef-" part // of the mandatory ID string. DocumentRefID string `json:"externalDocumentId"` // URI is the URI defined for the external document URI string `json:"spdxDocument"` // Checksum is the actual hash data Checksum Checksum `json:"checksum"` }
ExternalDocumentRef is a reference to an external SPDX document as defined in section 6.6 for version 2.3 of the spec.
func (*ExternalDocumentRef) DeepCopy ¶
func (in *ExternalDocumentRef) DeepCopy() *ExternalDocumentRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalDocumentRef.
func (*ExternalDocumentRef) DeepCopyInto ¶
func (in *ExternalDocumentRef) DeepCopyInto(out *ExternalDocumentRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type File ¶
type File struct { // 8.1: File Name // Cardinality: mandatory, one FileName string `json:"fileName"` // 8.2: File SPDX Identifier: "SPDXRef-[idstring]" // Cardinality: mandatory, one FileSPDXIdentifier ElementID `json:"SPDXID"` // 8.3: File Types // Cardinality: optional, multiple FileTypes []string `json:"fileTypes"` // 8.4: File Checksum: may have keys for SHA1, SHA256, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 // Cardinality: mandatory, one SHA1, others may be optionally provided Checksums []Checksum `json:"checksums"` // 8.5: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: optional, one LicenseConcluded string `json:"licenseConcluded"` // 8.6: License Information in File: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: optional, one or many LicenseInfoInFiles []string `json:"licenseInfoInFiles"` // 8.7: Comments on License // Cardinality: optional, one LicenseComments string `json:"licenseComments"` // 8.8: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" // Cardinality: mandatory, one FileCopyrightText string `json:"copyrightText"` // DEPRECATED in version 2.1 of spec // 8.9-8.11: Artifact of Project variables (defined below) // Cardinality: optional, one or many ArtifactOfProjects []*ArtifactOfProject `json:"artifactOfs"` // 8.12: File Comment // Cardinality: optional, one FileComment string `json:"comment"` // 8.13: File Notice // Cardinality: optional, one FileNotice string `json:"noticeText"` // 8.14: File Contributor // Cardinality: optional, one or many FileContributors []string `json:"fileContributors"` // 8.15: File Attribution Text // Cardinality: optional, one or many FileAttributionTexts []string `json:"attributionTexts"` // DEPRECATED in version 2.0 of spec // 8.16: File Dependencies // Cardinality: optional, one or many FileDependencies []string `json:"fileDependencies"` // Snippets contained in this File // Note that Snippets could be defined in a different Document! However, // the only ones that _THIS_ document can contain are this ones that are // defined here -- so this should just be an ElementID. Snippets map[ElementID]*Snippet `json:"-" yaml:"-"` Annotations []Annotation `json:"annotations"` }
File is a File section of an SPDX Document for version 2.3 of the spec.
func (*File) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new File.
func (*File) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Originator ¶
type Originator struct { // can be "NOASSERTION" Originator string // OriginatorType can be one of "Person", "Organization", or empty if Originator is "NOASSERTION" OriginatorType string }
func (*Originator) DeepCopy ¶
func (in *Originator) DeepCopy() *Originator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Originator.
func (*Originator) DeepCopyInto ¶
func (in *Originator) DeepCopyInto(out *Originator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Originator) MarshalJSON ¶
func (o Originator) MarshalJSON() ([]byte, error)
MarshalJSON converts the receiver into a slice of bytes representing an Originator in string form. This function is also used when marshalling to YAML
func (*Originator) UnmarshalJSON ¶
func (o *Originator) UnmarshalJSON(data []byte) error
UnmarshalJSON takes an originator in the typical one-line format and parses it into an Originator struct. This function is also used when unmarshalling YAML
type OtherLicense ¶
type OtherLicense struct { // 10.1: License Identifier: "LicenseRef-[idstring]" // Cardinality: conditional (mandatory, one) if license is not // on SPDX License List LicenseIdentifier string `json:"licenseId"` // 10.2: Extracted Text // Cardinality: conditional (mandatory, one) if there is a // License Identifier assigned ExtractedText string `json:"extractedText"` // 10.3: License Name: single line of text or "NOASSERTION" // Cardinality: conditional (mandatory, one) if license is not // on SPDX License List LicenseName string `json:"name"` // 10.4: License Cross Reference // Cardinality: conditional (optional, one or many) if license // is not on SPDX License List LicenseCrossReferences []string `json:"seeAlsos"` // 10.5: License Comment // Cardinality: optional, one LicenseComment string `json:"comment"` }
OtherLicense is an Other License Information section of an SPDX Document for version 2.3 of the spec.
func (*OtherLicense) DeepCopy ¶
func (in *OtherLicense) DeepCopy() *OtherLicense
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OtherLicense.
func (*OtherLicense) DeepCopyInto ¶
func (in *OtherLicense) DeepCopyInto(out *OtherLicense)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Package ¶
type Package struct { // Added HasFiles []string `json:"hasFiles"` // NOT PART OF SPEC // flag: does this "package" contain files that were in fact "unpackaged", // e.g. included directly in the Document without being in a Package? IsUnpackaged bool `json:"-" yaml:"-"` // 7.1: Package Name // Cardinality: mandatory, one PackageName string `json:"name"` // 7.2: Package SPDX Identifier: "SPDXRef-[idstring]" // Cardinality: mandatory, one PackageSPDXIdentifier ElementID `json:"SPDXID"` // 7.3: Package Version // Cardinality: optional, one PackageVersion string `json:"versionInfo"` // 7.4: Package File Name // Cardinality: optional, one PackageFileName string `json:"packageFileName"` // 7.5: Package Supplier: may have single result for either Person or Organization, // or NOASSERTION // Cardinality: optional, one PackageSupplier *Supplier `json:"supplier"` // 7.6: Package Originator: may have single result for either Person or Organization, // or NOASSERTION // Cardinality: optional, one PackageOriginator *Originator `json:"originator"` // 7.7: Package Download Location // Cardinality: mandatory, one PackageDownloadLocation string `json:"downloadLocation"` // 7.8: FilesAnalyzed // Cardinality: optional, one; default value is "true" if omitted FilesAnalyzed bool `json:"filesAnalyzed"` // NOT PART OF SPEC: did FilesAnalyzed tag appear? IsFilesAnalyzedTagPresent bool `json:"-" yaml:"-"` // 7.9: Package Verification Code // Cardinality: if FilesAnalyzed == true must be present, if FilesAnalyzed == false must be omitted PackageVerificationCode *PackageVerificationCode `json:"packageVerificationCode"` // 7.10: Package Checksum: may have keys for SHA1, SHA256, SHA512, MD5, SHA3-256, SHA3-384, SHA3-512, BLAKE2b-256, BLAKE2b-384, BLAKE2b-512, BLAKE3, ADLER32 // Cardinality: optional, one or many PackageChecksums []Checksum `json:"checksums"` // 7.11: Package Home Page // Cardinality: optional, one PackageHomePage string `json:"homepage"` // 7.12: Source Information // Cardinality: optional, one PackageSourceInfo string `json:"sourceInfo"` // 7.13: Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: optional, one PackageLicenseConcluded string `json:"licenseConcluded"` // 7.14: All Licenses Info from Files: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: optional, one or many if filesAnalyzed is true / omitted; // zero (must be omitted) if filesAnalyzed is false PackageLicenseInfoFromFiles []string `json:"licenseInfoFromFiles"` // 7.15: Declared License: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: optional, one PackageLicenseDeclared string `json:"licenseDeclared"` // 7.16: Comments on License // Cardinality: optional, one PackageLicenseComments string `json:"licenseComments"` // 7.17: Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" // Cardinality: mandatory, one PackageCopyrightText string `json:"copyrightText"` // 7.18: Package Summary Description // Cardinality: optional, one PackageSummary string `json:"summary"` // 7.19: Package Detailed Description // Cardinality: optional, one PackageDescription string `json:"description"` // 7.20: Package Comment // Cardinality: optional, one PackageComment string `json:"comment"` // 7.21: Package External Reference // Cardinality: optional, one or many PackageExternalReferences []*PackageExternalReference `json:"externalRefs"` // 7.23: Package Attribution Text // Cardinality: optional, one or many PackageAttributionTexts []string `json:"attributionTexts"` // 7.24: Primary Package Purpose // Cardinality: optional, one or many // Allowed values: APPLICATION, FRAMEWORK, LIBRARY, CONTAINER, OPERATING-SYSTEM, DEVICE, FIRMWARE, SOURCE, ARCHIVE, FILE, INSTALL, OTHER PrimaryPackagePurpose string `json:"primaryPackagePurpose"` // 7.25: Release Date: YYYY-MM-DDThh:mm:ssZ // Cardinality: optional, one ReleaseDate string `json:"releaseDate"` // 7.26: Build Date: YYYY-MM-DDThh:mm:ssZ // Cardinality: optional, one BuiltDate string `json:"builtDate"` // 7.27: Valid Until Date: YYYY-MM-DDThh:mm:ssZ // Cardinality: optional, one ValidUntilDate string `json:"validUntilDate"` // Files contained in this Package Files []*File `json:"files"` Annotations []Annotation `json:"annotations"` }
Package is a Package section of an SPDX Document for version 2.3 of the spec.
func (*Package) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Package.
func (*Package) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PackageExternalReference ¶
type PackageExternalReference struct { // category is "SECURITY", "PACKAGE-MANAGER" or "OTHER" Category string `json:"referenceCategory"` // type is an [idstring] as defined in Appendix VI; // called RefType here due to "type" being a Golang keyword RefType string `json:"referenceType"` // locator is a unique string to access the package-specific // info, metadata or content within the target location Locator string `json:"referenceLocator"` // 7.22: Package External Reference Comment // Cardinality: conditional (optional, one) for each External Reference ExternalRefComment string `json:"comment"` }
PackageExternalReference is an External Reference to additional info about a Package, as defined in section 7.21 in version 2.3 of the spec.
func (*PackageExternalReference) DeepCopy ¶
func (in *PackageExternalReference) DeepCopy() *PackageExternalReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageExternalReference.
func (*PackageExternalReference) DeepCopyInto ¶
func (in *PackageExternalReference) DeepCopyInto(out *PackageExternalReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PackageVerificationCode ¶
type PackageVerificationCode struct { // Cardinality: mandatory, one if filesAnalyzed is true / omitted; // zero (must be omitted) if filesAnalyzed is false Value string `json:"packageVerificationCodeValue"` // Spec also allows specifying files to exclude from the // verification code algorithm; intended to enable exclusion of // the SPDX document file itself. ExcludedFiles []string `json:"packageVerificationCodeExcludedFiles"` }
func (*PackageVerificationCode) DeepCopy ¶
func (in *PackageVerificationCode) DeepCopy() *PackageVerificationCode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageVerificationCode.
func (*PackageVerificationCode) DeepCopyInto ¶
func (in *PackageVerificationCode) DeepCopyInto(out *PackageVerificationCode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Relationship ¶
type Relationship struct { // 11.1: Relationship // Cardinality: optional, one or more; one per Relationship // one mandatory for SPDX Document with multiple packages // RefA and RefB are first and second item // Relationship is type from 11.1.1 RefA DocElementID `json:"spdxElementId"` RefB DocElementID `json:"relatedSpdxElement"` Relationship string `json:"relationshipType"` // 11.2: Relationship Comment // Cardinality: optional, one RelationshipComment string `json:"comment"` }
Relationship is a Relationship section of an SPDX Document for version 2.3 of the spec.
func (*Relationship) DeepCopy ¶
func (in *Relationship) DeepCopy() *Relationship
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Relationship.
func (*Relationship) DeepCopyInto ¶
func (in *Relationship) DeepCopyInto(out *Relationship)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Review ¶
type Review struct { // DEPRECATED in version 2.0 of spec // 13.1: Reviewer // Cardinality: optional, one Reviewer string // including AnnotatorType: one of "Person", "Organization" or "Tool" ReviewerType string // DEPRECATED in version 2.0 of spec // 13.2: Review Date: YYYY-MM-DDThh:mm:ssZ // Cardinality: conditional (mandatory, one) if there is a Reviewer ReviewDate string // DEPRECATED in version 2.0 of spec // 13.3: Review Comment // Cardinality: optional, one ReviewComment string }
Review is a Review section of an SPDX Document for version 2.3 of the spec. DEPRECATED in version 2.0 of spec; retained here for compatibility.
func (*Review) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Review.
func (*Review) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SBOMSPDXv2p3 ¶
type SBOMSPDXv2p3 struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec SBOMSPDXv2p3Spec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status SBOMSPDXv2p3Status `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
SBOMSPDXv2p3 is an example type with a spec and a status.
func (*SBOMSPDXv2p3) DeepCopy ¶
func (in *SBOMSPDXv2p3) DeepCopy() *SBOMSPDXv2p3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3.
func (*SBOMSPDXv2p3) DeepCopyInto ¶
func (in *SBOMSPDXv2p3) DeepCopyInto(out *SBOMSPDXv2p3)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SBOMSPDXv2p3) DeepCopyObject ¶
func (in *SBOMSPDXv2p3) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SBOMSPDXv2p3List ¶
type SBOMSPDXv2p3List struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []SBOMSPDXv2p3 `json:"items" protobuf:"bytes,2,rep,name=items"` }
SBOMSPDXv2p3List is a list of Flunder objects.
func (*SBOMSPDXv2p3List) DeepCopy ¶
func (in *SBOMSPDXv2p3List) DeepCopy() *SBOMSPDXv2p3List
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3List.
func (*SBOMSPDXv2p3List) DeepCopyInto ¶
func (in *SBOMSPDXv2p3List) DeepCopyInto(out *SBOMSPDXv2p3List)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SBOMSPDXv2p3List) DeepCopyObject ¶
func (in *SBOMSPDXv2p3List) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SBOMSPDXv2p3Spec ¶
type SBOMSPDXv2p3Spec struct {
SPDX Document `json:"spdx,omitempty"`
}
SBOMSPDXv2p3Spec is the specification of a Flunder.
func (*SBOMSPDXv2p3Spec) DeepCopy ¶
func (in *SBOMSPDXv2p3Spec) DeepCopy() *SBOMSPDXv2p3Spec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Spec.
func (*SBOMSPDXv2p3Spec) DeepCopyInto ¶
func (in *SBOMSPDXv2p3Spec) DeepCopyInto(out *SBOMSPDXv2p3Spec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SBOMSPDXv2p3Status ¶
type SBOMSPDXv2p3Status struct { }
SBOMSPDXv2p3Status is the status of a Flunder.
func (*SBOMSPDXv2p3Status) DeepCopy ¶
func (in *SBOMSPDXv2p3Status) DeepCopy() *SBOMSPDXv2p3Status
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SBOMSPDXv2p3Status.
func (*SBOMSPDXv2p3Status) DeepCopyInto ¶
func (in *SBOMSPDXv2p3Status) DeepCopyInto(out *SBOMSPDXv2p3Status)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Snippet ¶
type Snippet struct { // 9.1: Snippet SPDX Identifier: "SPDXRef-[idstring]" // Cardinality: mandatory, one SnippetSPDXIdentifier ElementID `json:"SPDXID"` // 9.2: Snippet from File SPDX Identifier // Cardinality: mandatory, one SnippetFromFileSPDXIdentifier ElementID `json:"snippetFromFile"` // Ranges denotes the start/end byte offsets or line numbers that the snippet is relevant to Ranges []SnippetRange `json:"ranges"` // 9.5: Snippet Concluded License: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: optional, one SnippetLicenseConcluded string `json:"licenseConcluded"` // 9.6: License Information in Snippet: SPDX License Expression, "NONE" or "NOASSERTION" // Cardinality: optional, one or many LicenseInfoInSnippet []string `json:"licenseInfoInSnippets"` // 9.7: Snippet Comments on License // Cardinality: optional, one SnippetLicenseComments string `json:"licenseComments"` // 9.8: Snippet Copyright Text: copyright notice(s) text, "NONE" or "NOASSERTION" // Cardinality: mandatory, one SnippetCopyrightText string `json:"copyrightText"` // 9.9: Snippet Comment // Cardinality: optional, one SnippetComment string `json:"comment"` // 9.10: Snippet Name // Cardinality: optional, one SnippetName string `json:"name"` // 9.11: Snippet Attribution Text // Cardinality: optional, one or many SnippetAttributionTexts []string `json:"-" yaml:"-"` }
Snippet is a Snippet section of an SPDX Document for version 2.3 of the spec.
func (*Snippet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snippet.
func (*Snippet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnippetRange ¶
type SnippetRange struct { StartPointer SnippetRangePointer `json:"startPointer"` EndPointer SnippetRangePointer `json:"endPointer"` }
func (*SnippetRange) DeepCopy ¶
func (in *SnippetRange) DeepCopy() *SnippetRange
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnippetRange.
func (*SnippetRange) DeepCopyInto ¶
func (in *SnippetRange) DeepCopyInto(out *SnippetRange)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnippetRangePointer ¶
type SnippetRangePointer struct { // 5.3: Snippet Byte Range: [start byte]:[end byte] // Cardinality: mandatory, one Offset int `json:"offset"` // 5.4: Snippet Line Range: [start line]:[end line] // Cardinality: optional, one LineNumber int `json:"lineNumber"` FileSPDXIdentifier ElementID `json:"reference"` }
func (*SnippetRangePointer) DeepCopy ¶
func (in *SnippetRangePointer) DeepCopy() *SnippetRangePointer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnippetRangePointer.
func (*SnippetRangePointer) DeepCopyInto ¶
func (in *SnippetRangePointer) DeepCopyInto(out *SnippetRangePointer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Supplier ¶
type Supplier struct { // can be "NOASSERTION" Supplier string // SupplierType can be one of "Person", "Organization", or empty if Supplier is "NOASSERTION" SupplierType string }
func (*Supplier) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Supplier.
func (*Supplier) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Supplier) MarshalJSON ¶
MarshalJSON converts the receiver into a slice of bytes representing a Supplier in string form. This function is also used when marshalling to YAML
func (*Supplier) UnmarshalJSON ¶
UnmarshalJSON takes a supplier in the typical one-line format and parses it into a Supplier struct. This function is also used when unmarshalling YAML