INNER CODE UNIT · Go

minioCommand

backube/volsync · custom-scorecard-tests/main.go:184

func minioCommand(home, namespace string, useTLS bool, image string) string {
	command := fmt.Sprintf("export HOME=%s &&", home)
	if useTLS {
		command += fmt.Sprintf(" MINIO_NAMESPACE=%s MINIO_USE_TLS=1", namespace)
	}
	command += " ./run-minio.sh"
	if image != "" {
		command += " " + shellQuote(image)
	}
	return command
}

func shellQuote(value string) string {
	return "'" + strings.ReplaceAll(value, "'", "'\"'\"'") + "'"
}

func testAnsiblePlaybook(ansiblePlaybookTestName string) scapiv1alpha3.TestStatus {
	r := scapiv1alpha3.TestResult{}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…