Storage.proto 1.5 KB

123456789101112131415161718192021222324252627282930
  1. syntax = "proto2";
  2. message GeoCoordiantes {
  3. optional float latitude = 3;
  4. optional float longitude = 4;
  5. }
  6. message NodeLocationMetadata {
  7. optional string country_code = 1; // ISO 3166-1 alpha-2 country code (2 letters)
  8. optional string city = 2; // City name
  9. optional GeoCoordiantes coordinates = 3; // Geographic coordinates (providing {} will unset current value)
  10. }
  11. message StorageBucketOperatorMetadata {
  12. optional string endpoint = 1; // Root storage node endpoint (ie. https://example.com/storage)
  13. optional NodeLocationMetadata location = 2; // Information about node's phisical location (providing {} will unset current value)
  14. optional string extra = 3; // Additional information about the node / node operator
  15. }
  16. message DistributionBucketOperatorMetadata {
  17. optional string endpoint = 1; // Root distribution node endpoint (ie. https://example.com/distribution)
  18. optional NodeLocationMetadata location = 2; // Information about node's phisical location (providing {} will unset current value)
  19. optional string extra = 3; // Additional information about the node / node operator
  20. }
  21. message DistributionBucketFamilyMetadata {
  22. optional string region = 1; // ID / name of the region covered by the distribution family (ie. us-east-1). Should be unique.
  23. optional string description = 2; // Additional, more specific description of the region
  24. repeated GeoCoordiantes boundary = 3; // Geographical boundary of the region, defined as polygon through array of coordinates (providing [{}] will unset the current value)
  25. }