mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4f0d95fa6e
Signed-off-by: Daniel Nephin <dnephin@docker.com>
22 lines
308 B
Go
22 lines
308 B
Go
package tarsum // import "github.com/docker/docker/pkg/tarsum"
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type writeCloseFlusher interface {
|
|
io.WriteCloser
|
|
Flush() error
|
|
}
|
|
|
|
type nopCloseFlusher struct {
|
|
io.Writer
|
|
}
|
|
|
|
func (n *nopCloseFlusher) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func (n *nopCloseFlusher) Flush() error {
|
|
return nil
|
|
}
|