Documentation ¶
Index ¶
- func CheckDBConnection(dbType string, dsn string) error
- func CheckMongoDBConnection(dsn string) error
- func CheckPortIsOpen(host string, port string) bool
- func DownInfra(dockerComposeFileName string)
- func GetContainerEnvValue(serviceID string, env string) string
- func GetServiceID(dockerComposeFileName string, serviceName string) string
- func StopService(serviceID string)
- func UpInfra(dockerComposeFileName string)
- func UpInfraWithEnvs(dockerComposeFileName string, envs map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDBConnection ¶
CheckDBConnection is responsible for checking whether database is accepting connections
func CheckMongoDBConnection ¶
CheckMongoDBConnection is responsible for checking whether mongo database is accepting connections
func CheckPortIsOpen ¶
CheckPortIsOpen is responsible for checking that a port is open for connections
func DownInfra ¶
func DownInfra(dockerComposeFileName string)
DownInfra is responsible for bringing down the infrastructure
func GetContainerEnvValue ¶
GetContainerEnvValue is responsible for returning a value of env in docker container
func GetServiceID ¶
GetServiceID is responsible for returning a docker service identifier
func StopService ¶
func StopService(serviceID string)
StopService is responsible for stopping a docker service
func UpInfra ¶
func UpInfra(dockerComposeFileName string)
UpInfra is responsible for raising the infrastructure
func UpInfraWithEnvs ¶
UpInfraWithEnvs is responsible for raising the infrastructure with environments
Types ¶
This section is empty.