mirror of https://github.com/docker/compose.git
68 lines
2.0 KiB
Go
68 lines
2.0 KiB
Go
/*
|
|
Copyright 2020 Docker, Inc.
|
|
|
|
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/containers"
|
|
"github.com/docker/compose-cli/errdefs"
|
|
)
|
|
|
|
type containerService struct {
|
|
}
|
|
|
|
// List returns all the containers
|
|
func (c *containerService) List(context.Context, bool) ([]containers.Container, error) {
|
|
return nil, errdefs.ErrNotImplemented
|
|
}
|
|
|
|
// Start starts a stopped container
|
|
func (c *containerService) Start(context.Context, string) error {
|
|
return errdefs.ErrNotImplemented
|
|
}
|
|
|
|
// Stop stops the running container
|
|
func (c *containerService) Stop(context.Context, string, *uint32) error {
|
|
return errdefs.ErrNotImplemented
|
|
}
|
|
|
|
// Run creates and starts a container
|
|
func (c *containerService) Run(context.Context, containers.ContainerConfig) error {
|
|
return errdefs.ErrNotImplemented
|
|
}
|
|
|
|
// Exec executes a command inside a running container
|
|
func (c *containerService) Exec(context.Context, string, containers.ExecRequest) error {
|
|
return errdefs.ErrNotImplemented
|
|
}
|
|
|
|
// Logs returns all the logs of a container
|
|
func (c *containerService) Logs(context.Context, string, containers.LogsRequest) error {
|
|
return errdefs.ErrNotImplemented
|
|
}
|
|
|
|
// Delete removes containers
|
|
func (c *containerService) Delete(context.Context, string, containers.DeleteRequest) error {
|
|
return errdefs.ErrNotImplemented
|
|
}
|
|
|
|
// Inspect get a specific container
|
|
func (c *containerService) Inspect(context.Context, string) (containers.Container, error) {
|
|
return containers.Container{}, errdefs.ErrNotImplemented
|
|
}
|