package
0.30.0
Repository: https://github.com/netbirdio/netbird.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
CopyFileContents copies contents of the given src file to the dst file.
DirectWriteJson writes JSON config object to a file creating parent directories if required without creating a temporary file.
No description provided by the author
False returns a *bool whose underlying value is false.
FileExists returns true if specified file exists.
InitLog parses and sets log-level input.
IsAdmin returns true if user is root.
ReadJson reads JSON config file and maps to a provided interface.
Retry retries a given toExec function calling onError on failed attempts onError shouldn be a lightweight function and shouldn't be blocking.
Return bool representation if the bool pointer is non-nil, otherwise returns false.
Return bool representation if the bool pointer is non-nil, otherwise returns true.
SliceDiff returns the elements in slice `x` that are not in slice `y`.
True returns a *bool whose underlying value is true.
WriteJson writes JSON config object to a file creating parent directories if required The output JSON is pretty-formatted.
WriteJsonWithRestrictedPermission writes JSON config object to a file.

# Structs

Duration is used strictly for JSON requests/responses due to duration marshalling issues.