gitdetails

package
v0.0.0-...-eb21379 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesGitPathExist

func DoesGitPathExist(gitURL, gitBranch, gitPath string) bool

DoesGitPathExist checks if the specified git url exists by sending an HTTP request to it.

func GetArgoCdAppGitDetails

func GetArgoCdAppGitDetails() error

GetArgoCdAppGitDetails initializes tsparams.ArgoCdAppDetails with the details for each of tsparams.ArgoCdApps.

func JoinGitPaths

func JoinGitPaths(inputs []string) string

JoinGitPaths is used to join any combination of git strings but also avoiding double slashes.

func SetGitDetailsInArgoCd

func SetGitDetailsInArgoCd(
	appName string, gitDetails tsparams.ArgoCdGitDetails, waitForSync, syncMustBeValid bool) error

SetGitDetailsInArgoCd updates the git details for the provided Argo CD app.

func UpdateArgoCdAppGitPath

func UpdateArgoCdAppGitPath(appName, ztpTestPath string, syncMustBeValid bool) (bool, error)

UpdateArgoCdAppGitPath updates the git path in the specified Argo CD app, returning whether the git path exists and any error that occurred.

Types

This section is empty.

Jump to

Keyboard shortcuts

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