WithNetworkMode sets the network mode of the container
(mode string)
| 53 | |
| 54 | // WithNetworkMode sets the network mode of the container |
| 55 | func WithNetworkMode(mode string) func(*TestContainerConfig) { |
| 56 | return func(c *TestContainerConfig) { |
| 57 | c.HostConfig.NetworkMode = container.NetworkMode(mode) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // WithDNS sets external DNS servers for the container |
| 62 | func WithDNS(dns []netip.Addr) func(*TestContainerConfig) { |
no outgoing calls
searching dependent graphs…