MCPcopy Index your code
hub / github.com/docker/cli / FakeCli

Struct FakeCli

internal/test/cli.go:19–34  ·  view source on GitHub ↗

FakeCli emulates the default DockerCli

Source from the content-addressed store, hash-verified

17
18// FakeCli emulates the default DockerCli
19type 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
37func NewFakeCli(apiClient client.APIClient, opts ...func(*FakeCli)) *FakeCli {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected