Documentation
¶
Overview ¶
Package redisdockertest provides an in-memory container runtime and control connection for exercising redisdocker groups without Docker.
Index ¶
- type Cmd
- type Fake
- func (f *Fake) CertsPresentAtStart(name string) bool
- func (f *Fake) Cmds(prefix ...string) []Cmd
- func (f *Fake) CreateAndStart(_ context.Context, spec container.Spec) (string, error)
- func (f *Fake) Exec(_ context.Context, id string, _ []string) (container.ExecResult, error)
- func (f *Fake) Removed() []string
- func (f *Fake) Specs() []container.Spec
- func (f *Fake) StopAndRemove(_ context.Context, id string) error
- type PortRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
// BeforeCreate, when set, runs before each container start; tests block it to hold an operation mid-flight.
BeforeCreate func()
// BeforeRemove, when set, runs before each container removal.
BeforeRemove func(id string)
// CreateErr, when set, fails the container start whose zero-based index it is given with the returned error.
CreateErr func(index int) error
// contains filtered or unexported fields
}
Fake is a runtime and control plane that records everything and answers like a healthy cluster.
func (*Fake) CertsPresentAtStart ¶
CertsPresentAtStart reports whether the named container's TLS files existed when it started.
func (*Fake) CreateAndStart ¶
CreateAndStart implements redisdocker.Runtime.