compose.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. */
  13. package client
  14. import (
  15. "context"
  16. "github.com/compose-spec/compose-go/types"
  17. "github.com/docker/compose-cli/pkg/api"
  18. )
  19. type composeService struct {
  20. }
  21. func (c *composeService) Build(ctx context.Context, project *types.Project, options api.BuildOptions) error {
  22. return api.ErrNotImplemented
  23. }
  24. func (c *composeService) Push(ctx context.Context, project *types.Project, options api.PushOptions) error {
  25. return api.ErrNotImplemented
  26. }
  27. func (c *composeService) Pull(ctx context.Context, project *types.Project, options api.PullOptions) error {
  28. return api.ErrNotImplemented
  29. }
  30. func (c *composeService) Create(ctx context.Context, project *types.Project, opts api.CreateOptions) error {
  31. return api.ErrNotImplemented
  32. }
  33. func (c *composeService) Start(ctx context.Context, project *types.Project, options api.StartOptions) error {
  34. return api.ErrNotImplemented
  35. }
  36. func (c *composeService) Restart(ctx context.Context, project *types.Project, options api.RestartOptions) error {
  37. return api.ErrNotImplemented
  38. }
  39. func (c *composeService) Stop(ctx context.Context, project *types.Project, options api.StopOptions) error {
  40. return api.ErrNotImplemented
  41. }
  42. func (c *composeService) Up(context.Context, *types.Project, api.UpOptions) error {
  43. return api.ErrNotImplemented
  44. }
  45. func (c *composeService) Down(context.Context, string, api.DownOptions) error {
  46. return api.ErrNotImplemented
  47. }
  48. func (c *composeService) Logs(context.Context, string, api.LogConsumer, api.LogOptions) error {
  49. return api.ErrNotImplemented
  50. }
  51. func (c *composeService) Ps(context.Context, string, api.PsOptions) ([]api.ContainerSummary, error) {
  52. return nil, api.ErrNotImplemented
  53. }
  54. func (c *composeService) List(context.Context, api.ListOptions) ([]api.Stack, error) {
  55. return nil, api.ErrNotImplemented
  56. }
  57. func (c *composeService) Convert(context.Context, *types.Project, api.ConvertOptions) ([]byte, error) {
  58. return nil, api.ErrNotImplemented
  59. }
  60. func (c *composeService) Kill(ctx context.Context, project *types.Project, options api.KillOptions) error {
  61. return api.ErrNotImplemented
  62. }
  63. func (c *composeService) RunOneOffContainer(ctx context.Context, project *types.Project, opts api.RunOptions) (int, error) {
  64. return 0, api.ErrNotImplemented
  65. }
  66. func (c *composeService) Remove(ctx context.Context, project *types.Project, options api.RemoveOptions) error {
  67. return api.ErrNotImplemented
  68. }
  69. func (c *composeService) Exec(ctx context.Context, project *types.Project, opts api.RunOptions) (int, error) {
  70. return 0, api.ErrNotImplemented
  71. }
  72. func (c *composeService) Copy(ctx context.Context, project *types.Project, opts api.CopyOptions) error {
  73. return api.ErrNotImplemented
  74. }
  75. func (c *composeService) Pause(ctx context.Context, project string, options api.PauseOptions) error {
  76. return api.ErrNotImplemented
  77. }
  78. func (c *composeService) UnPause(ctx context.Context, project string, options api.PauseOptions) error {
  79. return api.ErrNotImplemented
  80. }
  81. func (c *composeService) Top(ctx context.Context, projectName string, services []string) ([]api.ContainerProcSummary, error) {
  82. return nil, api.ErrNotImplemented
  83. }
  84. func (c *composeService) Events(ctx context.Context, project string, options api.EventsOptions) error {
  85. return api.ErrNotImplemented
  86. }
  87. func (c *composeService) Port(ctx context.Context, project string, service string, port int, options api.PortOptions) (string, int, error) {
  88. return "", 0, api.ErrNotImplemented
  89. }
  90. func (c *composeService) Images(ctx context.Context, projectName string, options api.ImagesOptions) ([]api.ImageSummary, error) {
  91. return nil, api.ErrNotImplemented
  92. }