MCPcopy Create free account
hub / github.com/docker/cli / FakeCli

Struct FakeCli

cmd/docker-trust/internal/test/cli.go:20–32  ·  view source on GitHub ↗

FakeCli emulates the default DockerCli

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected