Versions in this module Expand all Collapse all v1 v1.1.0 Apr 23, 2026 v1.0.1 Apr 30, 2025 v1.0.0 Mar 31, 2025 Changes in this version + const DefaultExposedGitBindHost + const DefaultExposedGitPort + const DefaultFakeGitServerContainerName + const DefaultGitDockerDaemonCertPath + const DefaultGitDockerDaemonHost + const DefaultGitDockerDaemonTLSVerify + const DefaultPostgresDatabase + const DefaultPostgresDockerDaemonCertPath + const DefaultPostgresDockerDaemonHost + const DefaultPostgresDockerDaemonTLSVerify + const DefaultPostgresHost + const DefaultPostgresPassword + const DefaultPostgresPort + const DefaultPostgresUser + const DefaultPostgresVersion + const DefaultRabbitMqDockerDaemonCertPath + const DefaultRabbitMqDockerDaemonHost + const DefaultRabbitMqDockerDaemonTLSVerify + const DefaultRabbitMqHost + const DefaultRabbitMqPassword + const DefaultRabbitMqPort + const DefaultRabbitMqUser + const DefaultRabbitMqVersion + const DefaultRedisDockerDaemonCertPath + const DefaultRedisDockerDaemonHost + const DefaultRedisDockerDaemonTLSVerify + const DefaultRedisHost + const DefaultRedisPort + const DefaultRedisVersion + const GitDockerImage + const PostgresDockerImage + const RabbitMqDockerImage + const RedisDockerImage + func AssertGolden(t *testing.T, path string, actual []byte) + func AssertGoldenTemplate(t *testing.T, path string, templateVars map[string]string, actual []byte) + func GenerateAndWritePrivateKey(t *testing.T, tmpDir, keyName string) (string, *stdRsa.PrivateKey) + func GenerateAndWritePublicKey(t *testing.T, tmpDir, keyName string, privKey *stdRsa.PrivateKey) string + func GitEnvToArray(gitEnv map[string]string) []string + func GoBuild(ctx context.Context, binaryPattern, pkgPath string, osExecutor os.OsExecutor) string + func RandString(n int) string + func RunCommandInSameProcess(cmd *cobra.Command, args []string, output io.Writer) (*cobra.Command, error) + func RunCommandInSubprocess(t *testing.T, args ...string) *exec.Cmd + func TestChdir(t *testing.T, dir string) + func TestCwd(t *testing.T, dirPrefix string) string + func TestDir(t *testing.T, dirPrefix string) string + type Build struct + func NewBuild(binaryPath, workDir string) *Build + func (b *Build) Run(ctx context.Context, args ...string) (string, string, error) + type FakeGitServer struct + Host string + Port int + func DefaultGitServer() *FakeGitServer + func NewFakeGitServer(host string, port int, dockerContainerName string, dockerDaemonHost string, ...) *FakeGitServer + func NewFakeGitServerFromEnv() *FakeGitServer + func (s *FakeGitServer) AddDirToGitRepo(gitEnv map[string]string, dir string, templateData interface{}) error + func (s *FakeGitServer) AddFilesToGitRepo(gitEnv map[string]string, files map[string]string) error + func (s *FakeGitServer) AddRemoteGitUser(username string, privKey *rsa.PrivateKey) error + func (s *FakeGitServer) CloneRemoteGitRepo(gitEnv map[string]string) (string, error) + func (s *FakeGitServer) CreateRemoteGitRepo(privKeyPath, username, repositoryName string) error + func (s *FakeGitServer) IsGitHealthy() bool + func (s *FakeGitServer) PrepareGitEnv(privKeyPath, username, repositoryName, gitWorkDir string) map[string]string + func (s *FakeGitServer) PrepareGitServerWithArgs() error + func (s *FakeGitServer) SetupForGitRepo(t *testing.T, tempDir string, gitRepoFiles map[string]string) (map[string]string, string) + func (s *FakeGitServer) StopGitServer() error + type FakePostgresServer struct + func NewFakePostgres10Server(dockerContainerName, dockerDaemonHost, dockerDaemonCertPath, ... string, ...) *FakePostgresServer + func NewFakePostgres10ServerFromEnv() *FakePostgresServer + func NewFakePostgresServer(...) *FakePostgresServer + func NewFakePostgresServerFromEnv() *FakePostgresServer + func (s *FakePostgresServer) GetDSN(connectTimeout int) string + func (s *FakePostgresServer) IsHealthy() bool + func (s *FakePostgresServer) RunWithArgs() error + func (s *FakePostgresServer) Stop() error + type FakeRabbitMq struct + func NewFakeRabbitMq(...) *FakeRabbitMq + func NewFakeRabbitMqFromEnv() *FakeRabbitMq + func (s *FakeRabbitMq) GetConnectionString() string + func (s *FakeRabbitMq) IsHealthy() bool + func (s *FakeRabbitMq) RunWithArgs() error + func (s *FakeRabbitMq) Stop() error + type FakeRedisServer struct + Host string + Port int + func NewFakeRedis5Server(dockerContainerName, dockerDaemonHost, dockerDaemonCertPath, ... string, ...) *FakeRedisServer + func NewFakeRedis5ServerFromEnv() *FakeRedisServer + func NewFakeRedisServer(version, dockerContainerName, dockerDaemonHost, dockerCertPath, ... string, ...) *FakeRedisServer + func NewFakeRedisServerFromEnv() *FakeRedisServer + func (s *FakeRedisServer) IsHealthy() bool + func (s *FakeRedisServer) RunWithArgs() error + func (s *FakeRedisServer) Stop() error