Documentation ¶
Index ¶
- Variables
- func AddFirewallRules(pid, tcp, udp int) error
- func CheckMd5Sum(path string) (string, error)
- func Copy(srcFile, dstFile string) error
- func CopyDirectory(scrDir, dest string) error
- func CreateIfNotExists(dir string, perm os.FileMode) error
- func Decode(f io.ReadSeeker, obj interface{}) error
- func DelFirewallRules(pid int) error
- func Encode(obj interface{}) ([]byte, error)
- func Exists(filePath string) bool
- func GenerateTokenKeysIfNotPresent(publicKeyPath string, privateKeyPath string)
- func LoadFromPath(baseDir, filename string, obj interface{}) error
- func SaveToPath(baseDir, filename string, obj interface{}) error
- func SetCoreAffinity(pid int, value uint) error
- func SetCpuPriority(pid int, p uint) error
- func WrapErrors(errs ...error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileNotFound file not found ErrFileNotFound = errors.New("file not found") // ErrInvalidJsonFileFormat Contains all errors reported during json decode. ErrInvalidJsonFileFormat = errors.New("invalid json file") )
Functions ¶
func AddFirewallRules ¶ added in v1.20.0
func CheckMd5Sum ¶
func CopyDirectory ¶
func CreateIfNotExists ¶
CreateIfNotExists creates a new directory if not exists
func Decode ¶
func Decode(f io.ReadSeeker, obj interface{}) error
func DelFirewallRules ¶ added in v1.20.0
func GenerateTokenKeysIfNotPresent ¶ added in v1.16.2
func LoadFromPath ¶
func SaveToPath ¶
func SetCoreAffinity ¶ added in v1.20.0
func SetCpuPriority ¶ added in v1.20.0
func WrapErrors ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.