2020-09-07 13:22:08 +02:00
|
|
|
/*
|
2020-09-22 12:13:00 +02:00
|
|
|
Copyright 2020 Docker Compose CLI authors
|
2020-09-07 13:22:08 +02:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/docker/compose-cli/api/compose"
|
|
|
|
"github.com/docker/compose-cli/errdefs"
|
2020-12-07 09:09:12 +01:00
|
|
|
|
|
|
|
"github.com/compose-spec/compose-go/types"
|
2020-09-07 13:22:08 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type composeService struct {
|
|
|
|
}
|
|
|
|
|
2020-11-30 12:03:13 +01:00
|
|
|
func (c *composeService) Build(ctx context.Context, project *types.Project) error {
|
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-12-01 11:34:48 +01:00
|
|
|
func (c *composeService) Push(ctx context.Context, project *types.Project) error {
|
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-12-03 12:22:01 +01:00
|
|
|
func (c *composeService) Pull(ctx context.Context, project *types.Project) error {
|
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-12-02 18:23:01 +01:00
|
|
|
func (c *composeService) Create(ctx context.Context, project *types.Project) error {
|
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-12-07 09:09:12 +01:00
|
|
|
func (c *composeService) Start(ctx context.Context, project *types.Project, consumer compose.LogConsumer) error {
|
2020-12-02 18:23:01 +01:00
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *composeService) Up(context.Context, *types.Project, bool) error {
|
2020-09-07 13:22:08 +02:00
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *composeService) Down(context.Context, string) error {
|
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-12-07 09:09:12 +01:00
|
|
|
func (c *composeService) Logs(context.Context, string, compose.LogConsumer) error {
|
2020-09-07 13:22:08 +02:00
|
|
|
return errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-12-07 14:46:36 +01:00
|
|
|
func (c *composeService) Ps(context.Context, string) ([]compose.ContainerSummary, error) {
|
2020-09-07 13:22:08 +02:00
|
|
|
return nil, errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *composeService) List(context.Context, string) ([]compose.Stack, error) {
|
|
|
|
return nil, errdefs.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2020-11-05 09:27:14 +01:00
|
|
|
func (c *composeService) Convert(context.Context, *types.Project, string) ([]byte, error) {
|
2020-09-07 13:22:08 +02:00
|
|
|
return nil, errdefs.ErrNotImplemented
|
|
|
|
}
|