Documentation ¶
Index ¶
- func DeleteEmptyFromStringSlice(s []string) []string
- func FileExists(path string) (bool, error)
- func GetRepoNameFromRemoteURL(remoteURL string) (string, error)
- func GetSSHPublicKeyFromPrivateKeyFile(filePath string) (*ssh.PublicKeys, error)
- func IndentMultiline(multilineStr string, indendationLevel int) string
- func MeasureDuration(f func() error) (time.Duration, error)
- func ReadAPIToString(url string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEmptyFromStringSlice ¶
DeleteEmptyFromStringSlice deletes empty items from string slice
func GetRepoNameFromRemoteURL ¶
GetRepoNameFromRemoteURL parses standard bare repo git url and returns repo name
func GetSSHPublicKeyFromPrivateKeyFile ¶
func GetSSHPublicKeyFromPrivateKeyFile(filePath string) (*ssh.PublicKeys, error)
GetSSHPublicKeyFromPrivateKeyFile retrives ssh public key from file
func IndentMultiline ¶
IndentMultiline increases indentation of a multiline string
func ReadAPIToString ¶
ReadAPIToString reads external HTTP.GET api to string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.