Documentation ¶
Index ¶
- Variables
- func CheckFileExists(filePath string) bool
- func CheckIsFile(name string) (body string, err error)
- func DecryptString(src string, key []byte) (decryptedString string, err error)
- func DevideOwnerAndRepo(fullRepo string) (owner string, repo string)
- func EncryptString(src string, key []byte) (encryptedString string, err error)
- func GetDefaultBranch() string
- func GetGitTagMaps(gitRepo *git.Repository) (commitToTagMap map[string][]string, tagToCommitMap map[string]string, ...)
- func GetGitTagsUpToHead(gitRepo *git.Repository) (tags []*semver.Version, err error)
- func ReadFileToString(fileOrString string) (result string, err error)
- func RunCmd(cmd string, shell bool) string
- type UploadArtifact
- type UploadAsset
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyString = fmt.Errorf("empty string") ErrExpextedFileNotDir = fmt.Errorf("expected file and not a directory") )
Functions ¶
func CheckFileExists ¶
func CheckIsFile ¶
func DevideOwnerAndRepo ¶
func GetDefaultBranch ¶
func GetDefaultBranch() string
func GetGitTagMaps ¶
func GetGitTagsUpToHead ¶
func ReadFileToString ¶
ReadFileToString can find a given file and returns it as a string if the input is not an empty string, the given input is returned
Types ¶
type UploadArtifact ¶
Click to show internal directories.
Click to hide internal directories.