Documentation ¶
Index ¶
- func CanUseVersion(maj1 int, min1 int, patch1 int, sub1 string, build1 int, maj2 int, min2 int, ...) bool
- func ChownRmarlinctlDir() error
- func CreateDirPathIfNotExists(dirPath string) error
- func DecodeVersionString(verString string) (int, int, int, string, int, error)
- func DownloadExecutable(exectype string, version string, url string, skipchecksum bool, ...) error
- func DownloadFile(filepath string, url string) error
- func ExpandTilde(path string) string
- func GetFileSeekOffsetLastNLines(fname string, lines int) int64
- func GetRuntimes() map[string]bool
- func GetTable() table.Writer
- func GetUser() (*user.User, error)
- func GitPullHead(upstreamUrl string, branch string, dirPath string) error
- func IsCommandAvailable(name string) bool
- func IsHigherVersion(maj1 int, min1 int, patch1 int, maj2 int, min2 int, patch2 int, sub2 string) bool
- func IsSupervisorAvailable() bool
- func IsSupervisorInRunningState() bool
- func IsSystemdAvailable() bool
- func IsValidSubscription(subscription string) bool
- func IsValidUpdatePolicy(updatePolicy string) bool
- func LogTailer(program []string, instanceID string, lines int) error
- func MoveDir(srcDir string, dstDir string) error
- func PrettyPrintKVMap(s map[string]interface{})
- func PrettyPrintKVStruct(s interface{})
- func PrintPrettyDiff(message string)
- func ReadInputPasswordLine() (string, error)
- func ReadStringFromFile(filePath string) (string, error)
- func RemoveConfigEntry(key string) error
- func RemoveDirContents(dirPath string) error
- func RemoveDirPathIfExists(dirPath string) error
- func SupervisorRereadUpdate() error
- func SupervisorRestartProgramBestEffort(exectype string, program string)
- func SupervisorStart(programs []string) error
- func SupervisorStatusBestEffort(programs []string, instanceID string)
- func SupervisorStop(program []string) []error
- func TrimSpacesEveryLine(s string) string
- func VerifyChecksum(filepath string, md5hash string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanUseVersion ¶
func ChownRmarlinctlDir ¶
func ChownRmarlinctlDir() error
func DecodeVersionString ¶
func DownloadExecutable ¶
func DownloadFile ¶
func ExpandTilde ¶
func GetRuntimes ¶
func IsCommandAvailable ¶
func IsHigherVersion ¶
func IsSupervisorAvailable ¶
func IsSupervisorAvailable() bool
func IsSupervisorInRunningState ¶
func IsSupervisorInRunningState() bool
func IsSystemdAvailable ¶
func IsSystemdAvailable() bool
func IsValidSubscription ¶
func IsValidUpdatePolicy ¶
func PrettyPrintKVMap ¶
func PrettyPrintKVMap(s map[string]interface{})
func PrettyPrintKVStruct ¶
func PrettyPrintKVStruct(s interface{})
func PrintPrettyDiff ¶
func PrintPrettyDiff(message string)
func ReadInputPasswordLine ¶
func ReadStringFromFile ¶
func RemoveConfigEntry ¶
func RemoveDirContents ¶
func RemoveDirPathIfExists ¶
func SupervisorRereadUpdate ¶
func SupervisorRereadUpdate() error
func SupervisorStart ¶
func SupervisorStop ¶
func TrimSpacesEveryLine ¶
func VerifyChecksum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.