Documentation ¶
Index ¶
- func AbsPath(p string) (string, error)
- func AbsPathWithPrefix(prefix, p string) (string, error)
- func BinariesAccessible(binaries ...string) error
- func BinaryAbsPath(p string) (string, error)
- func CapsuleHome() (string, error)
- func CopyFile(srcFile, dstFile string) error
- func CpAndChmodxFile(source, destination string) error
- func CreateFile(p string) (*os.File, error)
- func DirEmpty(path string, ignore ...string) (bool, error)
- func ExecuteBinary(binaryPath string, args []string, v interface{}) ([]byte, error)
- func FileExists(name string) (bool, error)
- func ToPoint[T any](val T) *T
- func Unzip(source, fileName, outDir string) error
- func VegaNodeHomePath(networkHomePath string, nodeIdx int) string
- type MultiError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsPathWithPrefix ¶
func BinariesAccessible ¶ added in v0.2.0
Returns and error if given binaries are not accesible trough PATH
func BinaryAbsPath ¶
func CapsuleHome ¶
func CpAndChmodxFile ¶ added in v0.2.0
func CreateFile ¶
Create file creates file and it's path if not exists.
func DirEmpty ¶ added in v0.2.3
DirEmpty returns whether given directory is empty or not. Folder is considered empty if only the given ignore files are present.
func ExecuteBinary ¶
func FileExists ¶
func VegaNodeHomePath ¶
Types ¶
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
func NewMultiError ¶
func NewMultiError() *MultiError
func (*MultiError) Add ¶
func (e *MultiError) Add(err error)
func (*MultiError) Error ¶
func (e *MultiError) Error() string
func (*MultiError) HasAny ¶
func (e *MultiError) HasAny() bool
Click to show internal directories.
Click to hide internal directories.