Documentation ¶
Index ¶
- Constants
- func DockerIncompatible(t testing.TB)
- func GetDaemonIsKillable() bool
- func GetTarget() string
- func M(m *testing.M)
- func RequiresBuild(t testing.TB)
- type Base
- type Cmd
- func (c *Cmd) Assert(expected icmd.Expected)
- func (c *Cmd) AssertExitCode(exitCode int)
- func (c *Cmd) AssertFail()
- func (c *Cmd) AssertNoOut(s string)
- func (c *Cmd) AssertOK()
- func (c *Cmd) AssertOut(s string)
- func (c *Cmd) AssertOutWithFunc(fn func(stdout string) error)
- func (c *Cmd) Run() *icmd.Result
- type Target
Constants ¶
View Source
const ( Nerdctl = Target("nerdctl") Docker = Target("docker") )
View Source
const ( AlpineImage = "alpine:3.13" NginxAlpineImage = "nginx:1.19-alpine" NginxAlpineIndexHTMLSnippet = "<title>Welcome to nginx!</title>" RegistryImage = "registry:2" FedoraESGZImage = "ghcr.io/stargz-containers/fedora:30-esgz" // eStargz )
TODO: do not use Docker Hub nor GCR mirror: https://github.com/containerd/nerdctl/issues/146
View Source
const Namespace = "nerdctl-test"
Variables ¶
This section is empty.
Functions ¶
func DockerIncompatible ¶
func GetDaemonIsKillable ¶
func GetDaemonIsKillable() bool
func RequiresBuild ¶
Types ¶
type Base ¶
func (*Base) EnsureDaemonActive ¶
func (b *Base) EnsureDaemonActive()
func (*Base) Info ¶ added in v0.7.3
func (b *Base) Info() dockercompat.Info
func (*Base) InspectContainer ¶
func (b *Base) InspectContainer(name string) dockercompat.Container
func (*Base) KillDaemon ¶
func (b *Base) KillDaemon()
type Cmd ¶
func (*Cmd) AssertExitCode ¶
func (*Cmd) AssertFail ¶
func (c *Cmd) AssertFail()
func (*Cmd) AssertNoOut ¶
func (*Cmd) AssertOutWithFunc ¶
Click to show internal directories.
Click to hide internal directories.