Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct {
Alias string
Type NetworkType
// contains filtered or unexported fields
}
Network is a type that represents a network
func (*Network) Build ¶
func (ntw *Network) Build(ctx context.Context) (*testcontainers.DockerNetwork, error)
Build creates a new DockerNetwork
type NetworkOption ¶
type NetworkOption func(*Network)
NetworkOption is a type that represents a network option
func WithAlias ¶
func WithAlias(alias string) NetworkOption
WithAlias is a NetworkOption that sets the alias of the network
Default: network
func WithType ¶
func WithType(typeName NetworkType) NetworkOption
WithType is a NetworkOption that sets the type of the network
Default: bridge
type NetworkType ¶
type NetworkType string
NetworkType is a type that represents the type of network
var ( // NetworkTypeBridge is a network type that represents a bridge network NetworkTypeBridge NetworkType = "bridge" )
Click to show internal directories.
Click to hide internal directories.