MCPcopy Create free account
hub / github.com/containerd/nerdctl / InfoNative

Method InfoNative

pkg/testutil/testutil.go:265–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263}
264
265func (b *Base) InfoNative() native.Info {
266 b.T.Helper()
267 if IsDocker() {
268 b.T.Skip("InfoNative() should not be called for non-nerdctl target")
269 }
270 cmdResult := b.Cmd("info", "--mode", "native", "--format", "{{ json . }}").Run()
271 assert.Equal(b.T, cmdResult.ExitCode, 0)
272 var info native.Info
273 if err := json.Unmarshal([]byte(cmdResult.Stdout()), &info); err != nil {
274 b.T.Fatal(err)
275 }
276 return info
277}
278
279func (b *Base) ContainerdAddress() string {
280 b.T.Helper()

Callers 1

RequireContainerdPluginFunction · 0.80

Calls 6

CmdMethod · 0.95
UnmarshalMethod · 0.80
IsDockerFunction · 0.70
HelperMethod · 0.65
SkipMethod · 0.65
RunMethod · 0.65

Tested by

no test coverage detected