• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto3";
18
19package provenance_metadata_proto;
20option go_package = "android/soong/provenance/provenance_metadata_proto";
21
22// Provenance metadata of artifacts.
23message ProvenanceMetadata {
24  // Name of the module/target that creates the artifact.
25  // It is either a Soong module name or Bazel target label.
26  string module_name = 1;
27
28  // The path to the prebuilt artifacts, which is relative to the source tree
29  // directory. For example, “prebuilts/runtime/mainline/i18n/apex/com.android.i18n-arm.apex”.
30  string artifact_path = 2;
31
32  // The SHA256 hash of the artifact.
33  string artifact_sha256 = 3;
34
35  // The install path of the artifact in filesystem images.
36  // This is the absolute path of the artifact on the device.
37  string artifact_install_path = 4;
38
39  // Path of the attestation file of a prebuilt artifact, which is relative to
40  // the source tree directory. This is for prebuilt artifacts which have
41  // corresponding attestation files checked in the source tree.
42  string attestation_path = 5;
43}
44
45message ProvenanceMetaDataList {
46  repeated ProvenanceMetadata metadata = 1;
47}