{"modulePath":"github.phpd.cn/openshift/origin","version":"v1.3.0-alpha.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pullprogress\n\n## Functions\n\n```go\nfunc NewPullProgressWriter(reportFn func(*ProgressReport)) io.Writer\n```\nNewPullProgressWriter creates a writer that periodically reports on pull progress of an image. It only reports when the state of the different layers has changed and uses time threshholds to limit the rate of the reports.\n\n## Types\n\n```go\ntype Detail struct {\n\tCurrent int64 `json:\"current\"`\n\tTotal   int64 `json:\"total\"`\n}\n```\nDetail is the progressDetail structure in a Docker pull progress line\n\n```go\ntype ProgressReport struct {\n\tWaiting     int\n\tDownloading int\n\tExtracting  int\n\tComplete    int\n\n\tDownloadPct float32\n}\n```\nProgressReport is a report of the progress of an image pull. It provides counts of layers in a given state. It also provides a percentage of downloaded data of those layers that are currently getting downloaded\n\n```go\ntype Status struct {\n\tID             string `json:\"id\"`\n\tStatus         string `json:\"status\"`\n\tProgressDetail Detail `json:\"progressDetail\"`\n\tProgress       string `json:\"progress\"`\n}\n```\nStatus is a structure representation of a Docker pull progress line\n\n","path":"github.phpd.cn/openshift/origin/pkg/cmd/util/pullprogress","name":"pullprogress","synopsis":"","isRedistributable":true}
