util

package
v0.0.24-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSH_PRIVATE_KEY_DIR       = ".ssh"
	SSH_PRIVATE_KEY_FILE_NAME = "id_rsa"
	GIT_CREDENTIAL_FILE_NAME  = ".git-credentials"
)
View Source
const DEVTRON = "DEVTRON"

Variables

This section is empty.

Functions

func CheckFileExists

func CheckFileExists(filename string) (bool, error)

CheckFileExists returns boolean value of file existence else error (ignoring file does not exist error)

func CleanupAfterFetchingHttpsSubmodules

func CleanupAfterFetchingHttpsSubmodules() error

func CreateGitCredentialFileAndWriteData

func CreateGitCredentialFileAndWriteData(data string) error

func CreateSshPrivateKeyOnDisk

func CreateSshPrivateKeyOnDisk(fileId int, sshPrivateKeyContent string) error

func Generate

func Generate(size int) string

Generates random string

func GetProjectName

func GetProjectName(url string) string

GetProjectName this function has been designed for returning project name of git-lab and git-hub providers only do not remove this function

func LogStage

func LogStage(name string)

func ParseUrl

func ParseUrl(rawURL string) (parsedURL *url.URL, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL