github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/application/application.pb.gw.go (about) 1 // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. 2 // source: server/application/application.proto 3 4 /* 5 Package application is a reverse proxy. 6 7 It translates gRPC into RESTful JSON APIs. 8 */ 9 package application 10 11 import ( 12 "context" 13 "io" 14 "net/http" 15 16 "github.com/golang/protobuf/descriptor" 17 "github.com/golang/protobuf/proto" 18 "github.com/grpc-ecosystem/grpc-gateway/runtime" 19 "github.com/grpc-ecosystem/grpc-gateway/utilities" 20 "google.golang.org/grpc" 21 "google.golang.org/grpc/codes" 22 "google.golang.org/grpc/grpclog" 23 "google.golang.org/grpc/status" 24 ) 25 26 // Suppress "imported and not used" errors 27 var _ codes.Code 28 var _ io.Reader 29 var _ status.Status 30 var _ = runtime.String 31 var _ = utilities.NewDoubleArray 32 var _ = descriptor.ForMessage 33 34 var ( 35 filter_ApplicationService_List_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 36 ) 37 38 func request_ApplicationService_List_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 39 var protoReq ApplicationQuery 40 var metadata runtime.ServerMetadata 41 42 if err := req.ParseForm(); err != nil { 43 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 44 } 45 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_List_0); err != nil { 46 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 47 } 48 49 msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 50 return msg, metadata, err 51 52 } 53 54 func local_request_ApplicationService_List_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 55 var protoReq ApplicationQuery 56 var metadata runtime.ServerMetadata 57 58 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_List_0); err != nil { 59 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 60 } 61 62 msg, err := server.List(ctx, &protoReq) 63 return msg, metadata, err 64 65 } 66 67 var ( 68 filter_ApplicationService_ListResourceEvents_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 69 ) 70 71 func request_ApplicationService_ListResourceEvents_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 72 var protoReq ApplicationResourceEventsQuery 73 var metadata runtime.ServerMetadata 74 75 var ( 76 val string 77 ok bool 78 err error 79 _ = err 80 ) 81 82 val, ok = pathParams["name"] 83 if !ok { 84 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 85 } 86 87 protoReq.Name, err = runtime.StringP(val) 88 89 if err != nil { 90 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 91 } 92 93 if err := req.ParseForm(); err != nil { 94 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 95 } 96 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_ListResourceEvents_0); err != nil { 97 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 98 } 99 100 msg, err := client.ListResourceEvents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 101 return msg, metadata, err 102 103 } 104 105 func local_request_ApplicationService_ListResourceEvents_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 106 var protoReq ApplicationResourceEventsQuery 107 var metadata runtime.ServerMetadata 108 109 var ( 110 val string 111 ok bool 112 err error 113 _ = err 114 ) 115 116 val, ok = pathParams["name"] 117 if !ok { 118 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 119 } 120 121 protoReq.Name, err = runtime.StringP(val) 122 123 if err != nil { 124 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 125 } 126 127 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_ListResourceEvents_0); err != nil { 128 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 129 } 130 131 msg, err := server.ListResourceEvents(ctx, &protoReq) 132 return msg, metadata, err 133 134 } 135 136 var ( 137 filter_ApplicationService_Watch_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 138 ) 139 140 func request_ApplicationService_Watch_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (ApplicationService_WatchClient, runtime.ServerMetadata, error) { 141 var protoReq ApplicationQuery 142 var metadata runtime.ServerMetadata 143 144 if err := req.ParseForm(); err != nil { 145 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 146 } 147 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_Watch_0); err != nil { 148 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 149 } 150 151 stream, err := client.Watch(ctx, &protoReq) 152 if err != nil { 153 return nil, metadata, err 154 } 155 header, err := stream.Header() 156 if err != nil { 157 return nil, metadata, err 158 } 159 metadata.HeaderMD = header 160 return stream, metadata, nil 161 162 } 163 164 var ( 165 filter_ApplicationService_Create_0 = &utilities.DoubleArray{Encoding: map[string]int{"application": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 166 ) 167 168 func request_ApplicationService_Create_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 169 var protoReq ApplicationCreateRequest 170 var metadata runtime.ServerMetadata 171 172 newReader, berr := utilities.IOReaderFactory(req.Body) 173 if berr != nil { 174 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 175 } 176 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Application); err != nil && err != io.EOF { 177 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 178 } 179 180 if err := req.ParseForm(); err != nil { 181 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 182 } 183 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_Create_0); err != nil { 184 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 185 } 186 187 msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 188 return msg, metadata, err 189 190 } 191 192 func local_request_ApplicationService_Create_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 193 var protoReq ApplicationCreateRequest 194 var metadata runtime.ServerMetadata 195 196 newReader, berr := utilities.IOReaderFactory(req.Body) 197 if berr != nil { 198 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 199 } 200 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Application); err != nil && err != io.EOF { 201 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 202 } 203 204 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_Create_0); err != nil { 205 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 206 } 207 208 msg, err := server.Create(ctx, &protoReq) 209 return msg, metadata, err 210 211 } 212 213 var ( 214 filter_ApplicationService_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 215 ) 216 217 func request_ApplicationService_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 218 var protoReq ApplicationQuery 219 var metadata runtime.ServerMetadata 220 221 var ( 222 val string 223 ok bool 224 err error 225 _ = err 226 ) 227 228 val, ok = pathParams["name"] 229 if !ok { 230 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 231 } 232 233 protoReq.Name, err = runtime.StringP(val) 234 235 if err != nil { 236 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 237 } 238 239 if err := req.ParseForm(); err != nil { 240 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 241 } 242 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_Get_0); err != nil { 243 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 244 } 245 246 msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 247 return msg, metadata, err 248 249 } 250 251 func local_request_ApplicationService_Get_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 252 var protoReq ApplicationQuery 253 var metadata runtime.ServerMetadata 254 255 var ( 256 val string 257 ok bool 258 err error 259 _ = err 260 ) 261 262 val, ok = pathParams["name"] 263 if !ok { 264 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 265 } 266 267 protoReq.Name, err = runtime.StringP(val) 268 269 if err != nil { 270 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 271 } 272 273 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_Get_0); err != nil { 274 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 275 } 276 277 msg, err := server.Get(ctx, &protoReq) 278 return msg, metadata, err 279 280 } 281 282 func request_ApplicationService_GetApplicationSyncWindows_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 283 var protoReq ApplicationSyncWindowsQuery 284 var metadata runtime.ServerMetadata 285 286 var ( 287 val string 288 ok bool 289 err error 290 _ = err 291 ) 292 293 val, ok = pathParams["name"] 294 if !ok { 295 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 296 } 297 298 protoReq.Name, err = runtime.StringP(val) 299 300 if err != nil { 301 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 302 } 303 304 msg, err := client.GetApplicationSyncWindows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 305 return msg, metadata, err 306 307 } 308 309 func local_request_ApplicationService_GetApplicationSyncWindows_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 310 var protoReq ApplicationSyncWindowsQuery 311 var metadata runtime.ServerMetadata 312 313 var ( 314 val string 315 ok bool 316 err error 317 _ = err 318 ) 319 320 val, ok = pathParams["name"] 321 if !ok { 322 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 323 } 324 325 protoReq.Name, err = runtime.StringP(val) 326 327 if err != nil { 328 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 329 } 330 331 msg, err := server.GetApplicationSyncWindows(ctx, &protoReq) 332 return msg, metadata, err 333 334 } 335 336 func request_ApplicationService_RevisionMetadata_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 337 var protoReq RevisionMetadataQuery 338 var metadata runtime.ServerMetadata 339 340 var ( 341 val string 342 ok bool 343 err error 344 _ = err 345 ) 346 347 val, ok = pathParams["name"] 348 if !ok { 349 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 350 } 351 352 protoReq.Name, err = runtime.StringP(val) 353 354 if err != nil { 355 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 356 } 357 358 val, ok = pathParams["revision"] 359 if !ok { 360 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "revision") 361 } 362 363 protoReq.Revision, err = runtime.StringP(val) 364 365 if err != nil { 366 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "revision", err) 367 } 368 369 msg, err := client.RevisionMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 370 return msg, metadata, err 371 372 } 373 374 func local_request_ApplicationService_RevisionMetadata_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 375 var protoReq RevisionMetadataQuery 376 var metadata runtime.ServerMetadata 377 378 var ( 379 val string 380 ok bool 381 err error 382 _ = err 383 ) 384 385 val, ok = pathParams["name"] 386 if !ok { 387 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 388 } 389 390 protoReq.Name, err = runtime.StringP(val) 391 392 if err != nil { 393 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 394 } 395 396 val, ok = pathParams["revision"] 397 if !ok { 398 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "revision") 399 } 400 401 protoReq.Revision, err = runtime.StringP(val) 402 403 if err != nil { 404 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "revision", err) 405 } 406 407 msg, err := server.RevisionMetadata(ctx, &protoReq) 408 return msg, metadata, err 409 410 } 411 412 var ( 413 filter_ApplicationService_GetManifests_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 414 ) 415 416 func request_ApplicationService_GetManifests_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 417 var protoReq ApplicationManifestQuery 418 var metadata runtime.ServerMetadata 419 420 var ( 421 val string 422 ok bool 423 err error 424 _ = err 425 ) 426 427 val, ok = pathParams["name"] 428 if !ok { 429 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 430 } 431 432 protoReq.Name, err = runtime.StringP(val) 433 434 if err != nil { 435 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 436 } 437 438 if err := req.ParseForm(); err != nil { 439 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 440 } 441 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_GetManifests_0); err != nil { 442 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 443 } 444 445 msg, err := client.GetManifests(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 446 return msg, metadata, err 447 448 } 449 450 func local_request_ApplicationService_GetManifests_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 451 var protoReq ApplicationManifestQuery 452 var metadata runtime.ServerMetadata 453 454 var ( 455 val string 456 ok bool 457 err error 458 _ = err 459 ) 460 461 val, ok = pathParams["name"] 462 if !ok { 463 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 464 } 465 466 protoReq.Name, err = runtime.StringP(val) 467 468 if err != nil { 469 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 470 } 471 472 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_GetManifests_0); err != nil { 473 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 474 } 475 476 msg, err := server.GetManifests(ctx, &protoReq) 477 return msg, metadata, err 478 479 } 480 481 var ( 482 filter_ApplicationService_Update_0 = &utilities.DoubleArray{Encoding: map[string]int{"application": 0, "metadata": 1, "name": 2}, Base: []int{1, 2, 1, 1, 0, 0}, Check: []int{0, 1, 2, 3, 4, 2}} 483 ) 484 485 func request_ApplicationService_Update_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 486 var protoReq ApplicationUpdateRequest 487 var metadata runtime.ServerMetadata 488 489 newReader, berr := utilities.IOReaderFactory(req.Body) 490 if berr != nil { 491 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 492 } 493 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Application); err != nil && err != io.EOF { 494 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 495 } 496 497 var ( 498 val string 499 ok bool 500 err error 501 _ = err 502 ) 503 504 val, ok = pathParams["application.metadata.name"] 505 if !ok { 506 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "application.metadata.name") 507 } 508 509 protoReq.GetApplication().GetMetadata().Name, err = runtime.StringP(val) 510 511 if err != nil { 512 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "application.metadata.name", err) 513 } 514 515 if err := req.ParseForm(); err != nil { 516 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 517 } 518 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_Update_0); err != nil { 519 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 520 } 521 522 msg, err := client.Update(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 523 return msg, metadata, err 524 525 } 526 527 func local_request_ApplicationService_Update_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 528 var protoReq ApplicationUpdateRequest 529 var metadata runtime.ServerMetadata 530 531 newReader, berr := utilities.IOReaderFactory(req.Body) 532 if berr != nil { 533 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 534 } 535 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Application); err != nil && err != io.EOF { 536 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 537 } 538 539 var ( 540 val string 541 ok bool 542 err error 543 _ = err 544 ) 545 546 val, ok = pathParams["application.metadata.name"] 547 if !ok { 548 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "application.metadata.name") 549 } 550 551 protoReq.GetApplication().GetMetadata().Name, err = runtime.StringP(val) 552 553 if err != nil { 554 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "application.metadata.name", err) 555 } 556 557 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_Update_0); err != nil { 558 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 559 } 560 561 msg, err := server.Update(ctx, &protoReq) 562 return msg, metadata, err 563 564 } 565 566 var ( 567 filter_ApplicationService_UpdateSpec_0 = &utilities.DoubleArray{Encoding: map[string]int{"spec": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} 568 ) 569 570 func request_ApplicationService_UpdateSpec_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 571 var protoReq ApplicationUpdateSpecRequest 572 var metadata runtime.ServerMetadata 573 574 newReader, berr := utilities.IOReaderFactory(req.Body) 575 if berr != nil { 576 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 577 } 578 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Spec); err != nil && err != io.EOF { 579 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 580 } 581 582 var ( 583 val string 584 ok bool 585 err error 586 _ = err 587 ) 588 589 val, ok = pathParams["name"] 590 if !ok { 591 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 592 } 593 594 protoReq.Name, err = runtime.StringP(val) 595 596 if err != nil { 597 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 598 } 599 600 if err := req.ParseForm(); err != nil { 601 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 602 } 603 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_UpdateSpec_0); err != nil { 604 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 605 } 606 607 msg, err := client.UpdateSpec(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 608 return msg, metadata, err 609 610 } 611 612 func local_request_ApplicationService_UpdateSpec_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 613 var protoReq ApplicationUpdateSpecRequest 614 var metadata runtime.ServerMetadata 615 616 newReader, berr := utilities.IOReaderFactory(req.Body) 617 if berr != nil { 618 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 619 } 620 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Spec); err != nil && err != io.EOF { 621 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 622 } 623 624 var ( 625 val string 626 ok bool 627 err error 628 _ = err 629 ) 630 631 val, ok = pathParams["name"] 632 if !ok { 633 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 634 } 635 636 protoReq.Name, err = runtime.StringP(val) 637 638 if err != nil { 639 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 640 } 641 642 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_UpdateSpec_0); err != nil { 643 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 644 } 645 646 msg, err := server.UpdateSpec(ctx, &protoReq) 647 return msg, metadata, err 648 649 } 650 651 func request_ApplicationService_Patch_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 652 var protoReq ApplicationPatchRequest 653 var metadata runtime.ServerMetadata 654 655 newReader, berr := utilities.IOReaderFactory(req.Body) 656 if berr != nil { 657 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 658 } 659 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 660 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 661 } 662 663 var ( 664 val string 665 ok bool 666 err error 667 _ = err 668 ) 669 670 val, ok = pathParams["name"] 671 if !ok { 672 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 673 } 674 675 protoReq.Name, err = runtime.StringP(val) 676 677 if err != nil { 678 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 679 } 680 681 msg, err := client.Patch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 682 return msg, metadata, err 683 684 } 685 686 func local_request_ApplicationService_Patch_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 687 var protoReq ApplicationPatchRequest 688 var metadata runtime.ServerMetadata 689 690 newReader, berr := utilities.IOReaderFactory(req.Body) 691 if berr != nil { 692 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 693 } 694 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 695 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 696 } 697 698 var ( 699 val string 700 ok bool 701 err error 702 _ = err 703 ) 704 705 val, ok = pathParams["name"] 706 if !ok { 707 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 708 } 709 710 protoReq.Name, err = runtime.StringP(val) 711 712 if err != nil { 713 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 714 } 715 716 msg, err := server.Patch(ctx, &protoReq) 717 return msg, metadata, err 718 719 } 720 721 var ( 722 filter_ApplicationService_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 723 ) 724 725 func request_ApplicationService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 726 var protoReq ApplicationDeleteRequest 727 var metadata runtime.ServerMetadata 728 729 var ( 730 val string 731 ok bool 732 err error 733 _ = err 734 ) 735 736 val, ok = pathParams["name"] 737 if !ok { 738 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 739 } 740 741 protoReq.Name, err = runtime.StringP(val) 742 743 if err != nil { 744 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 745 } 746 747 if err := req.ParseForm(); err != nil { 748 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 749 } 750 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_Delete_0); err != nil { 751 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 752 } 753 754 msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 755 return msg, metadata, err 756 757 } 758 759 func local_request_ApplicationService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 760 var protoReq ApplicationDeleteRequest 761 var metadata runtime.ServerMetadata 762 763 var ( 764 val string 765 ok bool 766 err error 767 _ = err 768 ) 769 770 val, ok = pathParams["name"] 771 if !ok { 772 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 773 } 774 775 protoReq.Name, err = runtime.StringP(val) 776 777 if err != nil { 778 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 779 } 780 781 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_Delete_0); err != nil { 782 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 783 } 784 785 msg, err := server.Delete(ctx, &protoReq) 786 return msg, metadata, err 787 788 } 789 790 func request_ApplicationService_Sync_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 791 var protoReq ApplicationSyncRequest 792 var metadata runtime.ServerMetadata 793 794 newReader, berr := utilities.IOReaderFactory(req.Body) 795 if berr != nil { 796 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 797 } 798 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 799 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 800 } 801 802 var ( 803 val string 804 ok bool 805 err error 806 _ = err 807 ) 808 809 val, ok = pathParams["name"] 810 if !ok { 811 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 812 } 813 814 protoReq.Name, err = runtime.StringP(val) 815 816 if err != nil { 817 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 818 } 819 820 msg, err := client.Sync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 821 return msg, metadata, err 822 823 } 824 825 func local_request_ApplicationService_Sync_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 826 var protoReq ApplicationSyncRequest 827 var metadata runtime.ServerMetadata 828 829 newReader, berr := utilities.IOReaderFactory(req.Body) 830 if berr != nil { 831 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 832 } 833 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 834 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 835 } 836 837 var ( 838 val string 839 ok bool 840 err error 841 _ = err 842 ) 843 844 val, ok = pathParams["name"] 845 if !ok { 846 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 847 } 848 849 protoReq.Name, err = runtime.StringP(val) 850 851 if err != nil { 852 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 853 } 854 855 msg, err := server.Sync(ctx, &protoReq) 856 return msg, metadata, err 857 858 } 859 860 var ( 861 filter_ApplicationService_ManagedResources_0 = &utilities.DoubleArray{Encoding: map[string]int{"applicationName": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 862 ) 863 864 func request_ApplicationService_ManagedResources_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 865 var protoReq ResourcesQuery 866 var metadata runtime.ServerMetadata 867 868 var ( 869 val string 870 ok bool 871 err error 872 _ = err 873 ) 874 875 val, ok = pathParams["applicationName"] 876 if !ok { 877 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "applicationName") 878 } 879 880 protoReq.ApplicationName, err = runtime.StringP(val) 881 882 if err != nil { 883 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "applicationName", err) 884 } 885 886 if err := req.ParseForm(); err != nil { 887 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 888 } 889 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_ManagedResources_0); err != nil { 890 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 891 } 892 893 msg, err := client.ManagedResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 894 return msg, metadata, err 895 896 } 897 898 func local_request_ApplicationService_ManagedResources_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 899 var protoReq ResourcesQuery 900 var metadata runtime.ServerMetadata 901 902 var ( 903 val string 904 ok bool 905 err error 906 _ = err 907 ) 908 909 val, ok = pathParams["applicationName"] 910 if !ok { 911 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "applicationName") 912 } 913 914 protoReq.ApplicationName, err = runtime.StringP(val) 915 916 if err != nil { 917 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "applicationName", err) 918 } 919 920 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_ManagedResources_0); err != nil { 921 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 922 } 923 924 msg, err := server.ManagedResources(ctx, &protoReq) 925 return msg, metadata, err 926 927 } 928 929 var ( 930 filter_ApplicationService_ResourceTree_0 = &utilities.DoubleArray{Encoding: map[string]int{"applicationName": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 931 ) 932 933 func request_ApplicationService_ResourceTree_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 934 var protoReq ResourcesQuery 935 var metadata runtime.ServerMetadata 936 937 var ( 938 val string 939 ok bool 940 err error 941 _ = err 942 ) 943 944 val, ok = pathParams["applicationName"] 945 if !ok { 946 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "applicationName") 947 } 948 949 protoReq.ApplicationName, err = runtime.StringP(val) 950 951 if err != nil { 952 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "applicationName", err) 953 } 954 955 if err := req.ParseForm(); err != nil { 956 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 957 } 958 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_ResourceTree_0); err != nil { 959 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 960 } 961 962 msg, err := client.ResourceTree(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 963 return msg, metadata, err 964 965 } 966 967 func local_request_ApplicationService_ResourceTree_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 968 var protoReq ResourcesQuery 969 var metadata runtime.ServerMetadata 970 971 var ( 972 val string 973 ok bool 974 err error 975 _ = err 976 ) 977 978 val, ok = pathParams["applicationName"] 979 if !ok { 980 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "applicationName") 981 } 982 983 protoReq.ApplicationName, err = runtime.StringP(val) 984 985 if err != nil { 986 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "applicationName", err) 987 } 988 989 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_ResourceTree_0); err != nil { 990 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 991 } 992 993 msg, err := server.ResourceTree(ctx, &protoReq) 994 return msg, metadata, err 995 996 } 997 998 var ( 999 filter_ApplicationService_WatchResourceTree_0 = &utilities.DoubleArray{Encoding: map[string]int{"applicationName": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 1000 ) 1001 1002 func request_ApplicationService_WatchResourceTree_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (ApplicationService_WatchResourceTreeClient, runtime.ServerMetadata, error) { 1003 var protoReq ResourcesQuery 1004 var metadata runtime.ServerMetadata 1005 1006 var ( 1007 val string 1008 ok bool 1009 err error 1010 _ = err 1011 ) 1012 1013 val, ok = pathParams["applicationName"] 1014 if !ok { 1015 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "applicationName") 1016 } 1017 1018 protoReq.ApplicationName, err = runtime.StringP(val) 1019 1020 if err != nil { 1021 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "applicationName", err) 1022 } 1023 1024 if err := req.ParseForm(); err != nil { 1025 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1026 } 1027 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_WatchResourceTree_0); err != nil { 1028 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1029 } 1030 1031 stream, err := client.WatchResourceTree(ctx, &protoReq) 1032 if err != nil { 1033 return nil, metadata, err 1034 } 1035 header, err := stream.Header() 1036 if err != nil { 1037 return nil, metadata, err 1038 } 1039 metadata.HeaderMD = header 1040 return stream, metadata, nil 1041 1042 } 1043 1044 func request_ApplicationService_Rollback_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1045 var protoReq ApplicationRollbackRequest 1046 var metadata runtime.ServerMetadata 1047 1048 newReader, berr := utilities.IOReaderFactory(req.Body) 1049 if berr != nil { 1050 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1051 } 1052 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 1053 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1054 } 1055 1056 var ( 1057 val string 1058 ok bool 1059 err error 1060 _ = err 1061 ) 1062 1063 val, ok = pathParams["name"] 1064 if !ok { 1065 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1066 } 1067 1068 protoReq.Name, err = runtime.StringP(val) 1069 1070 if err != nil { 1071 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1072 } 1073 1074 msg, err := client.Rollback(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1075 return msg, metadata, err 1076 1077 } 1078 1079 func local_request_ApplicationService_Rollback_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1080 var protoReq ApplicationRollbackRequest 1081 var metadata runtime.ServerMetadata 1082 1083 newReader, berr := utilities.IOReaderFactory(req.Body) 1084 if berr != nil { 1085 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1086 } 1087 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 1088 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1089 } 1090 1091 var ( 1092 val string 1093 ok bool 1094 err error 1095 _ = err 1096 ) 1097 1098 val, ok = pathParams["name"] 1099 if !ok { 1100 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1101 } 1102 1103 protoReq.Name, err = runtime.StringP(val) 1104 1105 if err != nil { 1106 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1107 } 1108 1109 msg, err := server.Rollback(ctx, &protoReq) 1110 return msg, metadata, err 1111 1112 } 1113 1114 func request_ApplicationService_TerminateOperation_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1115 var protoReq OperationTerminateRequest 1116 var metadata runtime.ServerMetadata 1117 1118 var ( 1119 val string 1120 ok bool 1121 err error 1122 _ = err 1123 ) 1124 1125 val, ok = pathParams["name"] 1126 if !ok { 1127 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1128 } 1129 1130 protoReq.Name, err = runtime.StringP(val) 1131 1132 if err != nil { 1133 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1134 } 1135 1136 msg, err := client.TerminateOperation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1137 return msg, metadata, err 1138 1139 } 1140 1141 func local_request_ApplicationService_TerminateOperation_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1142 var protoReq OperationTerminateRequest 1143 var metadata runtime.ServerMetadata 1144 1145 var ( 1146 val string 1147 ok bool 1148 err error 1149 _ = err 1150 ) 1151 1152 val, ok = pathParams["name"] 1153 if !ok { 1154 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1155 } 1156 1157 protoReq.Name, err = runtime.StringP(val) 1158 1159 if err != nil { 1160 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1161 } 1162 1163 msg, err := server.TerminateOperation(ctx, &protoReq) 1164 return msg, metadata, err 1165 1166 } 1167 1168 var ( 1169 filter_ApplicationService_GetResource_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 1170 ) 1171 1172 func request_ApplicationService_GetResource_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1173 var protoReq ApplicationResourceRequest 1174 var metadata runtime.ServerMetadata 1175 1176 var ( 1177 val string 1178 ok bool 1179 err error 1180 _ = err 1181 ) 1182 1183 val, ok = pathParams["name"] 1184 if !ok { 1185 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1186 } 1187 1188 protoReq.Name, err = runtime.StringP(val) 1189 1190 if err != nil { 1191 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1192 } 1193 1194 if err := req.ParseForm(); err != nil { 1195 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1196 } 1197 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_GetResource_0); err != nil { 1198 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1199 } 1200 1201 msg, err := client.GetResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1202 return msg, metadata, err 1203 1204 } 1205 1206 func local_request_ApplicationService_GetResource_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1207 var protoReq ApplicationResourceRequest 1208 var metadata runtime.ServerMetadata 1209 1210 var ( 1211 val string 1212 ok bool 1213 err error 1214 _ = err 1215 ) 1216 1217 val, ok = pathParams["name"] 1218 if !ok { 1219 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1220 } 1221 1222 protoReq.Name, err = runtime.StringP(val) 1223 1224 if err != nil { 1225 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1226 } 1227 1228 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_GetResource_0); err != nil { 1229 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1230 } 1231 1232 msg, err := server.GetResource(ctx, &protoReq) 1233 return msg, metadata, err 1234 1235 } 1236 1237 var ( 1238 filter_ApplicationService_PatchResource_0 = &utilities.DoubleArray{Encoding: map[string]int{"patch": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} 1239 ) 1240 1241 func request_ApplicationService_PatchResource_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1242 var protoReq ApplicationResourcePatchRequest 1243 var metadata runtime.ServerMetadata 1244 1245 newReader, berr := utilities.IOReaderFactory(req.Body) 1246 if berr != nil { 1247 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1248 } 1249 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Patch); err != nil && err != io.EOF { 1250 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1251 } 1252 1253 var ( 1254 val string 1255 ok bool 1256 err error 1257 _ = err 1258 ) 1259 1260 val, ok = pathParams["name"] 1261 if !ok { 1262 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1263 } 1264 1265 protoReq.Name, err = runtime.StringP(val) 1266 1267 if err != nil { 1268 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1269 } 1270 1271 if err := req.ParseForm(); err != nil { 1272 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1273 } 1274 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_PatchResource_0); err != nil { 1275 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1276 } 1277 1278 msg, err := client.PatchResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1279 return msg, metadata, err 1280 1281 } 1282 1283 func local_request_ApplicationService_PatchResource_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1284 var protoReq ApplicationResourcePatchRequest 1285 var metadata runtime.ServerMetadata 1286 1287 newReader, berr := utilities.IOReaderFactory(req.Body) 1288 if berr != nil { 1289 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1290 } 1291 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Patch); err != nil && err != io.EOF { 1292 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1293 } 1294 1295 var ( 1296 val string 1297 ok bool 1298 err error 1299 _ = err 1300 ) 1301 1302 val, ok = pathParams["name"] 1303 if !ok { 1304 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1305 } 1306 1307 protoReq.Name, err = runtime.StringP(val) 1308 1309 if err != nil { 1310 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1311 } 1312 1313 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_PatchResource_0); err != nil { 1314 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1315 } 1316 1317 msg, err := server.PatchResource(ctx, &protoReq) 1318 return msg, metadata, err 1319 1320 } 1321 1322 var ( 1323 filter_ApplicationService_ListResourceActions_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 1324 ) 1325 1326 func request_ApplicationService_ListResourceActions_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1327 var protoReq ApplicationResourceRequest 1328 var metadata runtime.ServerMetadata 1329 1330 var ( 1331 val string 1332 ok bool 1333 err error 1334 _ = err 1335 ) 1336 1337 val, ok = pathParams["name"] 1338 if !ok { 1339 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1340 } 1341 1342 protoReq.Name, err = runtime.StringP(val) 1343 1344 if err != nil { 1345 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1346 } 1347 1348 if err := req.ParseForm(); err != nil { 1349 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1350 } 1351 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_ListResourceActions_0); err != nil { 1352 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1353 } 1354 1355 msg, err := client.ListResourceActions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1356 return msg, metadata, err 1357 1358 } 1359 1360 func local_request_ApplicationService_ListResourceActions_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1361 var protoReq ApplicationResourceRequest 1362 var metadata runtime.ServerMetadata 1363 1364 var ( 1365 val string 1366 ok bool 1367 err error 1368 _ = err 1369 ) 1370 1371 val, ok = pathParams["name"] 1372 if !ok { 1373 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1374 } 1375 1376 protoReq.Name, err = runtime.StringP(val) 1377 1378 if err != nil { 1379 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1380 } 1381 1382 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_ListResourceActions_0); err != nil { 1383 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1384 } 1385 1386 msg, err := server.ListResourceActions(ctx, &protoReq) 1387 return msg, metadata, err 1388 1389 } 1390 1391 var ( 1392 filter_ApplicationService_RunResourceAction_0 = &utilities.DoubleArray{Encoding: map[string]int{"action": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} 1393 ) 1394 1395 func request_ApplicationService_RunResourceAction_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1396 var protoReq ResourceActionRunRequest 1397 var metadata runtime.ServerMetadata 1398 1399 newReader, berr := utilities.IOReaderFactory(req.Body) 1400 if berr != nil { 1401 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1402 } 1403 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Action); err != nil && err != io.EOF { 1404 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1405 } 1406 1407 var ( 1408 val string 1409 ok bool 1410 err error 1411 _ = err 1412 ) 1413 1414 val, ok = pathParams["name"] 1415 if !ok { 1416 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1417 } 1418 1419 protoReq.Name, err = runtime.StringP(val) 1420 1421 if err != nil { 1422 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1423 } 1424 1425 if err := req.ParseForm(); err != nil { 1426 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1427 } 1428 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_RunResourceAction_0); err != nil { 1429 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1430 } 1431 1432 msg, err := client.RunResourceAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1433 return msg, metadata, err 1434 1435 } 1436 1437 func local_request_ApplicationService_RunResourceAction_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1438 var protoReq ResourceActionRunRequest 1439 var metadata runtime.ServerMetadata 1440 1441 newReader, berr := utilities.IOReaderFactory(req.Body) 1442 if berr != nil { 1443 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 1444 } 1445 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Action); err != nil && err != io.EOF { 1446 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1447 } 1448 1449 var ( 1450 val string 1451 ok bool 1452 err error 1453 _ = err 1454 ) 1455 1456 val, ok = pathParams["name"] 1457 if !ok { 1458 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1459 } 1460 1461 protoReq.Name, err = runtime.StringP(val) 1462 1463 if err != nil { 1464 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1465 } 1466 1467 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_RunResourceAction_0); err != nil { 1468 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1469 } 1470 1471 msg, err := server.RunResourceAction(ctx, &protoReq) 1472 return msg, metadata, err 1473 1474 } 1475 1476 var ( 1477 filter_ApplicationService_DeleteResource_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} 1478 ) 1479 1480 func request_ApplicationService_DeleteResource_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1481 var protoReq ApplicationResourceDeleteRequest 1482 var metadata runtime.ServerMetadata 1483 1484 var ( 1485 val string 1486 ok bool 1487 err error 1488 _ = err 1489 ) 1490 1491 val, ok = pathParams["name"] 1492 if !ok { 1493 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1494 } 1495 1496 protoReq.Name, err = runtime.StringP(val) 1497 1498 if err != nil { 1499 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1500 } 1501 1502 if err := req.ParseForm(); err != nil { 1503 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1504 } 1505 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_DeleteResource_0); err != nil { 1506 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1507 } 1508 1509 msg, err := client.DeleteResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 1510 return msg, metadata, err 1511 1512 } 1513 1514 func local_request_ApplicationService_DeleteResource_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 1515 var protoReq ApplicationResourceDeleteRequest 1516 var metadata runtime.ServerMetadata 1517 1518 var ( 1519 val string 1520 ok bool 1521 err error 1522 _ = err 1523 ) 1524 1525 val, ok = pathParams["name"] 1526 if !ok { 1527 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1528 } 1529 1530 protoReq.Name, err = runtime.StringP(val) 1531 1532 if err != nil { 1533 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1534 } 1535 1536 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ApplicationService_DeleteResource_0); err != nil { 1537 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1538 } 1539 1540 msg, err := server.DeleteResource(ctx, &protoReq) 1541 return msg, metadata, err 1542 1543 } 1544 1545 var ( 1546 filter_ApplicationService_PodLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0, "podName": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} 1547 ) 1548 1549 func request_ApplicationService_PodLogs_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationServiceClient, req *http.Request, pathParams map[string]string) (ApplicationService_PodLogsClient, runtime.ServerMetadata, error) { 1550 var protoReq ApplicationPodLogsQuery 1551 var metadata runtime.ServerMetadata 1552 1553 var ( 1554 val string 1555 ok bool 1556 err error 1557 _ = err 1558 ) 1559 1560 val, ok = pathParams["name"] 1561 if !ok { 1562 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 1563 } 1564 1565 protoReq.Name, err = runtime.StringP(val) 1566 1567 if err != nil { 1568 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 1569 } 1570 1571 val, ok = pathParams["podName"] 1572 if !ok { 1573 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "podName") 1574 } 1575 1576 protoReq.PodName, err = runtime.StringP(val) 1577 1578 if err != nil { 1579 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "podName", err) 1580 } 1581 1582 if err := req.ParseForm(); err != nil { 1583 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1584 } 1585 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationService_PodLogs_0); err != nil { 1586 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 1587 } 1588 1589 stream, err := client.PodLogs(ctx, &protoReq) 1590 if err != nil { 1591 return nil, metadata, err 1592 } 1593 header, err := stream.Header() 1594 if err != nil { 1595 return nil, metadata, err 1596 } 1597 metadata.HeaderMD = header 1598 return stream, metadata, nil 1599 1600 } 1601 1602 // RegisterApplicationServiceHandlerServer registers the http handlers for service ApplicationService to "mux". 1603 // UnaryRPC :call ApplicationServiceServer directly. 1604 // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. 1605 func RegisterApplicationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApplicationServiceServer) error { 1606 1607 mux.Handle("GET", pattern_ApplicationService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1608 ctx, cancel := context.WithCancel(req.Context()) 1609 defer cancel() 1610 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1611 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1612 if err != nil { 1613 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1614 return 1615 } 1616 resp, md, err := local_request_ApplicationService_List_0(rctx, inboundMarshaler, server, req, pathParams) 1617 ctx = runtime.NewServerMetadataContext(ctx, md) 1618 if err != nil { 1619 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1620 return 1621 } 1622 1623 forward_ApplicationService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1624 1625 }) 1626 1627 mux.Handle("GET", pattern_ApplicationService_ListResourceEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1628 ctx, cancel := context.WithCancel(req.Context()) 1629 defer cancel() 1630 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1631 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1632 if err != nil { 1633 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1634 return 1635 } 1636 resp, md, err := local_request_ApplicationService_ListResourceEvents_0(rctx, inboundMarshaler, server, req, pathParams) 1637 ctx = runtime.NewServerMetadataContext(ctx, md) 1638 if err != nil { 1639 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1640 return 1641 } 1642 1643 forward_ApplicationService_ListResourceEvents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1644 1645 }) 1646 1647 mux.Handle("GET", pattern_ApplicationService_Watch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1648 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 1649 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1650 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1651 return 1652 }) 1653 1654 mux.Handle("POST", pattern_ApplicationService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1655 ctx, cancel := context.WithCancel(req.Context()) 1656 defer cancel() 1657 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1658 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1659 if err != nil { 1660 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1661 return 1662 } 1663 resp, md, err := local_request_ApplicationService_Create_0(rctx, inboundMarshaler, server, req, pathParams) 1664 ctx = runtime.NewServerMetadataContext(ctx, md) 1665 if err != nil { 1666 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1667 return 1668 } 1669 1670 forward_ApplicationService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1671 1672 }) 1673 1674 mux.Handle("GET", pattern_ApplicationService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1675 ctx, cancel := context.WithCancel(req.Context()) 1676 defer cancel() 1677 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1678 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1679 if err != nil { 1680 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1681 return 1682 } 1683 resp, md, err := local_request_ApplicationService_Get_0(rctx, inboundMarshaler, server, req, pathParams) 1684 ctx = runtime.NewServerMetadataContext(ctx, md) 1685 if err != nil { 1686 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1687 return 1688 } 1689 1690 forward_ApplicationService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1691 1692 }) 1693 1694 mux.Handle("GET", pattern_ApplicationService_GetApplicationSyncWindows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1695 ctx, cancel := context.WithCancel(req.Context()) 1696 defer cancel() 1697 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1698 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1699 if err != nil { 1700 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1701 return 1702 } 1703 resp, md, err := local_request_ApplicationService_GetApplicationSyncWindows_0(rctx, inboundMarshaler, server, req, pathParams) 1704 ctx = runtime.NewServerMetadataContext(ctx, md) 1705 if err != nil { 1706 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1707 return 1708 } 1709 1710 forward_ApplicationService_GetApplicationSyncWindows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1711 1712 }) 1713 1714 mux.Handle("GET", pattern_ApplicationService_RevisionMetadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1715 ctx, cancel := context.WithCancel(req.Context()) 1716 defer cancel() 1717 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1718 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1719 if err != nil { 1720 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1721 return 1722 } 1723 resp, md, err := local_request_ApplicationService_RevisionMetadata_0(rctx, inboundMarshaler, server, req, pathParams) 1724 ctx = runtime.NewServerMetadataContext(ctx, md) 1725 if err != nil { 1726 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1727 return 1728 } 1729 1730 forward_ApplicationService_RevisionMetadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1731 1732 }) 1733 1734 mux.Handle("GET", pattern_ApplicationService_GetManifests_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1735 ctx, cancel := context.WithCancel(req.Context()) 1736 defer cancel() 1737 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1738 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1739 if err != nil { 1740 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1741 return 1742 } 1743 resp, md, err := local_request_ApplicationService_GetManifests_0(rctx, inboundMarshaler, server, req, pathParams) 1744 ctx = runtime.NewServerMetadataContext(ctx, md) 1745 if err != nil { 1746 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1747 return 1748 } 1749 1750 forward_ApplicationService_GetManifests_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1751 1752 }) 1753 1754 mux.Handle("PUT", pattern_ApplicationService_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1755 ctx, cancel := context.WithCancel(req.Context()) 1756 defer cancel() 1757 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1758 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1759 if err != nil { 1760 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1761 return 1762 } 1763 resp, md, err := local_request_ApplicationService_Update_0(rctx, inboundMarshaler, server, req, pathParams) 1764 ctx = runtime.NewServerMetadataContext(ctx, md) 1765 if err != nil { 1766 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1767 return 1768 } 1769 1770 forward_ApplicationService_Update_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1771 1772 }) 1773 1774 mux.Handle("PUT", pattern_ApplicationService_UpdateSpec_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1775 ctx, cancel := context.WithCancel(req.Context()) 1776 defer cancel() 1777 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1778 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1779 if err != nil { 1780 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1781 return 1782 } 1783 resp, md, err := local_request_ApplicationService_UpdateSpec_0(rctx, inboundMarshaler, server, req, pathParams) 1784 ctx = runtime.NewServerMetadataContext(ctx, md) 1785 if err != nil { 1786 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1787 return 1788 } 1789 1790 forward_ApplicationService_UpdateSpec_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1791 1792 }) 1793 1794 mux.Handle("PATCH", pattern_ApplicationService_Patch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1795 ctx, cancel := context.WithCancel(req.Context()) 1796 defer cancel() 1797 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1798 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1799 if err != nil { 1800 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1801 return 1802 } 1803 resp, md, err := local_request_ApplicationService_Patch_0(rctx, inboundMarshaler, server, req, pathParams) 1804 ctx = runtime.NewServerMetadataContext(ctx, md) 1805 if err != nil { 1806 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1807 return 1808 } 1809 1810 forward_ApplicationService_Patch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1811 1812 }) 1813 1814 mux.Handle("DELETE", pattern_ApplicationService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1815 ctx, cancel := context.WithCancel(req.Context()) 1816 defer cancel() 1817 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1818 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1819 if err != nil { 1820 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1821 return 1822 } 1823 resp, md, err := local_request_ApplicationService_Delete_0(rctx, inboundMarshaler, server, req, pathParams) 1824 ctx = runtime.NewServerMetadataContext(ctx, md) 1825 if err != nil { 1826 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1827 return 1828 } 1829 1830 forward_ApplicationService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1831 1832 }) 1833 1834 mux.Handle("POST", pattern_ApplicationService_Sync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1835 ctx, cancel := context.WithCancel(req.Context()) 1836 defer cancel() 1837 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1838 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1839 if err != nil { 1840 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1841 return 1842 } 1843 resp, md, err := local_request_ApplicationService_Sync_0(rctx, inboundMarshaler, server, req, pathParams) 1844 ctx = runtime.NewServerMetadataContext(ctx, md) 1845 if err != nil { 1846 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1847 return 1848 } 1849 1850 forward_ApplicationService_Sync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1851 1852 }) 1853 1854 mux.Handle("GET", pattern_ApplicationService_ManagedResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1855 ctx, cancel := context.WithCancel(req.Context()) 1856 defer cancel() 1857 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1858 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1859 if err != nil { 1860 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1861 return 1862 } 1863 resp, md, err := local_request_ApplicationService_ManagedResources_0(rctx, inboundMarshaler, server, req, pathParams) 1864 ctx = runtime.NewServerMetadataContext(ctx, md) 1865 if err != nil { 1866 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1867 return 1868 } 1869 1870 forward_ApplicationService_ManagedResources_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1871 1872 }) 1873 1874 mux.Handle("GET", pattern_ApplicationService_ResourceTree_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1875 ctx, cancel := context.WithCancel(req.Context()) 1876 defer cancel() 1877 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1878 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1879 if err != nil { 1880 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1881 return 1882 } 1883 resp, md, err := local_request_ApplicationService_ResourceTree_0(rctx, inboundMarshaler, server, req, pathParams) 1884 ctx = runtime.NewServerMetadataContext(ctx, md) 1885 if err != nil { 1886 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1887 return 1888 } 1889 1890 forward_ApplicationService_ResourceTree_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1891 1892 }) 1893 1894 mux.Handle("GET", pattern_ApplicationService_WatchResourceTree_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1895 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 1896 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1897 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1898 return 1899 }) 1900 1901 mux.Handle("POST", pattern_ApplicationService_Rollback_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1902 ctx, cancel := context.WithCancel(req.Context()) 1903 defer cancel() 1904 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1905 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1906 if err != nil { 1907 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1908 return 1909 } 1910 resp, md, err := local_request_ApplicationService_Rollback_0(rctx, inboundMarshaler, server, req, pathParams) 1911 ctx = runtime.NewServerMetadataContext(ctx, md) 1912 if err != nil { 1913 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1914 return 1915 } 1916 1917 forward_ApplicationService_Rollback_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1918 1919 }) 1920 1921 mux.Handle("DELETE", pattern_ApplicationService_TerminateOperation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1922 ctx, cancel := context.WithCancel(req.Context()) 1923 defer cancel() 1924 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1925 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1926 if err != nil { 1927 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1928 return 1929 } 1930 resp, md, err := local_request_ApplicationService_TerminateOperation_0(rctx, inboundMarshaler, server, req, pathParams) 1931 ctx = runtime.NewServerMetadataContext(ctx, md) 1932 if err != nil { 1933 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1934 return 1935 } 1936 1937 forward_ApplicationService_TerminateOperation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1938 1939 }) 1940 1941 mux.Handle("GET", pattern_ApplicationService_GetResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1942 ctx, cancel := context.WithCancel(req.Context()) 1943 defer cancel() 1944 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1945 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1946 if err != nil { 1947 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1948 return 1949 } 1950 resp, md, err := local_request_ApplicationService_GetResource_0(rctx, inboundMarshaler, server, req, pathParams) 1951 ctx = runtime.NewServerMetadataContext(ctx, md) 1952 if err != nil { 1953 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1954 return 1955 } 1956 1957 forward_ApplicationService_GetResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1958 1959 }) 1960 1961 mux.Handle("POST", pattern_ApplicationService_PatchResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1962 ctx, cancel := context.WithCancel(req.Context()) 1963 defer cancel() 1964 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1965 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1966 if err != nil { 1967 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1968 return 1969 } 1970 resp, md, err := local_request_ApplicationService_PatchResource_0(rctx, inboundMarshaler, server, req, pathParams) 1971 ctx = runtime.NewServerMetadataContext(ctx, md) 1972 if err != nil { 1973 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1974 return 1975 } 1976 1977 forward_ApplicationService_PatchResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1978 1979 }) 1980 1981 mux.Handle("GET", pattern_ApplicationService_ListResourceActions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1982 ctx, cancel := context.WithCancel(req.Context()) 1983 defer cancel() 1984 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1985 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 1986 if err != nil { 1987 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1988 return 1989 } 1990 resp, md, err := local_request_ApplicationService_ListResourceActions_0(rctx, inboundMarshaler, server, req, pathParams) 1991 ctx = runtime.NewServerMetadataContext(ctx, md) 1992 if err != nil { 1993 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1994 return 1995 } 1996 1997 forward_ApplicationService_ListResourceActions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1998 1999 }) 2000 2001 mux.Handle("POST", pattern_ApplicationService_RunResourceAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2002 ctx, cancel := context.WithCancel(req.Context()) 2003 defer cancel() 2004 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2005 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 2006 if err != nil { 2007 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2008 return 2009 } 2010 resp, md, err := local_request_ApplicationService_RunResourceAction_0(rctx, inboundMarshaler, server, req, pathParams) 2011 ctx = runtime.NewServerMetadataContext(ctx, md) 2012 if err != nil { 2013 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2014 return 2015 } 2016 2017 forward_ApplicationService_RunResourceAction_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2018 2019 }) 2020 2021 mux.Handle("DELETE", pattern_ApplicationService_DeleteResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2022 ctx, cancel := context.WithCancel(req.Context()) 2023 defer cancel() 2024 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2025 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 2026 if err != nil { 2027 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2028 return 2029 } 2030 resp, md, err := local_request_ApplicationService_DeleteResource_0(rctx, inboundMarshaler, server, req, pathParams) 2031 ctx = runtime.NewServerMetadataContext(ctx, md) 2032 if err != nil { 2033 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2034 return 2035 } 2036 2037 forward_ApplicationService_DeleteResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2038 2039 }) 2040 2041 mux.Handle("GET", pattern_ApplicationService_PodLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2042 err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") 2043 _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2044 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2045 return 2046 }) 2047 2048 return nil 2049 } 2050 2051 // RegisterApplicationServiceHandlerFromEndpoint is same as RegisterApplicationServiceHandler but 2052 // automatically dials to "endpoint" and closes the connection when "ctx" gets done. 2053 func RegisterApplicationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { 2054 conn, err := grpc.Dial(endpoint, opts...) 2055 if err != nil { 2056 return err 2057 } 2058 defer func() { 2059 if err != nil { 2060 if cerr := conn.Close(); cerr != nil { 2061 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 2062 } 2063 return 2064 } 2065 go func() { 2066 <-ctx.Done() 2067 if cerr := conn.Close(); cerr != nil { 2068 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 2069 } 2070 }() 2071 }() 2072 2073 return RegisterApplicationServiceHandler(ctx, mux, conn) 2074 } 2075 2076 // RegisterApplicationServiceHandler registers the http handlers for service ApplicationService to "mux". 2077 // The handlers forward requests to the grpc endpoint over "conn". 2078 func RegisterApplicationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { 2079 return RegisterApplicationServiceHandlerClient(ctx, mux, NewApplicationServiceClient(conn)) 2080 } 2081 2082 // RegisterApplicationServiceHandlerClient registers the http handlers for service ApplicationService 2083 // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApplicationServiceClient". 2084 // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApplicationServiceClient" 2085 // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in 2086 // "ApplicationServiceClient" to call the correct interceptors. 2087 func RegisterApplicationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationServiceClient) error { 2088 2089 mux.Handle("GET", pattern_ApplicationService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2090 ctx, cancel := context.WithCancel(req.Context()) 2091 defer cancel() 2092 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2093 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2094 if err != nil { 2095 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2096 return 2097 } 2098 resp, md, err := request_ApplicationService_List_0(rctx, inboundMarshaler, client, req, pathParams) 2099 ctx = runtime.NewServerMetadataContext(ctx, md) 2100 if err != nil { 2101 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2102 return 2103 } 2104 2105 forward_ApplicationService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2106 2107 }) 2108 2109 mux.Handle("GET", pattern_ApplicationService_ListResourceEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2110 ctx, cancel := context.WithCancel(req.Context()) 2111 defer cancel() 2112 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2113 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2114 if err != nil { 2115 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2116 return 2117 } 2118 resp, md, err := request_ApplicationService_ListResourceEvents_0(rctx, inboundMarshaler, client, req, pathParams) 2119 ctx = runtime.NewServerMetadataContext(ctx, md) 2120 if err != nil { 2121 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2122 return 2123 } 2124 2125 forward_ApplicationService_ListResourceEvents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2126 2127 }) 2128 2129 mux.Handle("GET", pattern_ApplicationService_Watch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2130 ctx, cancel := context.WithCancel(req.Context()) 2131 defer cancel() 2132 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2133 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2134 if err != nil { 2135 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2136 return 2137 } 2138 resp, md, err := request_ApplicationService_Watch_0(rctx, inboundMarshaler, client, req, pathParams) 2139 ctx = runtime.NewServerMetadataContext(ctx, md) 2140 if err != nil { 2141 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2142 return 2143 } 2144 2145 forward_ApplicationService_Watch_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 2146 2147 }) 2148 2149 mux.Handle("POST", pattern_ApplicationService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2150 ctx, cancel := context.WithCancel(req.Context()) 2151 defer cancel() 2152 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2153 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2154 if err != nil { 2155 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2156 return 2157 } 2158 resp, md, err := request_ApplicationService_Create_0(rctx, inboundMarshaler, client, req, pathParams) 2159 ctx = runtime.NewServerMetadataContext(ctx, md) 2160 if err != nil { 2161 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2162 return 2163 } 2164 2165 forward_ApplicationService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2166 2167 }) 2168 2169 mux.Handle("GET", pattern_ApplicationService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2170 ctx, cancel := context.WithCancel(req.Context()) 2171 defer cancel() 2172 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2173 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2174 if err != nil { 2175 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2176 return 2177 } 2178 resp, md, err := request_ApplicationService_Get_0(rctx, inboundMarshaler, client, req, pathParams) 2179 ctx = runtime.NewServerMetadataContext(ctx, md) 2180 if err != nil { 2181 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2182 return 2183 } 2184 2185 forward_ApplicationService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2186 2187 }) 2188 2189 mux.Handle("GET", pattern_ApplicationService_GetApplicationSyncWindows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2190 ctx, cancel := context.WithCancel(req.Context()) 2191 defer cancel() 2192 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2193 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2194 if err != nil { 2195 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2196 return 2197 } 2198 resp, md, err := request_ApplicationService_GetApplicationSyncWindows_0(rctx, inboundMarshaler, client, req, pathParams) 2199 ctx = runtime.NewServerMetadataContext(ctx, md) 2200 if err != nil { 2201 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2202 return 2203 } 2204 2205 forward_ApplicationService_GetApplicationSyncWindows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2206 2207 }) 2208 2209 mux.Handle("GET", pattern_ApplicationService_RevisionMetadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2210 ctx, cancel := context.WithCancel(req.Context()) 2211 defer cancel() 2212 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2213 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2214 if err != nil { 2215 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2216 return 2217 } 2218 resp, md, err := request_ApplicationService_RevisionMetadata_0(rctx, inboundMarshaler, client, req, pathParams) 2219 ctx = runtime.NewServerMetadataContext(ctx, md) 2220 if err != nil { 2221 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2222 return 2223 } 2224 2225 forward_ApplicationService_RevisionMetadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2226 2227 }) 2228 2229 mux.Handle("GET", pattern_ApplicationService_GetManifests_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2230 ctx, cancel := context.WithCancel(req.Context()) 2231 defer cancel() 2232 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2233 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2234 if err != nil { 2235 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2236 return 2237 } 2238 resp, md, err := request_ApplicationService_GetManifests_0(rctx, inboundMarshaler, client, req, pathParams) 2239 ctx = runtime.NewServerMetadataContext(ctx, md) 2240 if err != nil { 2241 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2242 return 2243 } 2244 2245 forward_ApplicationService_GetManifests_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2246 2247 }) 2248 2249 mux.Handle("PUT", pattern_ApplicationService_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2250 ctx, cancel := context.WithCancel(req.Context()) 2251 defer cancel() 2252 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2253 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2254 if err != nil { 2255 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2256 return 2257 } 2258 resp, md, err := request_ApplicationService_Update_0(rctx, inboundMarshaler, client, req, pathParams) 2259 ctx = runtime.NewServerMetadataContext(ctx, md) 2260 if err != nil { 2261 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2262 return 2263 } 2264 2265 forward_ApplicationService_Update_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2266 2267 }) 2268 2269 mux.Handle("PUT", pattern_ApplicationService_UpdateSpec_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2270 ctx, cancel := context.WithCancel(req.Context()) 2271 defer cancel() 2272 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2273 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2274 if err != nil { 2275 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2276 return 2277 } 2278 resp, md, err := request_ApplicationService_UpdateSpec_0(rctx, inboundMarshaler, client, req, pathParams) 2279 ctx = runtime.NewServerMetadataContext(ctx, md) 2280 if err != nil { 2281 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2282 return 2283 } 2284 2285 forward_ApplicationService_UpdateSpec_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2286 2287 }) 2288 2289 mux.Handle("PATCH", pattern_ApplicationService_Patch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2290 ctx, cancel := context.WithCancel(req.Context()) 2291 defer cancel() 2292 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2293 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2294 if err != nil { 2295 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2296 return 2297 } 2298 resp, md, err := request_ApplicationService_Patch_0(rctx, inboundMarshaler, client, req, pathParams) 2299 ctx = runtime.NewServerMetadataContext(ctx, md) 2300 if err != nil { 2301 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2302 return 2303 } 2304 2305 forward_ApplicationService_Patch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2306 2307 }) 2308 2309 mux.Handle("DELETE", pattern_ApplicationService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2310 ctx, cancel := context.WithCancel(req.Context()) 2311 defer cancel() 2312 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2313 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2314 if err != nil { 2315 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2316 return 2317 } 2318 resp, md, err := request_ApplicationService_Delete_0(rctx, inboundMarshaler, client, req, pathParams) 2319 ctx = runtime.NewServerMetadataContext(ctx, md) 2320 if err != nil { 2321 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2322 return 2323 } 2324 2325 forward_ApplicationService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2326 2327 }) 2328 2329 mux.Handle("POST", pattern_ApplicationService_Sync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2330 ctx, cancel := context.WithCancel(req.Context()) 2331 defer cancel() 2332 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2333 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2334 if err != nil { 2335 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2336 return 2337 } 2338 resp, md, err := request_ApplicationService_Sync_0(rctx, inboundMarshaler, client, req, pathParams) 2339 ctx = runtime.NewServerMetadataContext(ctx, md) 2340 if err != nil { 2341 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2342 return 2343 } 2344 2345 forward_ApplicationService_Sync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2346 2347 }) 2348 2349 mux.Handle("GET", pattern_ApplicationService_ManagedResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2350 ctx, cancel := context.WithCancel(req.Context()) 2351 defer cancel() 2352 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2353 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2354 if err != nil { 2355 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2356 return 2357 } 2358 resp, md, err := request_ApplicationService_ManagedResources_0(rctx, inboundMarshaler, client, req, pathParams) 2359 ctx = runtime.NewServerMetadataContext(ctx, md) 2360 if err != nil { 2361 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2362 return 2363 } 2364 2365 forward_ApplicationService_ManagedResources_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2366 2367 }) 2368 2369 mux.Handle("GET", pattern_ApplicationService_ResourceTree_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2370 ctx, cancel := context.WithCancel(req.Context()) 2371 defer cancel() 2372 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2373 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2374 if err != nil { 2375 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2376 return 2377 } 2378 resp, md, err := request_ApplicationService_ResourceTree_0(rctx, inboundMarshaler, client, req, pathParams) 2379 ctx = runtime.NewServerMetadataContext(ctx, md) 2380 if err != nil { 2381 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2382 return 2383 } 2384 2385 forward_ApplicationService_ResourceTree_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2386 2387 }) 2388 2389 mux.Handle("GET", pattern_ApplicationService_WatchResourceTree_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2390 ctx, cancel := context.WithCancel(req.Context()) 2391 defer cancel() 2392 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2393 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2394 if err != nil { 2395 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2396 return 2397 } 2398 resp, md, err := request_ApplicationService_WatchResourceTree_0(rctx, inboundMarshaler, client, req, pathParams) 2399 ctx = runtime.NewServerMetadataContext(ctx, md) 2400 if err != nil { 2401 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2402 return 2403 } 2404 2405 forward_ApplicationService_WatchResourceTree_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 2406 2407 }) 2408 2409 mux.Handle("POST", pattern_ApplicationService_Rollback_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2410 ctx, cancel := context.WithCancel(req.Context()) 2411 defer cancel() 2412 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2413 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2414 if err != nil { 2415 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2416 return 2417 } 2418 resp, md, err := request_ApplicationService_Rollback_0(rctx, inboundMarshaler, client, req, pathParams) 2419 ctx = runtime.NewServerMetadataContext(ctx, md) 2420 if err != nil { 2421 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2422 return 2423 } 2424 2425 forward_ApplicationService_Rollback_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2426 2427 }) 2428 2429 mux.Handle("DELETE", pattern_ApplicationService_TerminateOperation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2430 ctx, cancel := context.WithCancel(req.Context()) 2431 defer cancel() 2432 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2433 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2434 if err != nil { 2435 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2436 return 2437 } 2438 resp, md, err := request_ApplicationService_TerminateOperation_0(rctx, inboundMarshaler, client, req, pathParams) 2439 ctx = runtime.NewServerMetadataContext(ctx, md) 2440 if err != nil { 2441 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2442 return 2443 } 2444 2445 forward_ApplicationService_TerminateOperation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2446 2447 }) 2448 2449 mux.Handle("GET", pattern_ApplicationService_GetResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2450 ctx, cancel := context.WithCancel(req.Context()) 2451 defer cancel() 2452 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2453 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2454 if err != nil { 2455 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2456 return 2457 } 2458 resp, md, err := request_ApplicationService_GetResource_0(rctx, inboundMarshaler, client, req, pathParams) 2459 ctx = runtime.NewServerMetadataContext(ctx, md) 2460 if err != nil { 2461 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2462 return 2463 } 2464 2465 forward_ApplicationService_GetResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2466 2467 }) 2468 2469 mux.Handle("POST", pattern_ApplicationService_PatchResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2470 ctx, cancel := context.WithCancel(req.Context()) 2471 defer cancel() 2472 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2473 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2474 if err != nil { 2475 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2476 return 2477 } 2478 resp, md, err := request_ApplicationService_PatchResource_0(rctx, inboundMarshaler, client, req, pathParams) 2479 ctx = runtime.NewServerMetadataContext(ctx, md) 2480 if err != nil { 2481 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2482 return 2483 } 2484 2485 forward_ApplicationService_PatchResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2486 2487 }) 2488 2489 mux.Handle("GET", pattern_ApplicationService_ListResourceActions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2490 ctx, cancel := context.WithCancel(req.Context()) 2491 defer cancel() 2492 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2493 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2494 if err != nil { 2495 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2496 return 2497 } 2498 resp, md, err := request_ApplicationService_ListResourceActions_0(rctx, inboundMarshaler, client, req, pathParams) 2499 ctx = runtime.NewServerMetadataContext(ctx, md) 2500 if err != nil { 2501 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2502 return 2503 } 2504 2505 forward_ApplicationService_ListResourceActions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2506 2507 }) 2508 2509 mux.Handle("POST", pattern_ApplicationService_RunResourceAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2510 ctx, cancel := context.WithCancel(req.Context()) 2511 defer cancel() 2512 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2513 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2514 if err != nil { 2515 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2516 return 2517 } 2518 resp, md, err := request_ApplicationService_RunResourceAction_0(rctx, inboundMarshaler, client, req, pathParams) 2519 ctx = runtime.NewServerMetadataContext(ctx, md) 2520 if err != nil { 2521 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2522 return 2523 } 2524 2525 forward_ApplicationService_RunResourceAction_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2526 2527 }) 2528 2529 mux.Handle("DELETE", pattern_ApplicationService_DeleteResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2530 ctx, cancel := context.WithCancel(req.Context()) 2531 defer cancel() 2532 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2533 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2534 if err != nil { 2535 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2536 return 2537 } 2538 resp, md, err := request_ApplicationService_DeleteResource_0(rctx, inboundMarshaler, client, req, pathParams) 2539 ctx = runtime.NewServerMetadataContext(ctx, md) 2540 if err != nil { 2541 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2542 return 2543 } 2544 2545 forward_ApplicationService_DeleteResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 2546 2547 }) 2548 2549 mux.Handle("GET", pattern_ApplicationService_PodLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 2550 ctx, cancel := context.WithCancel(req.Context()) 2551 defer cancel() 2552 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 2553 rctx, err := runtime.AnnotateContext(ctx, mux, req) 2554 if err != nil { 2555 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2556 return 2557 } 2558 resp, md, err := request_ApplicationService_PodLogs_0(rctx, inboundMarshaler, client, req, pathParams) 2559 ctx = runtime.NewServerMetadataContext(ctx, md) 2560 if err != nil { 2561 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 2562 return 2563 } 2564 2565 forward_ApplicationService_PodLogs_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) 2566 2567 }) 2568 2569 return nil 2570 } 2571 2572 var ( 2573 pattern_ApplicationService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "applications"}, "", runtime.AssumeColonVerbOpt(true))) 2574 2575 pattern_ApplicationService_ListResourceEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "events"}, "", runtime.AssumeColonVerbOpt(true))) 2576 2577 pattern_ApplicationService_Watch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "stream", "applications"}, "", runtime.AssumeColonVerbOpt(true))) 2578 2579 pattern_ApplicationService_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "applications"}, "", runtime.AssumeColonVerbOpt(true))) 2580 2581 pattern_ApplicationService_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "applications", "name"}, "", runtime.AssumeColonVerbOpt(true))) 2582 2583 pattern_ApplicationService_GetApplicationSyncWindows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "syncwindows"}, "", runtime.AssumeColonVerbOpt(true))) 2584 2585 pattern_ApplicationService_RevisionMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "applications", "name", "revisions", "revision", "metadata"}, "", runtime.AssumeColonVerbOpt(true))) 2586 2587 pattern_ApplicationService_GetManifests_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "manifests"}, "", runtime.AssumeColonVerbOpt(true))) 2588 2589 pattern_ApplicationService_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "applications", "application.metadata.name"}, "", runtime.AssumeColonVerbOpt(true))) 2590 2591 pattern_ApplicationService_UpdateSpec_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "spec"}, "", runtime.AssumeColonVerbOpt(true))) 2592 2593 pattern_ApplicationService_Patch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "applications", "name"}, "", runtime.AssumeColonVerbOpt(true))) 2594 2595 pattern_ApplicationService_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "applications", "name"}, "", runtime.AssumeColonVerbOpt(true))) 2596 2597 pattern_ApplicationService_Sync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "sync"}, "", runtime.AssumeColonVerbOpt(true))) 2598 2599 pattern_ApplicationService_ManagedResources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "applicationName", "managed-resources"}, "", runtime.AssumeColonVerbOpt(true))) 2600 2601 pattern_ApplicationService_ResourceTree_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "applicationName", "resource-tree"}, "", runtime.AssumeColonVerbOpt(true))) 2602 2603 pattern_ApplicationService_WatchResourceTree_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"api", "v1", "stream", "applications", "applicationName", "resource-tree"}, "", runtime.AssumeColonVerbOpt(true))) 2604 2605 pattern_ApplicationService_Rollback_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "rollback"}, "", runtime.AssumeColonVerbOpt(true))) 2606 2607 pattern_ApplicationService_TerminateOperation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "operation"}, "", runtime.AssumeColonVerbOpt(true))) 2608 2609 pattern_ApplicationService_GetResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "resource"}, "", runtime.AssumeColonVerbOpt(true))) 2610 2611 pattern_ApplicationService_PatchResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "resource"}, "", runtime.AssumeColonVerbOpt(true))) 2612 2613 pattern_ApplicationService_ListResourceActions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"api", "v1", "applications", "name", "resource", "actions"}, "", runtime.AssumeColonVerbOpt(true))) 2614 2615 pattern_ApplicationService_RunResourceAction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"api", "v1", "applications", "name", "resource", "actions"}, "", runtime.AssumeColonVerbOpt(true))) 2616 2617 pattern_ApplicationService_DeleteResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "applications", "name", "resource"}, "", runtime.AssumeColonVerbOpt(true))) 2618 2619 pattern_ApplicationService_PodLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "applications", "name", "pods", "podName", "logs"}, "", runtime.AssumeColonVerbOpt(true))) 2620 ) 2621 2622 var ( 2623 forward_ApplicationService_List_0 = runtime.ForwardResponseMessage 2624 2625 forward_ApplicationService_ListResourceEvents_0 = runtime.ForwardResponseMessage 2626 2627 forward_ApplicationService_Watch_0 = runtime.ForwardResponseStream 2628 2629 forward_ApplicationService_Create_0 = runtime.ForwardResponseMessage 2630 2631 forward_ApplicationService_Get_0 = runtime.ForwardResponseMessage 2632 2633 forward_ApplicationService_GetApplicationSyncWindows_0 = runtime.ForwardResponseMessage 2634 2635 forward_ApplicationService_RevisionMetadata_0 = runtime.ForwardResponseMessage 2636 2637 forward_ApplicationService_GetManifests_0 = runtime.ForwardResponseMessage 2638 2639 forward_ApplicationService_Update_0 = runtime.ForwardResponseMessage 2640 2641 forward_ApplicationService_UpdateSpec_0 = runtime.ForwardResponseMessage 2642 2643 forward_ApplicationService_Patch_0 = runtime.ForwardResponseMessage 2644 2645 forward_ApplicationService_Delete_0 = runtime.ForwardResponseMessage 2646 2647 forward_ApplicationService_Sync_0 = runtime.ForwardResponseMessage 2648 2649 forward_ApplicationService_ManagedResources_0 = runtime.ForwardResponseMessage 2650 2651 forward_ApplicationService_ResourceTree_0 = runtime.ForwardResponseMessage 2652 2653 forward_ApplicationService_WatchResourceTree_0 = runtime.ForwardResponseStream 2654 2655 forward_ApplicationService_Rollback_0 = runtime.ForwardResponseMessage 2656 2657 forward_ApplicationService_TerminateOperation_0 = runtime.ForwardResponseMessage 2658 2659 forward_ApplicationService_GetResource_0 = runtime.ForwardResponseMessage 2660 2661 forward_ApplicationService_PatchResource_0 = runtime.ForwardResponseMessage 2662 2663 forward_ApplicationService_ListResourceActions_0 = runtime.ForwardResponseMessage 2664 2665 forward_ApplicationService_RunResourceAction_0 = runtime.ForwardResponseMessage 2666 2667 forward_ApplicationService_DeleteResource_0 = runtime.ForwardResponseMessage 2668 2669 forward_ApplicationService_PodLogs_0 = runtime.ForwardResponseStream 2670 )