Semaphore/db_lib/LocalApp.go

26 lines
555 B
Go
Raw Normal View History

2024-01-30 16:42:56 +01:00
package db_lib
import (
"os"
"github.com/ansible-semaphore/semaphore/pkg/task_logger"
2024-01-30 16:42:56 +01:00
)
2024-05-21 13:39:51 +02:00
func getSensitiveEnvs() []string {
return []string{
"SEMAPHORE_ACCESS_KEY_ENCRYPTION",
"SEMAPHORE_ADMIN_PASSWORD",
"SEMAPHORE_DB_USER",
"SEMAPHORE_DB_NAME",
"SEMAPHORE_DB_HOST",
"SEMAPHORE_DB_PASS",
"SEMAPHORE_LDAP_PASSWORD",
}
}
2024-01-30 16:42:56 +01:00
type LocalApp interface {
SetLogger(logger task_logger.Logger) task_logger.Logger
2024-01-30 16:42:56 +01:00
InstallRequirements() error
Run(args []string, environmentVars *[]string, inputs map[string]string, cb func(*os.Process)) error
2024-01-30 16:42:56 +01:00
}