test

package
v0.1.3-0...-f63d1a6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package test is a test-only package that can be used by other cli package to write unit test

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCli

type FakeCli struct {
	command.DockerCli
	// contains filtered or unexported fields
}

FakeCli emulates the default DockerCli

func NewFakeCli

func NewFakeCli(client client.APIClient, out io.Writer) *FakeCli

NewFakeCli returns a Cli backed by the fakeCli

func (*FakeCli) Client

func (c *FakeCli) Client() client.APIClient

Client returns a docker API client

func (*FakeCli) In

func (c *FakeCli) In() *command.InStream

In returns thi input stream the cli will use

func (*FakeCli) Out

func (c *FakeCli) Out() *command.OutStream

Out returns the output stream the cli should write on

func (*FakeCli) SetIn

func (c *FakeCli) SetIn(in io.ReadCloser)

SetIn sets the input of the cli to the specified ReadCloser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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