Documentation ¶
Overview ¶
Package test is a test-only package that can be used by other cli package to write unit test.
It as an internal package and cannot be used outside of github.com/docker/docker/cli package.
Index ¶
- type FakeCli
- func (c *FakeCli) Client() client.APIClient
- func (c *FakeCli) ConfigFile() *configfile.ConfigFile
- func (c *FakeCli) Err() io.Writer
- func (c *FakeCli) In() *command.InStream
- func (c *FakeCli) Out() *command.OutStream
- func (c *FakeCli) SetConfigfile(configfile *configfile.ConfigFile)
- func (c *FakeCli) SetErr(err io.Writer)
- func (c *FakeCli) SetIn(in io.ReadCloser)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCli ¶
FakeCli emulates the default DockerCli
func NewFakeCli ¶
NewFakeCli returns a Cli backed by the fakeCli
func (*FakeCli) ConfigFile ¶
func (c *FakeCli) ConfigFile() *configfile.ConfigFile
ConfigFile returns the cli configfile object (to get client configuration)
func (*FakeCli) SetConfigfile ¶
func (c *FakeCli) SetConfigfile(configfile *configfile.ConfigFile)
SetConfigfile sets the "fake" config file
func (*FakeCli) SetIn ¶
func (c *FakeCli) SetIn(in io.ReadCloser)
SetIn sets the input of the cli to the specified ReadCloser
Click to show internal directories.
Click to hide internal directories.