Documentation ¶
Overview ¶
Package cassandra includes Cassandra implementation of Gnomock Preset interface. This Preset can be passed to gnomock.Start() function to create a configured Cassandra container to use in tests.
Cassandra containers always use cassandra/cassandra username/password pair, it is currently not possible to use different values.
Index ¶
Constants ¶
View Source
const ( DefaultUser = "cassandra" DefaultPassword = "cassandra" )
By default, Cassandra containers will use these values.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*P)
Option is an optional configuration of this Gnomock preset. Use available Options to configure the container.
type P ¶
type P struct {
Version string `json:"version"`
}
P is a Gnomock Preset implementation for Cassandra.
func (*P) Ports ¶
func (p *P) Ports() gnomock.NamedPorts
Ports returns ports that should be used to access this container.
Click to show internal directories.
Click to hide internal directories.