FakeCli emulates the default DockerCli
| 18 | |
| 19 | // FakeCli emulates the default DockerCli |
| 20 | type FakeCli struct { |
| 21 | command.DockerCli |
| 22 | client client.APIClient |
| 23 | configfile *configfile.ConfigFile |
| 24 | out *streams.Out |
| 25 | outBuffer *bytes.Buffer |
| 26 | err *streams.Out |
| 27 | errBuffer *bytes.Buffer |
| 28 | in *streams.In |
| 29 | server command.ServerInfo |
| 30 | notaryClientFunc NotaryClientFuncType |
| 31 | currentContext string |
| 32 | } |
| 33 | |
| 34 | // NewFakeCli returns a fake for the command.Cli interface |
| 35 | func NewFakeCli(apiClient client.APIClient, opts ...func(*FakeCli)) *FakeCli { |
nothing calls this directly
no outgoing calls
no test coverage detected