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