utils

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src string, dst string, perm fs.FileMode) error

func CopyFile

func CopyFile(src, dst string, perm fs.FileMode) error

func CreateDir

func CreateDir(path string, perm fs.FileMode) error

func CreateServiceLog

func CreateServiceLog(path string) error

func DeleteTaskExecutable added in v0.2.4

func DeleteTaskExecutable(executable string) error

func DeleteTaskLog added in v0.2.4

func DeleteTaskLog(logsPath string) error

func GetExecutable

func GetExecutable(taskName string) (string, error)

func GetHomeDir

func GetHomeDir() string

func GetSourcePath

func GetSourcePath(task string) string

func GetWd

func GetWd() string

func HandleStopSignal

func HandleStopSignal(cleanup func())

func IsInit

func IsInit() bool

func IsValidPostgresURL

func IsValidPostgresURL(url string) bool

func ParseTimeStr added in v0.2.3

func ParseTimeStr(t string) (time.Time, error)

func PathExists

func PathExists(path string) (bool, error)

Types

type TaskLog

type TaskLog struct {
	Content []string
}

func GetLogLines

func GetLogLines(logsPath string) (*TaskLog, error)

Jump to

Keyboard shortcuts

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