docker

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2017 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintPullMessage

func PrintPullMessage(out io.ReadCloser, printFunc PrintFunc) error

PrintPullMessage decodes and prints docker pull message

Types

type Client

type Client interface {
	PullImage(image, tag string) (io.ReadCloser, error)
}

Client represents the interface of Docker Engine API client

type PrintFunc

type PrintFunc func(line string)

PrintFunc represents the function to print log

type RealClient

type RealClient struct {
	// contains filtered or unexported fields
}

RealClient represents the wrapper of Docker API client

func NewClient

func NewClient() (*RealClient, error)

NewClient creates new RealClient object

func (*RealClient) PullImage

func (c *RealClient) PullImage(image, tag string) (io.ReadCloser, error)

PullImage pulls image from Docker Image Registry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL