compose.proto 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // Copyright 2020 Docker Compose CLI authors
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. // Unless required by applicable law or agreed to in writing, software
  8. // distributed under the License is distributed on an "AS IS" BASIS,
  9. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. // See the License for the specific language governing permissions and
  11. // limitations under the License.
  12. syntax = "proto3";
  13. package com.docker.api.protos.compose.v1;
  14. option go_package = "github.com/docker/compose-cli/protos/compose/v1;v1";
  15. service Compose {
  16. rpc Up(ComposeUpRequest) returns (ComposeUpResponse);
  17. rpc Down(ComposeDownRequest) returns (ComposeDownResponse);
  18. rpc ListStacks(ComposeListRequest)returns (ComposeListResponse);
  19. }
  20. message ComposeUpRequest {
  21. string projectName = 1;
  22. string workDir = 2;
  23. repeated string files = 3;
  24. }
  25. message ComposeUpResponse {
  26. string projectName = 1;
  27. }
  28. message ComposeDownRequest {
  29. string projectName = 1;
  30. string workDir = 2;
  31. repeated string files = 3;
  32. }
  33. message ComposeDownResponse {
  34. string projectName = 1;
  35. }
  36. message ComposeListRequest {
  37. string projectName = 1;
  38. string workDir = 2;
  39. repeated string files = 3;
  40. }
  41. message ComposeListResponse {
  42. repeated Stack stacks = 1;
  43. }
  44. message Stack {
  45. string id = 1;
  46. string name = 2;
  47. string status = 3;
  48. string reason = 4;
  49. }