Documentation ¶
Index ¶
- Constants
- func CheckSystemPrerequisites(volume string) error
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func DappCtrlVersion(filename string) string
- func DownloadFile(filePath, url string) error
- func ExecuteCommand(filename string, args ...string) (err error)
- func ExecuteCommandOutput(filename string, args ...string) (string, error)
- func FreePort(host, port string) (string, error)
- func GrantAccess(path string) error
- func Hash(s string) string
- func IsServiceStopped(id string) bool
- func IsURL(path string) bool
- func KillProcess(dir string) error
- func MergeJSONFile(dstFile, srcFile string, exceptions ...string) error
- func ParseVersion(s string) int64
- func RenamePath(path, folder string) string
- func RetryTillSucceed(ctx context.Context, f func() error) error
- func SelfRemove(dir string) error
- func TempPath(volume string) string
- func TimeOutInSec(timeout uint64) time.Duration
- func Unzip(src string, dest string) error
- type Addr
- type WriteCounter
Constants ¶
View Source
const ( // MinAvailableDiskSize - available min 500MB MinAvailableDiskSize uint64 = 500 * 1024 * 1024 // MinMemorySize - min RAM 2 GB MinMemorySize uint64 = 2 * 1000 * 1024 * 1024 // FullPermission - 0777 FullPermission os.FileMode = 0777 )
Variables ¶
This section is empty.
Functions ¶
func CheckSystemPrerequisites ¶
CheckSystemPrerequisites does checked system to prerequisites.
func DappCtrlVersion ¶
DappCtrlVersion returns dappctrl version.
func ExecuteCommand ¶
ExecuteCommand does executing file.
func ExecuteCommandOutput ¶
ExecuteCommandOutput does executing file and returns output.
func IsServiceStopped ¶
IsServiceStopped returns service stopped status.
func MergeJSONFile ¶
MergeJSONFile merges two json files.
func ParseVersion ¶
ParseVersion returns version number in int64 format.
func RenamePath ¶
RenamePath changes folder name and returns it
func RetryTillSucceed ¶
RetryTillSucceed tries execute func till succeed or returns timeout error.
func TimeOutInSec ¶
TimeOutInSec returns time duration in seconds.
Types ¶
Click to show internal directories.
Click to hide internal directories.