Versions in this module Expand all Collapse all v1 v1.2.6 Aug 31, 2020 Changes in this version + const CredentialPrefix + const HTTPRequestTimeout + const ModeReadWriteFile + const ResponseHeaderTimeout + const WIN + func AddFileToIgnoreFile(gitIgnoreFile, filename string) error + func AddOdoFileIndex(gitIgnoreFile string) error + func CalculateFileDataKeyFromPath(absolutePath string, rootDirectory string) (string, error) + func CaseInsensitive(parameter string) func(word string) bool + func CheckGitIgnoreFile(directory string) (string, error) + func CheckKubeConfigExist() bool + func CheckOutputFlag(outputFlag string) bool + func CheckPathExists(path string) bool + func ConvertGitSSHRemoteToHTTPS(remote string) string + func ConvertKeyValueStringToMap(params []string) map[string]string + func ConvertLabelsToSelector(labels map[string]string) string + func CopyFile(srcPath string, dstPath string, info os.FileInfo) error + func CreateIfNotExists(configFile string) error + func DeleteConfiguration(info interface{}, parameter string) error + func DeleteIndexFile(directory string) error + func DeletePath(path string) error + func DisplayLog(followLog bool, rd io.ReadCloser, compName string) (err error) + func DownloadFile(params DownloadParams) error + func DownloadFileInMemory(url string) ([]byte, error) + func DownloadFileWithCache(params DownloadParams, cacheFor int) error + func ExtractComponentType(namespacedVersionedComponentType string) string + func FilterIgnores(filesChanged, filesDeleted, absIgnoreRules []string) (filesChangedFiltered, filesDeletedFiltered []string) + func GenFileURL(location string, os ...string) string + func GenerateRandomString(n int) string + func GetAbsGlobExps(directory string, globExps []string) []string + func GetAbsPath(path string) (string, error) + func GetAndExtractZip(zipURL string, destination string, pathToUnzip string) error + func GetBoolOrDefault(ptr *bool, defaultValue bool) bool + func GetContainerPortsFromStrings(ports []string) ([]corev1.ContainerPort, error) + func GetDNS1123Name(str string) string + func GetFromFile(c interface{}, filename string) error + func GetGitHubZipURL(repoURL string, branch string, startPoint string) (string, error) + func GetHostWithPort(inputURL string) (string, error) + func GetIgnoreRulesFromDirectory(directory string) ([]string, error) + func GetIntOrDefault(ptr *int, defaultValue int) int + func GetLowerCaseParameters(parameters []string) map[string]bool + func GetRandomName(prefix string, prefixMaxLen int, existList []string, retries int) (string, error) + func GetRemoteFilesMarkedForDeletion(delSrcRelPaths []string, remoteFolder string) []string + func GetSortedKeys(mapping map[string]string) []string + func GetSplitValuesFromStr(inputStr string) []string + func GetStringOrDefault(ptr *string, defaultValue string) string + func GetStringOrEmpty(ptr *string) string + func HTTPGetFreePort() (int, error) + func HTTPGetRequest(request HTTPRequestParams, cacheFor int) ([]byte, error) + func In(arr []string, value string) bool + func IsEmpty(name string) (bool, error) + func IsGlobExpMatch(strToMatch string, globExps []string) (bool, error) + func IsSet(info interface{}, parameter string) bool + func IsValidProjectDir(path string, devfilePath string) error + func NamespaceOpenShiftObject(componentName string, applicationName string) (string, error) + func OpenBrowser(url string) error + func ParseComponentImageName(imageName string) (string, string, string, string) + func PathEqual(firstPath string, secondPath string) bool + func ReadFilePath(u *url.URL, os string) string + func RemoveDuplicates(s []string) []string + func RemoveRelativePathFromFiles(files []string, path string) ([]string, error) + func ResolveIndexFilePath(directory string) (string, error) + func SliceDifference(s1 []string, s2 []string) []string + func TruncateString(str string, maxLen int) string + func Unzip(src, dest, pathToUnzip string) ([]string, error) + func ValidateFile(filePath string) error + func ValidateK8sResourceName(key string, value string) error + func ValidateURL(sourceURL string) error + func WriteFile(newFileMap map[string]FileData, resolvedPath string) error + func WriteToFile(c interface{}, filename string) error + type ConcurrentTask struct + ToRun func(errChannel chan error) + type ConcurrentTasks struct + func NewConcurrentTasks(taskNumber int) *ConcurrentTasks + func (ct *ConcurrentTasks) Add(task ConcurrentTask) + func (ct *ConcurrentTasks) Run() error + type DownloadParams struct + Filepath string + Request HTTPRequestParams + type FileData struct + LastModifiedDate time.Time + Size int64 + func GenerateNewFileDataEntry(absolutePath string, rootDirectory string) (string, *FileData, error) + type FileIndex struct + Files map[string]FileData + func NewFileIndex() *FileIndex + func ReadFileIndex(filePath string) (*FileIndex, error) + type HTTPRequestParams struct + Token string + URL string + type IndexerRet struct + FilesChanged []string + FilesDeleted []string + NewFileMap map[string]FileData + ResolvedPath string + func RunIndexer(directory string, ignoreRules []string) (ret IndexerRet, err error) + type ResourceRequirementInfo struct + MaxQty resource.Quantity + MinQty resource.Quantity + ResourceType corev1.ResourceName + func FetchResourceQuantity(resourceType corev1.ResourceName, min string, max string, request string) (*ResourceRequirementInfo, error)