Implement docker logs --tal <N>

This commit is contained in:
Djordje Lukic 2020-05-04 16:38:02 +02:00
parent 1c7270b697
commit e964a3af2e
4 changed files with 40 additions and 9 deletions

View file

@ -44,7 +44,7 @@ func (cs *containerService) Exec(ctx context.Context, name string, command strin
return nil
}
func (cs *containerService) Logs(ctx context.Context, name string, writer io.Writer, follow bool) error {
fmt.Fprintf(writer, "Following logs for container %q", name)
func (cs *containerService) Logs(ctx context.Context, containerName string, request containers.LogsRequest) error {
fmt.Fprintf(request.Writer, "Following logs for container %q", containerName)
return nil
}