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: 0

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