plugin.proto 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. syntax = "proto2";
  2. package docker.protobuf.plugin;
  3. import "google/protobuf/descriptor.proto";
  4. message WatchSelectors {
  5. // supported by all object types
  6. optional bool id = 1;
  7. optional bool id_prefix = 2;
  8. optional bool name = 3;
  9. optional bool name_prefix = 4;
  10. optional bool custom = 5;
  11. optional bool custom_prefix = 6;
  12. // supported by tasks only
  13. optional bool service_id = 7;
  14. optional bool node_id = 8;
  15. optional bool slot = 9;
  16. optional bool desired_state = 10;
  17. // supported by nodes only
  18. optional bool role = 11;
  19. optional bool membership = 12;
  20. // supported by: resource
  21. optional bool kind = 13;
  22. }
  23. message StoreObject {
  24. required WatchSelectors watch_selectors = 1;
  25. }
  26. extend google.protobuf.MessageOptions {
  27. optional bool deepcopy = 70000 [default=true];
  28. optional StoreObject store_object = 70001;
  29. }
  30. message TLSAuthorization {
  31. // Roles contains the acceptable TLS OU roles for the handler.
  32. repeated string roles = 1;
  33. // Insecure is set to true if this method does not require
  34. // authorization. NOTE: Specifying both "insecure" and a nonempty
  35. // list of roles is invalid. This would fail at codegen time.
  36. optional bool insecure = 2;
  37. }
  38. extend google.protobuf.MethodOptions {
  39. // TLSAuthorization contains the authorization parameters for this
  40. // method.
  41. optional TLSAuthorization tls_authorization = 73626345;
  42. }