json_consts.py 606 B

123456789101112131415161718192021222324
  1. # Copyright 2020 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. """Various constants used in de/serialization."""
  5. # Node-specific constants
  6. NODES = 'nodes'
  7. NAME = 'name'
  8. # Edge-specific constants.
  9. EDGES = 'edges'
  10. BEGIN = 'begin'
  11. END = 'end'
  12. # Build metadata attributes.
  13. COMMIT_HASH = 'commit_hash'
  14. COMMIT_CR_POSITION = 'commit_cr_position'
  15. COMMIT_TIME = 'commit_time'
  16. # Miscellaneous attributes.
  17. PACKAGE_GRAPH = 'package_graph'
  18. CLASS_GRAPH = 'class_graph'
  19. BUILD_METADATA = 'build_metadata'
  20. META = 'meta'