mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
23 lines
308 B
Go
23 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
|
||
|
}
|