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