compose.go 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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/docker/compose-cli/api/compose"
  17. "github.com/docker/compose-cli/api/errdefs"
  18. "github.com/compose-spec/compose-go/types"
  19. )
  20. type composeService struct {
  21. }
  22. func (c *composeService) Build(ctx context.Context, project *types.Project) error {
  23. return errdefs.ErrNotImplemented
  24. }
  25. func (c *composeService) Push(ctx context.Context, project *types.Project) error {
  26. return errdefs.ErrNotImplemented
  27. }
  28. func (c *composeService) Pull(ctx context.Context, project *types.Project) error {
  29. return errdefs.ErrNotImplemented
  30. }
  31. func (c *composeService) Create(ctx context.Context, project *types.Project, opts compose.CreateOptions) error {
  32. return errdefs.ErrNotImplemented
  33. }
  34. func (c *composeService) Start(ctx context.Context, project *types.Project, options compose.StartOptions) error {
  35. return errdefs.ErrNotImplemented
  36. }
  37. func (c *composeService) Stop(ctx context.Context, project *types.Project) error {
  38. return errdefs.ErrNotImplemented
  39. }
  40. func (c *composeService) Up(context.Context, *types.Project, compose.UpOptions) error {
  41. return errdefs.ErrNotImplemented
  42. }
  43. func (c *composeService) Down(context.Context, string, compose.DownOptions) error {
  44. return errdefs.ErrNotImplemented
  45. }
  46. func (c *composeService) Logs(context.Context, string, compose.LogConsumer, compose.LogOptions) error {
  47. return errdefs.ErrNotImplemented
  48. }
  49. func (c *composeService) Ps(context.Context, string, compose.PsOptions) ([]compose.ContainerSummary, error) {
  50. return nil, errdefs.ErrNotImplemented
  51. }
  52. func (c *composeService) List(context.Context) ([]compose.Stack, error) {
  53. return nil, errdefs.ErrNotImplemented
  54. }
  55. func (c *composeService) Convert(context.Context, *types.Project, compose.ConvertOptions) ([]byte, error) {
  56. return nil, errdefs.ErrNotImplemented
  57. }
  58. func (c *composeService) Kill(ctx context.Context, project *types.Project, options compose.KillOptions) error {
  59. return errdefs.ErrNotImplemented
  60. }
  61. func (c *composeService) RunOneOffContainer(ctx context.Context, project *types.Project, opts compose.RunOptions) (int, error) {
  62. return 0, errdefs.ErrNotImplemented
  63. }
  64. func (c *composeService) Remove(ctx context.Context, project *types.Project, options compose.RemoveOptions) ([]string, error) {
  65. return nil, errdefs.ErrNotImplemented
  66. }