Documentation
¶
Index ¶
- func AbsPathWithExpansion(p string) (string, error)
- func ArgToIndex(arg string) (int64, error)
- func ArgsToIndices(args []string) ([]int64, error)
- func ComputeFileSha256(filePath string) (string, error)
- func Contains(haystack []string, needle string) bool
- func DirExists(path string) (bool, error)
- func FileExist(fileName string) (bool, error)
- func GetOwnerAndRepo(repoPath, user string) (string, string)
- func IndexOf(haystack []string, needle string) int
- func IsKeyEncrypted(sshKey string) (bool, error)
- func NormalizeURL(raw string) (*url.URL, error)
- func PathExists(path string) (bool, error)
- func ValidateAuthenticationMethod(remoteURL string, token string, user string, passwd string, sshAgent bool, ...) (*url.URL, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsPathWithExpansion ¶
AbsPathWithExpansion expand path beginning with "~/" to absolute path
func ArgToIndex ¶
ArgToIndex take issue/pull index as string and return int64
func ArgsToIndices ¶
ArgsToIndices take issue/pull index as string and returns int64s
func ComputeFileSha256 ¶
computeFileSha256 calculates SHA256 checksum of a file
func GetOwnerAndRepo ¶
GetOwnerAndRepo return repoOwner and repoName based on relative path and default owner (if not in path)
func IsKeyEncrypted ¶
IsKeyEncrypted checks if the key is encrypted
func NormalizeURL ¶
NormalizeURL normalizes the input with a protocol
func PathExists ¶
PathExists returns whether the given file or directory exists or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.