Home
last modified time | relevance | path

Searched +full:spdx +full:- +full:license +full:- +full:ids (Results 1 – 25 of 809) sorted by relevance

12345678910>>...33

/external/spdx-tools/idsearcher/
Didsearcher.go1 // Package idsearcher is used to search for short-form IDs in files
2 // within a directory, and to build an SPDX Document containing those
3 // license findings.
4 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10 "github.com/spdx/tools-golang/spdx/v2_3"
17 "github.com/spdx/tools-golang/builder"
18 "github.com/spdx/tools-golang/spdx/v2_1"
19 "github.com/spdx/tools-golang/spdx/v2_2"
20 "github.com/spdx/tools-golang/utils"
26 // (for version 2.1 SPDX Documents). A few mandatory fields are set here
[all …]
Didsearcher_test.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 // ===== 2.1 Searcher top-level function tests =====
14 NamespacePrefix: "https://github.com/swinslow/spdx-docs/spdx-go/testdata-",
22 t.Fatalf("expected non-nil Document, got nil")
29 t.Fatalf("expected non-nil Packages, got nil")
36 t.Fatalf("expected non-nil pkg, got nil")
40 t.Fatalf("expected non-nil Files, got nil")
48 t.Fatalf("expected non-nil LicenseInfoInFiles, got nil")
62 t.Fatalf("expected non-nil LicenseInfoInFiles, got nil")
67 if fileTrailingComment.LicenseInfoInFiles[0] != "GPL-2.0-or-later" {
[all …]
/external/spdx-tools/examples/4-search/
Dexample_search.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5 // This example demonstrates building an SPDX document for a directory's
7 // [SPDX short-form IDs](https://spdx.org/ids/); filling those IDs into the
8 // document's Package and File license fields; and saving the resulting document
10 // Run project: go run example_search.go project2 ../../testdata/project2/folder test.spdx
18 "github.com/spdx/tools-golang/idsearcher"
20 "github.com/spdx/tools-golang/tvsaver"
28 fmt.Printf("Usage: %v <package-name> <package-root-dir> <spdx-file-out>\n", args[0])
29 fmt.Printf(" Build a SPDX 2.2 document with one package called <package-name>;\n")
30 fmt.Printf(" create files with hashes corresponding to the files in <package-root-dir>;\n")
[all …]
/external/spdx-tools/spdxlib/
Ddocuments.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
7 "github.com/spdx/tools-golang/spdx/common"
8 "github.com/spdx/tools-golang/spdx/v2_1"
9 "github.com/spdx/tools-golang/spdx/v2_2"
10 "github.com/spdx/tools-golang/spdx/v2_3"
14 // Currently, this only verifies that all Element IDs mentioned in Relationships exist in the Docum…
17 // cache a map of valid package IDs for quick lookups
44 // Currently, this only verifies that all Element IDs mentioned in Relationships exist in the Docum…
47 // cache a map of package IDs for quick lookups
74 // Currently, this only verifies that all Element IDs mentioned in Relationships exist in the Docum…
[all …]
Ddescribed_elements.go2 // with an SPDX document that has already been created in memory.
3 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 "github.com/spdx/tools-golang/spdx/common"
10 "github.com/spdx/tools-golang/spdx/v2_1"
11 "github.com/spdx/tools-golang/spdx/v2_2"
12 "github.com/spdx/tools-golang/spdx/v2_3"
16 // in this Document that it "describes," according to SPDX rules:
17 // - If the document has only one Package, its ID is returned.
18 // - If the document has 2+ Packages, it returns the IDs of those that have
37 // valid IDs in this document's packages, and return them
[all …]
Drelationships.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
6 "github.com/spdx/tools-golang/spdx/common"
7 "github.com/spdx/tools-golang/spdx/v2_1"
8 "github.com/spdx/tools-golang/spdx/v2_2"
9 "github.com/spdx/tools-golang/spdx/v2_3"
12 // FilterRelationships2_1 returns a slice of Element IDs returned by the given filter closure. The …
26 // FilterRelationships2_2 returns a slice of Element IDs returned by the given filter closure. The …
40 // FilterRelationships2_3 returns a slice of Element IDs returned by the given filter closure. The …
Ddescribed_elements_test.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
8 "github.com/spdx/tools-golang/spdx/common"
9 "github.com/spdx/tools-golang/spdx/v2_1"
10 "github.com/spdx/tools-golang/spdx/v2_2"
11 "github.com/spdx/tools-golang/spdx/v2_3"
19 SPDXVersion: "SPDX-2.1",
20 DataLicense: "CC0-1.0",
41 // inverse relationship -- should also get detected
56 // request IDs for DESCRIBES / DESCRIBED_BY relationships
61 // should be three of the five IDs, returned in alphabetical order
[all …]
/external/spdx-tools/examples/
DREADME.md1 SPDX-License-Identifier: CC-BY-4.0
3 # tools-golang Examples
6 tools-golang sub-packages. Sample commands below should be run from
9 ## 1-load/
11 *tvloader*, *spdx*
13 This example demonstrates loading an SPDX tag-value file from disk into memory,
15 #### Run project: *go run example_load.go ../sample-docs/tv/hello.spdx*
17 ## 2-load-save/
21 This example demonstrates loading an SPDX tag-value file from disk into memory,
22 and re-saving it to a different file on disk.
[all …]
/external/spdx-tools/
DRELEASE-NOTES.md1 SPDX-License-Identifier: CC-BY-4.0
3 # Release Notes for spdx/tools-golang
7 0.4.0 released on 2022-01-11
10 * SPDX v2.3 support #164
12 * Add reference types enumerables to SPDX pkg definition #162 #163
13 * Expand hash algorithm support to include all valid SPDX 2.2 and 2.3 algorithms #173
16 * JSON encoding and decoding not properly handling SPDXRef- prefixes #170
21 * Convert SPDX structs to versioned pkgs #146
22 * Ensure consistency between JSON struct tags across different SPDX versions #174
37 0.3.0 released on: 2022-04-03
[all …]
DCONTRIBUTING.md1 SPDX-License-Identifier: CC-BY-4.0
5 All contributions must include a "Signed-off-by" line in the commit message.
11 …o be relied upon by other tools to work with SPDX data, we are aiming to ensure that it is and rem…
13 …ed in `foo_test.go`. Test data files and folders should be placed in the top-level `testdata/` fol…
15 To run the test suite, from the top-level directory run: `go test ./...`
17 ## License information
19 …clude a [short-form SPDX ID](https://spdx.org/ids) at the top, indicating the project license for …
22 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
25 …ld include a [short-form SPDX ID](https://spdx.org/ids) at the top, indicating the project license
28 SPDX-License-Identifier: CC-BY-4.0
[all …]
DREADME.md1 [![Build Status](https://github.com/spdx/tools-golang/workflows/build/badge.svg)](https://github.co…
2 …Status](https://coveralls.io/repos/github/spdx/tools-golang/badge.svg)](https://coveralls.io/githu…
3 …b release](https://img.shields.io/github/release/spdx/tools-golang.svg)](https://github.com/spdx/t…
4 …erence](https://pkg.go.dev/badge/github.com/spdx/tools-golang.svg)](https://pkg.go.dev/github.com/
7 # SPDX tools-golang
9 tools-golang is a collection of Go packages intended to make it easier for
10 Go programs to work with [SPDX®](https://spdx.dev/) files.
14 2022-01-11: **v0.4.0**: added support for SPDX v2.3 and YAML, as well as other
15 improvements and bugfixes. See [RELEASE-NOTES.md](./RELEASE-NOTES.md) for full
20 tools-golang currently works with files conformant to versions 2.1 and 2.2
[all …]
/external/spdx-tools/tvloader/parser2v1/
Dutil.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 "github.com/spdx/tools-golang/spdx/common"
27 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier
34 if strings.HasPrefix(idStr, "DocumentRef-") {
35 // extract the part that comes between "DocumentRef-" and ":"
39 return common.DocElementID{}, fmt.Errorf("no colon found although DocumentRef- prefix present")
45 // trim the prefix and confirm non-empty
46 docRefID = strings.TrimPrefix(strs[0], "DocumentRef-")
54 // check prefix to confirm it's got the right prefix for element IDs
55 if !strings.HasPrefix(idStr, "SPDXRef-") {
[all …]
/external/spdx-tools/tvloader/parser2v3/
Dutil.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 "github.com/spdx/tools-golang/spdx/common"
27 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier
34 if strings.HasPrefix(idStr, "DocumentRef-") {
35 // extract the part that comes between "DocumentRef-" and ":"
39 return common.DocElementID{}, fmt.Errorf("no colon found although DocumentRef- prefix present")
45 // trim the prefix and confirm non-empty
46 docRefID = strings.TrimPrefix(strs[0], "DocumentRef-")
54 // check prefix to confirm it's got the right prefix for element IDs
55 if !strings.HasPrefix(idStr, "SPDXRef-") {
[all …]
/external/spdx-tools/tvloader/parser2v2/
Dutil.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 "github.com/spdx/tools-golang/spdx/common"
27 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier
34 if strings.HasPrefix(idStr, "DocumentRef-") {
35 // extract the part that comes between "DocumentRef-" and ":"
39 return common.DocElementID{}, fmt.Errorf("no colon found although DocumentRef- prefix present")
45 // trim the prefix and confirm non-empty
46 docRefID = strings.TrimPrefix(strs[0], "DocumentRef-")
54 // check prefix to confirm it's got the right prefix for element IDs
55 if !strings.HasPrefix(idStr, "SPDXRef-") {
[all …]
/external/curl/docs/cmdline-opts/
Dtrace-ids.md1 ---
3 SPDX-License-Identifier: curl
4 Long: trace-ids
5 Help: Transfer + connection ids in verbose output
10 See-also:
11 - trace
12 - verbose
14 - --trace-ids --trace-ascii output $URL
15 ---
17 # `--trace-ids`
Dtrace-config.md1 ---
3 SPDX-License-Identifier: curl
4 Long: trace-config
11 See-also:
12 - verbose
13 - trace
15 - --trace-config ids,http/2 $URL
16 ---
18 # `--trace-config`
20 Set configuration for trace output. A comma-separated list of components where
[all …]
/external/stg/
Ddeduplication.cc1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2 // -*- mode: C++ -*-
6 // Licensed under the Apache License v2.0 with LLVM Exceptions (the
7 // "License"); you may not use this file except in compliance with the
8 // License. You may obtain a copy of the License at
10 // https://llvm.org/LICENSE.txt
13 // distributed under the License is distributed on an "AS IS" BASIS,
15 // See the License for the specific language governing permissions and
16 // limitations under the License.
51 for (const auto& [fp, ids] : partitions) { in Deduplicate()
[all …]
/external/mesa3d/src/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/
DcheckXrefs3 # Copyright 2015-2023 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
7 # checkXrefs - check internal links in a Vulkan HTML spec
10 # (There are many anchors with no corresponding hrefs - this is OK).
13 ids=`tempfile`
15 sed -e 's/ href="#/\nhref="#/g' < $1 | \
17 sed -e 's/href="#//g' -e 's/"[ >].*//g' | \
19 sed -e 's/ id="/\nid="/g' < $1 | \
21 sed -e 's/id="//g' -e 's/"[ >].*//g' | \
22 sort | uniq > $ids
[all …]
/external/spdx-tools/rdfloader/parser2v2/
Dutils.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10 gordfParser "github.com/spdx/gordf/rdfloader/parser"
11 "github.com/spdx/gordf/rdfwriter"
12 urilib "github.com/spdx/gordf/uri"
13 "github.com/spdx/tools-golang/spdx/common"
21 return parts[len(parts)-1]
24 return parts[len(parts)-1]
69 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier
76 if strings.HasPrefix(idStr, "DocumentRef-") {
77 // extract the part that comes between "DocumentRef-" and ":"
[all …]
/external/spdx-tools/rdfloader/parser2v3/
Dutils.go1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10 gordfParser "github.com/spdx/gordf/rdfloader/parser"
11 "github.com/spdx/gordf/rdfwriter"
12 urilib "github.com/spdx/gordf/uri"
13 "github.com/spdx/tools-golang/spdx/common"
21 return parts[len(parts)-1]
24 return parts[len(parts)-1]
69 // used to extract DocumentRef and SPDXRef values from an SPDX Identifier
76 if strings.HasPrefix(idStr, "DocumentRef-") {
77 // extract the part that comes between "DocumentRef-" and ":"
[all …]
/external/trusty/arm-trusted-firmware/include/bl32/payloads/
Dtlk.h2 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
5 * SPDX-License-Identifier: BSD-3-Clause
14 * Generate function IDs for the Trusted OS/Apps
20 * Trusted OS specific function IDs
36 * SMC function IDs that TLK uses to signal various forms of completions
48 * Trusted Application specific function IDs
56 * Total number of function IDs implemented for services offered to NS clients.
65 * Standard Trusted OS Function IDs that fall under Trusted OS call range
/external/arm-trusted-firmware/include/bl32/payloads/
Dtlk.h2 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
5 * SPDX-License-Identifier: BSD-3-Clause
14 * Generate function IDs for the Trusted OS/Apps
20 * Trusted OS specific function IDs
36 * SMC function IDs that TLK uses to signal various forms of completions
48 * Trusted Application specific function IDs
56 * Total number of function IDs implemented for services offered to NS clients.
65 * Standard Trusted OS Function IDs that fall under Trusted OS call range
/external/libdrm/data/
DAndroid.bp2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
5 // to get the below license kinds:
6 // SPDX-license-identifier-MIT
11 name: "amdgpu.ids",
14 src: "amdgpu.ids",
/external/arm-trusted-firmware/include/bl32/tsp/
Dtsp.h2 * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
11 * SMC function IDs that TSP uses to signal various forms of completions
25 * Function identifiers to handle S-EL1 interrupt through the synchronous
36 * Identifiers for various TSP services. Corresponding function IDs (whether
52 * Generate function IDs for TSP services to be used in SMC calls, by
68 * Total number of function IDs implemented for services offered to NS clients.
69 * The function IDs are defined above
78 * Standard Trusted OS Function IDs that fall under Trusted OS call range
/external/trusty/arm-trusted-firmware/include/bl32/tsp/
Dtsp.h2 * Copyright (c) 2013-2022, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
11 * SMC function IDs that TSP uses to signal various forms of completions
25 * Function identifiers to handle S-EL1 interrupt through the synchronous
36 * Identifiers for various TSP services. Corresponding function IDs (whether
53 * Generate function IDs for TSP services to be used in SMC calls, by
69 * Total number of function IDs implemented for services offered to NS clients.
70 * The function IDs are defined above
79 * Standard Trusted OS Function IDs that fall under Trusted OS call range

12345678910>>...33