Documentation ¶
Index ¶
- func CheckFileExistsInDir(rootDir, filename string) (bool, error)
- func CheckIfEnvironmentExists(env string) bool
- func CheckOptions(optionsArr []Options) (bool, error)
- func Contains(s []string, str string) bool
- func CreateDir(target string) error
- func CreateDockerConfigFile(base64EncodedString string) error
- func CreateFile(target string, header *tar.Header, tr *tar.Reader) error
- func CreateKubeconfigFileForRestConfig(restConfig rest.Config) ([]byte, error)
- func ExecuteCommandInASpecificDirectory(command string, args []string, directory string) error
- func ExtractGitRepositoryNameFromURL(url string) (name string)
- func FilterSliceUsingPattern(pattern string, lString []string) []string
- func GetAdditionalInfo(applicationName, namespace string) string
- func GetChangedFiles(repo string) (rulesengine.Files, error)
- func GetContainerLogs(ki kubernetes.Interface, podName, containerName, namespace string) (string, error)
- func GetEnv(key, defaultVal string) string
- func GetEnvOrFunc(key string, defaultFunc func() (string, error)) (string, error)
- func GetFileNamesFromDir(dirPath string) ([]string, error)
- func GetGeneratedNamespace(name string) string
- func GetGithubAppID() (int64, error)
- func GetOpenshiftToken() (token string, err error)
- func GetQuayIOOrganization() string
- func GetRepoName(repoUrl string) string
- func IsPrivateHostname(url string) bool
- func MergeMaps(m1, m2 map[string]string) map[string]string
- func ReadTarFile(tarPath string) (*tar.Reader, error)
- func ToPrettyJSONString(v interface{}) string
- func Untar(dst string, tarPath string) error
- func WaitUntil(cond wait.ConditionFunc, timeout time.Duration) error
- func WaitUntilWithInterval(cond wait.ConditionFunc, interval time.Duration, timeout time.Duration) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileExistsInDir ¶
func CheckIfEnvironmentExists ¶
CheckIfEnvironmentExists return true/false if the environment variable exists
func CheckOptions ¶
check options are valid or not
func CreateDockerConfigFile ¶
CreateDockerConfigFile takes base64 encoded dockerconfig.json and saves it locally (/<home-directory/.docker/config.json)
func CreateKubeconfigFileForRestConfig ¶
Build a kubeconfig string from an existing client config
func FilterSliceUsingPattern ¶
func GetAdditionalInfo ¶
GetAdditionalInfo adds information regarding the application name and namespace of the test
func GetChangedFiles ¶
func GetChangedFiles(repo string) (rulesengine.Files, error)
func GetContainerLogs ¶
func GetContainerLogs(ki kubernetes.Interface, podName, containerName, namespace string) (string, error)
Return a container logs from a given pod and namespace
func GetEnvOrFunc ¶
Retrieve an environment variable. If it doesn't exist, returns result of a call to `defaultFunc`.
func GetFileNamesFromDir ¶
func GetGeneratedNamespace ¶
func GetGithubAppID ¶
func GetOpenshiftToken ¶
func GetQuayIOOrganization ¶
func GetQuayIOOrganization() string
func GetRepoName ¶
func IsPrivateHostname ¶
func ToPrettyJSONString ¶
func ToPrettyJSONString(v interface{}) string
func WaitUntilWithInterval ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.