provenance_metadata.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. syntax = "proto3";
  17. package provenance_metadata_proto;
  18. option go_package = "android/soong/provenance/provenance_metadata_proto";
  19. // Provenance metadata of artifacts.
  20. message ProvenanceMetadata {
  21. // Name of the module/target that creates the artifact.
  22. // It is either a Soong module name or Bazel target label.
  23. string module_name = 1;
  24. // The path to the prebuilt artifacts, which is relative to the source tree
  25. // directory. For example, “prebuilts/runtime/mainline/i18n/apex/com.android.i18n-arm.apex”.
  26. string artifact_path = 2;
  27. // The SHA256 hash of the artifact.
  28. string artifact_sha256 = 3;
  29. // The install path of the artifact in filesystem images.
  30. // This is the absolute path of the artifact on the device.
  31. string artifact_install_path = 4;
  32. // Path of the attestation file of a prebuilt artifact, which is relative to
  33. // the source tree directory. This is for prebuilt artifacts which have
  34. // corresponding attestation files checked in the source tree.
  35. string attestation_path = 5;
  36. }
  37. message ProvenanceMetaDataList {
  38. repeated ProvenanceMetadata metadata = 1;
  39. }