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

Method SetCurrentContext

internal/test/cli.go:84–86  ·  view source on GitHub ↗

SetCurrentContext sets the "fake" current context

(name string)

Source from the content-addressed store, hash-verified

82
83// SetCurrentContext sets the "fake" current context
84func (c *FakeCli) SetCurrentContext(name string) {
85 c.currentContext = name
86}
87
88// SetDockerEndpoint sets the "fake" docker endpoint
89func (c *FakeCli) SetDockerEndpoint(ep docker.Endpoint) {

Callers 10

TestCreateFromContextFunction · 0.80
TestCreateFromCurrentFunction · 0.80
TestShowFunction · 0.80
TestListFunction · 0.80
TestListJSONFunction · 0.80
TestListQuietFunction · 0.80
TestListErrorFunction · 0.80
TestRemoveCurrentFunction · 0.80
TestRemoveCurrentForceFunction · 0.80
TestRemoveDefaultFunction · 0.80

Calls

no outgoing calls

Tested by 10

TestCreateFromContextFunction · 0.64
TestCreateFromCurrentFunction · 0.64
TestShowFunction · 0.64
TestListFunction · 0.64
TestListJSONFunction · 0.64
TestListQuietFunction · 0.64
TestListErrorFunction · 0.64
TestRemoveCurrentFunction · 0.64
TestRemoveCurrentForceFunction · 0.64
TestRemoveDefaultFunction · 0.64