Versions in this module Expand all Collapse all v1 v1.8.5 Mar 14, 2024 v1.8.3 Mar 14, 2024 Changes in this version + const Bin + const Blade + const BladeLog + const Custom + var Debug bool + var LogLevel string + var LogPath string + func AddDebugFlag() + func AddLogLevelFlag() + func AddLogPathFlag() + func AddModels(parent *spec.Models, child *spec.Models) + func ArchiveTar(file string, writer *tar.Writer) error + func CheckPortInUse(port string) bool + func ConvertSpecToModels(commandSpec spec.ExpModelCommandSpec, prepare spec.ExpPrepareModel, ...) *spec.Models + func CreateYamlFile(models *spec.Models, specFile string) error + func Curl(ctx context.Context, url string) (string, error, int) + func Debugf(uid, funcName, msg string) + func Errorf(uid, funcName, msg string) + func Fatalf(uid, funcName, msg string) + func GenerateContainerId() string + func GenerateExecID() string + func GenerateUid() (string, error) + func GetBinPath() string + func GetLibHome() string + func GetLogFile(programType int) (string, error) + func GetLogPath(programType int) (string, error) + func GetNohupOutput(programType int, logFileName string) string + func GetProgramParentPath() string + func GetProgramPath() string + func GetRunFuncName() string + func GetSpecifyingUserHome(username string) string + func GetUnusedPort() (int, error) + func GetUserHome() string + func GetYamlHome() string + func Hold(hooks ...ShutdownHook) + func Infof(uid, funcName, msg string) + func InitLog(programType int) + func IsDir(path string) bool + func IsExist(fileName string) bool + func IsNil(i interface{}) bool + func MarshalModelSpec(models *spec.Models, writer io.Writer) error + func MergeModels(models ...*spec.Models) *spec.Models + func Panicf(uid, funcName, msg string) + func ParseIntegerListToStringSlice(flagName, flagValue string) ([]string, error) + func ParseSpecsToModel(file string, executor spec.Executor) (*spec.Models, error) + func PostCurl(url string, body []byte, contentType string) (string, error, int) + func Remove(items []string, idx int) []string + func RemoveDuplicates(items []string) []string + func Tracef(uid, funcName, msg string) + func Warnf(uid, funcName, msg string) + type ShutdownHook interface + Shutdown func() error