File: plugin.proto

package info (click to toggle)
docker.io 26.1.5%2Bdfsg1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,576 kB
  • sloc: sh: 5,748; makefile: 912; ansic: 664; asm: 228; python: 162
file content (53 lines) | stat: -rw-r--r-- 1,345 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
syntax = "proto2";

package docker.protobuf.plugin;

import "google/protobuf/descriptor.proto";

message WatchSelectors {
	// supported by all object types
	optional bool id = 1;
	optional bool id_prefix = 2;
	optional bool name = 3;
	optional bool name_prefix = 4;
	optional bool custom = 5;
	optional bool custom_prefix = 6;

	// supported by tasks only
	optional bool service_id = 7;
	optional bool node_id = 8;
	optional bool slot = 9;
	optional bool desired_state = 10;

	// supported by nodes only
	optional bool role = 11;
	optional bool membership = 12;

	// supported by: resource
	optional bool kind = 13;
}

message StoreObject {
	required WatchSelectors watch_selectors = 1;
}

extend google.protobuf.MessageOptions {
	optional bool deepcopy = 70000 [default=true];
	optional StoreObject store_object = 70001;
}

message TLSAuthorization {
	// Roles contains the acceptable TLS OU roles for the handler.
	repeated string roles = 1;

	// Insecure is set to true if this method does not require
	// authorization. NOTE: Specifying both "insecure" and a nonempty
	// list of roles is invalid. This would fail at codegen time.
	optional bool insecure = 2;
}

extend google.protobuf.MethodOptions {
	// TLSAuthorization contains the authorization parameters for this
	// method.
	optional TLSAuthorization tls_authorization = 73626345;
}