compose.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. "io"
  17. "github.com/compose-spec/compose-go/types"
  18. "github.com/docker/compose-cli/api/compose"
  19. "github.com/docker/compose-cli/errdefs"
  20. )
  21. type composeService struct {
  22. }
  23. func (c *composeService) Build(ctx context.Context, project *types.Project) error {
  24. return errdefs.ErrNotImplemented
  25. }
  26. func (c *composeService) Push(ctx context.Context, project *types.Project) error {
  27. return errdefs.ErrNotImplemented
  28. }
  29. func (c *composeService) Pull(ctx context.Context, project *types.Project) error {
  30. return errdefs.ErrNotImplemented
  31. }
  32. func (c *composeService) Create(ctx context.Context, project *types.Project) error {
  33. return errdefs.ErrNotImplemented
  34. }
  35. func (c *composeService) Start(ctx context.Context, project *types.Project, w io.Writer) error {
  36. return errdefs.ErrNotImplemented
  37. }
  38. func (c *composeService) Up(context.Context, *types.Project, bool) error {
  39. return errdefs.ErrNotImplemented
  40. }
  41. func (c *composeService) Down(context.Context, string) error {
  42. return errdefs.ErrNotImplemented
  43. }
  44. func (c *composeService) Logs(context.Context, string, io.Writer) error {
  45. return errdefs.ErrNotImplemented
  46. }
  47. func (c *composeService) Ps(context.Context, string) ([]compose.ServiceStatus, error) {
  48. return nil, errdefs.ErrNotImplemented
  49. }
  50. func (c *composeService) List(context.Context, string) ([]compose.Stack, error) {
  51. return nil, errdefs.ErrNotImplemented
  52. }
  53. func (c *composeService) Convert(context.Context, *types.Project, string) ([]byte, error) {
  54. return nil, errdefs.ErrNotImplemented
  55. }