helpers

package
v0.0.0-...-ff29edb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const TestConfigDir = "/tmp/redis-config-dir"
View Source
const TestDataDir = "/tmp/redis-data-dir"
View Source
const TestLogDir = "/tmp/redis-log-dir"
View Source
const TestPidfileDir = "/tmp/pidfiles"

Variables

This section is empty.

Functions

func AssetPath

func AssetPath(filename string) string

func BuildExecutable

func BuildExecutable(sourcePath string) string

func BuildRedisClient

func BuildRedisClient(port uint, host string, password string) redis.Conn

func BuildRedisClientFromConf

func BuildRedisClientFromConf(conf redisconf.Conf) redis.Conn

func CreateTestDirs

func CreateTestDirs() (string, string, string)

func FileExists

func FileExists(path string) bool

func HandleTemplate

func HandleTemplate(sourceFile, destFile string, data interface{}) error

func KillProcess

func KillProcess(session *gexec.Session)

func KillRedisProcess

func KillRedisProcess(instanceID string, brokerConfig brokerconfig.Config)

func RemoveTestDirs

func RemoveTestDirs(configDir, dataDir, logDir string)

func ResetTestDirs

func ResetTestDirs()

func ServiceAvailable

func ServiceAvailable(port uint) bool

func ServiceAvailableTLS

func ServiceAvailableTLS(tlsPort uint) bool

Types

type TemplateData

type TemplateData struct {
	DataDir            string
	Host               string
	Port               int
	ConfigDir          string
	LogDir             string
	AwsAccessKey       string
	AwsSecretAccessKey string
	PlanName           string
	BrokerUrl          string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL