()
| 263 | } |
| 264 | |
| 265 | func (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 | |
| 279 | func (b *Base) ContainerdAddress() string { |
| 280 | b.T.Helper() |