package progressreader
import "github.com/dotcloud/docker/pkg/progressreader"
Index ¶
- type Config
- func New(newReader Config) *Config
- func (config *Config) Close() error
- func (config *Config) Read(p []byte) (n int, err error)
- type JSONProg
- type PR_JSONProgress
- type StreamFormatter
Types ¶
type Config ¶
type Config struct { In io.ReadCloser // Stream to read from Out io.Writer // Where to send progress bar to Formatter StreamFormatter Size int Current int LastUpdate int NewLines bool ID string Action string }
Reader with progress bar
func New ¶
func (*Config) Close ¶
func (*Config) Read ¶
type JSONProg ¶
func (*JSONProg) GetCurrent ¶
func (*JSONProg) GetTotal ¶
type PR_JSONProgress ¶
type StreamFormatter ¶
type StreamFormatter interface { FormatProg(string, string, interface{}) []byte FormatStatus(string, string, ...interface{}) []byte FormatError(error) []byte }
Source Files ¶
- Version
- v1.6.0-rc7
- Published
- Apr 15, 2015
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 second ago –
Tools for package owners.