github.com/ttpreport/gvisor-ligolo@v0.0.0-20240123134145-a858404967ba/pkg/sentry/control/control_go_proto/control.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.30.0 4 // protoc v3.21.7 5 // source: pkg/sentry/control/control.proto 6 7 package control_go_proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type ControlConfig_Endpoint int32 25 26 const ( 27 ControlConfig_UNKNOWN ControlConfig_Endpoint = 0 28 ControlConfig_EVENTS ControlConfig_Endpoint = 1 29 ControlConfig_FS ControlConfig_Endpoint = 2 30 ControlConfig_LIFECYCLE ControlConfig_Endpoint = 3 31 ControlConfig_LOGGING ControlConfig_Endpoint = 4 32 ControlConfig_PROFILE ControlConfig_Endpoint = 5 33 ControlConfig_USAGE ControlConfig_Endpoint = 6 34 ControlConfig_PROC ControlConfig_Endpoint = 7 35 ControlConfig_STATE ControlConfig_Endpoint = 8 36 ControlConfig_DEBUG ControlConfig_Endpoint = 9 37 ControlConfig_CGROUPS ControlConfig_Endpoint = 10 38 ) 39 40 // Enum value maps for ControlConfig_Endpoint. 41 var ( 42 ControlConfig_Endpoint_name = map[int32]string{ 43 0: "UNKNOWN", 44 1: "EVENTS", 45 2: "FS", 46 3: "LIFECYCLE", 47 4: "LOGGING", 48 5: "PROFILE", 49 6: "USAGE", 50 7: "PROC", 51 8: "STATE", 52 9: "DEBUG", 53 10: "CGROUPS", 54 } 55 ControlConfig_Endpoint_value = map[string]int32{ 56 "UNKNOWN": 0, 57 "EVENTS": 1, 58 "FS": 2, 59 "LIFECYCLE": 3, 60 "LOGGING": 4, 61 "PROFILE": 5, 62 "USAGE": 6, 63 "PROC": 7, 64 "STATE": 8, 65 "DEBUG": 9, 66 "CGROUPS": 10, 67 } 68 ) 69 70 func (x ControlConfig_Endpoint) Enum() *ControlConfig_Endpoint { 71 p := new(ControlConfig_Endpoint) 72 *p = x 73 return p 74 } 75 76 func (x ControlConfig_Endpoint) String() string { 77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 78 } 79 80 func (ControlConfig_Endpoint) Descriptor() protoreflect.EnumDescriptor { 81 return file_pkg_sentry_control_control_proto_enumTypes[0].Descriptor() 82 } 83 84 func (ControlConfig_Endpoint) Type() protoreflect.EnumType { 85 return &file_pkg_sentry_control_control_proto_enumTypes[0] 86 } 87 88 func (x ControlConfig_Endpoint) Number() protoreflect.EnumNumber { 89 return protoreflect.EnumNumber(x) 90 } 91 92 // Deprecated: Use ControlConfig_Endpoint.Descriptor instead. 93 func (ControlConfig_Endpoint) EnumDescriptor() ([]byte, []int) { 94 return file_pkg_sentry_control_control_proto_rawDescGZIP(), []int{0, 0} 95 } 96 97 type ControlConfig struct { 98 state protoimpl.MessageState 99 sizeCache protoimpl.SizeCache 100 unknownFields protoimpl.UnknownFields 101 102 AllowedControls []ControlConfig_Endpoint `protobuf:"varint,1,rep,packed,name=allowed_controls,json=allowedControls,proto3,enum=gvisor.ControlConfig_Endpoint" json:"allowed_controls,omitempty"` 103 } 104 105 func (x *ControlConfig) Reset() { 106 *x = ControlConfig{} 107 if protoimpl.UnsafeEnabled { 108 mi := &file_pkg_sentry_control_control_proto_msgTypes[0] 109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 ms.StoreMessageInfo(mi) 111 } 112 } 113 114 func (x *ControlConfig) String() string { 115 return protoimpl.X.MessageStringOf(x) 116 } 117 118 func (*ControlConfig) ProtoMessage() {} 119 120 func (x *ControlConfig) ProtoReflect() protoreflect.Message { 121 mi := &file_pkg_sentry_control_control_proto_msgTypes[0] 122 if protoimpl.UnsafeEnabled && x != nil { 123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 124 if ms.LoadMessageInfo() == nil { 125 ms.StoreMessageInfo(mi) 126 } 127 return ms 128 } 129 return mi.MessageOf(x) 130 } 131 132 // Deprecated: Use ControlConfig.ProtoReflect.Descriptor instead. 133 func (*ControlConfig) Descriptor() ([]byte, []int) { 134 return file_pkg_sentry_control_control_proto_rawDescGZIP(), []int{0} 135 } 136 137 func (x *ControlConfig) GetAllowedControls() []ControlConfig_Endpoint { 138 if x != nil { 139 return x.AllowedControls 140 } 141 return nil 142 } 143 144 type ContainerStartedEvent struct { 145 state protoimpl.MessageState 146 sizeCache protoimpl.SizeCache 147 unknownFields protoimpl.UnknownFields 148 149 Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"` 150 ContainerId string `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 151 RequestReceived *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=request_received,json=requestReceived,proto3" json:"request_received,omitempty"` 152 RequestCompleted *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=request_completed,json=requestCompleted,proto3" json:"request_completed,omitempty"` 153 } 154 155 func (x *ContainerStartedEvent) Reset() { 156 *x = ContainerStartedEvent{} 157 if protoimpl.UnsafeEnabled { 158 mi := &file_pkg_sentry_control_control_proto_msgTypes[1] 159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 160 ms.StoreMessageInfo(mi) 161 } 162 } 163 164 func (x *ContainerStartedEvent) String() string { 165 return protoimpl.X.MessageStringOf(x) 166 } 167 168 func (*ContainerStartedEvent) ProtoMessage() {} 169 170 func (x *ContainerStartedEvent) ProtoReflect() protoreflect.Message { 171 mi := &file_pkg_sentry_control_control_proto_msgTypes[1] 172 if protoimpl.UnsafeEnabled && x != nil { 173 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 174 if ms.LoadMessageInfo() == nil { 175 ms.StoreMessageInfo(mi) 176 } 177 return ms 178 } 179 return mi.MessageOf(x) 180 } 181 182 // Deprecated: Use ContainerStartedEvent.ProtoReflect.Descriptor instead. 183 func (*ContainerStartedEvent) Descriptor() ([]byte, []int) { 184 return file_pkg_sentry_control_control_proto_rawDescGZIP(), []int{1} 185 } 186 187 func (x *ContainerStartedEvent) GetStarted() bool { 188 if x != nil { 189 return x.Started 190 } 191 return false 192 } 193 194 func (x *ContainerStartedEvent) GetContainerId() string { 195 if x != nil { 196 return x.ContainerId 197 } 198 return "" 199 } 200 201 func (x *ContainerStartedEvent) GetRequestReceived() *timestamppb.Timestamp { 202 if x != nil { 203 return x.RequestReceived 204 } 205 return nil 206 } 207 208 func (x *ContainerStartedEvent) GetRequestCompleted() *timestamppb.Timestamp { 209 if x != nil { 210 return x.RequestCompleted 211 } 212 return nil 213 } 214 215 type ContainerExitEvent struct { 216 state protoimpl.MessageState 217 sizeCache protoimpl.SizeCache 218 unknownFields protoimpl.UnknownFields 219 220 ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 221 ExitStatus uint32 `protobuf:"varint,2,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 222 } 223 224 func (x *ContainerExitEvent) Reset() { 225 *x = ContainerExitEvent{} 226 if protoimpl.UnsafeEnabled { 227 mi := &file_pkg_sentry_control_control_proto_msgTypes[2] 228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 229 ms.StoreMessageInfo(mi) 230 } 231 } 232 233 func (x *ContainerExitEvent) String() string { 234 return protoimpl.X.MessageStringOf(x) 235 } 236 237 func (*ContainerExitEvent) ProtoMessage() {} 238 239 func (x *ContainerExitEvent) ProtoReflect() protoreflect.Message { 240 mi := &file_pkg_sentry_control_control_proto_msgTypes[2] 241 if protoimpl.UnsafeEnabled && x != nil { 242 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 243 if ms.LoadMessageInfo() == nil { 244 ms.StoreMessageInfo(mi) 245 } 246 return ms 247 } 248 return mi.MessageOf(x) 249 } 250 251 // Deprecated: Use ContainerExitEvent.ProtoReflect.Descriptor instead. 252 func (*ContainerExitEvent) Descriptor() ([]byte, []int) { 253 return file_pkg_sentry_control_control_proto_rawDescGZIP(), []int{2} 254 } 255 256 func (x *ContainerExitEvent) GetContainerId() string { 257 if x != nil { 258 return x.ContainerId 259 } 260 return "" 261 } 262 263 func (x *ContainerExitEvent) GetExitStatus() uint32 { 264 if x != nil { 265 return x.ExitStatus 266 } 267 return 0 268 } 269 270 var File_pkg_sentry_control_control_proto protoreflect.FileDescriptor 271 272 var file_pkg_sentry_control_control_proto_rawDesc = []byte{ 273 0x0a, 0x20, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 274 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 275 0x74, 0x6f, 0x12, 0x06, 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 276 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 277 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x0d, 278 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 279 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 280 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x76, 0x69, 0x73, 0x6f, 0x72, 281 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 282 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 283 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 284 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 285 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x53, 0x10, 0x01, 0x12, 0x06, 286 0x0a, 0x02, 0x46, 0x53, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x49, 0x46, 0x45, 0x43, 0x59, 287 0x43, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x4f, 0x47, 0x47, 0x49, 0x4e, 0x47, 288 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x05, 0x12, 289 0x09, 0x0a, 0x05, 0x55, 0x53, 0x41, 0x47, 0x45, 0x10, 0x06, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x52, 290 0x4f, 0x43, 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 291 0x09, 0x0a, 0x05, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x47, 292 0x52, 0x4f, 0x55, 0x50, 0x53, 0x10, 0x0a, 0x22, 0xe4, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 293 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 294 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 295 0x28, 0x08, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 296 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 297 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x45, 298 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 299 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 300 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 301 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x63, 302 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x47, 0x0a, 0x11, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 303 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 304 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 305 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x72, 0x65, 306 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x58, 307 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x78, 0x69, 0x74, 0x45, 308 0x76, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 309 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 310 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x69, 0x74, 0x5f, 311 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x78, 312 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 313 } 314 315 var ( 316 file_pkg_sentry_control_control_proto_rawDescOnce sync.Once 317 file_pkg_sentry_control_control_proto_rawDescData = file_pkg_sentry_control_control_proto_rawDesc 318 ) 319 320 func file_pkg_sentry_control_control_proto_rawDescGZIP() []byte { 321 file_pkg_sentry_control_control_proto_rawDescOnce.Do(func() { 322 file_pkg_sentry_control_control_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_sentry_control_control_proto_rawDescData) 323 }) 324 return file_pkg_sentry_control_control_proto_rawDescData 325 } 326 327 var file_pkg_sentry_control_control_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 328 var file_pkg_sentry_control_control_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 329 var file_pkg_sentry_control_control_proto_goTypes = []interface{}{ 330 (ControlConfig_Endpoint)(0), // 0: gvisor.ControlConfig.Endpoint 331 (*ControlConfig)(nil), // 1: gvisor.ControlConfig 332 (*ContainerStartedEvent)(nil), // 2: gvisor.ContainerStartedEvent 333 (*ContainerExitEvent)(nil), // 3: gvisor.ContainerExitEvent 334 (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp 335 } 336 var file_pkg_sentry_control_control_proto_depIdxs = []int32{ 337 0, // 0: gvisor.ControlConfig.allowed_controls:type_name -> gvisor.ControlConfig.Endpoint 338 4, // 1: gvisor.ContainerStartedEvent.request_received:type_name -> google.protobuf.Timestamp 339 4, // 2: gvisor.ContainerStartedEvent.request_completed:type_name -> google.protobuf.Timestamp 340 3, // [3:3] is the sub-list for method output_type 341 3, // [3:3] is the sub-list for method input_type 342 3, // [3:3] is the sub-list for extension type_name 343 3, // [3:3] is the sub-list for extension extendee 344 0, // [0:3] is the sub-list for field type_name 345 } 346 347 func init() { file_pkg_sentry_control_control_proto_init() } 348 func file_pkg_sentry_control_control_proto_init() { 349 if File_pkg_sentry_control_control_proto != nil { 350 return 351 } 352 if !protoimpl.UnsafeEnabled { 353 file_pkg_sentry_control_control_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 354 switch v := v.(*ControlConfig); i { 355 case 0: 356 return &v.state 357 case 1: 358 return &v.sizeCache 359 case 2: 360 return &v.unknownFields 361 default: 362 return nil 363 } 364 } 365 file_pkg_sentry_control_control_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 366 switch v := v.(*ContainerStartedEvent); i { 367 case 0: 368 return &v.state 369 case 1: 370 return &v.sizeCache 371 case 2: 372 return &v.unknownFields 373 default: 374 return nil 375 } 376 } 377 file_pkg_sentry_control_control_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 378 switch v := v.(*ContainerExitEvent); i { 379 case 0: 380 return &v.state 381 case 1: 382 return &v.sizeCache 383 case 2: 384 return &v.unknownFields 385 default: 386 return nil 387 } 388 } 389 } 390 type x struct{} 391 out := protoimpl.TypeBuilder{ 392 File: protoimpl.DescBuilder{ 393 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 394 RawDescriptor: file_pkg_sentry_control_control_proto_rawDesc, 395 NumEnums: 1, 396 NumMessages: 3, 397 NumExtensions: 0, 398 NumServices: 0, 399 }, 400 GoTypes: file_pkg_sentry_control_control_proto_goTypes, 401 DependencyIndexes: file_pkg_sentry_control_control_proto_depIdxs, 402 EnumInfos: file_pkg_sentry_control_control_proto_enumTypes, 403 MessageInfos: file_pkg_sentry_control_control_proto_msgTypes, 404 }.Build() 405 File_pkg_sentry_control_control_proto = out.File 406 file_pkg_sentry_control_control_proto_rawDesc = nil 407 file_pkg_sentry_control_control_proto_goTypes = nil 408 file_pkg_sentry_control_control_proto_depIdxs = nil 409 }