deployr: Index | Files

package util

import ""

Package util contains a couple of utility methods.


Package Files


func FileExists Uses

func FileExists(name string) bool

FileExists reports whether the named file or directory exists.

func HasSSHAgent Uses

func HasSSHAgent() bool

HasSSHAgent reports whether the SSH agent is available

func HashFile Uses

func HashFile(filePath string) (string, error)

HashFile returns the SHA1-hash of the contents of the specified file.

Package util imports 4 packages (graph) and is imported by 2 packages. Updated 2020-03-02. Refresh now. Tools for package owners.