Documentation ¶
Index ¶
- func AddUserPasswordToURLFromDir(gitURL, path string) (string, error)
- func CloneClusterRepo(g gitclient.Interface, gitURL string) (string, error)
- func EnvironmentGitURL(c *jxcore.RequirementsConfig, name string) string
- func GetClusterRequirementsConfig(g gitclient.Interface, jxClient versioned.Interface) (*jxcore.RequirementsConfig, error)
- func GetRequirementsAndGit(g gitclient.Interface, gitURL string) (*jxcore.RequirementsConfig, string, error)
- func GetRequirementsFromGit(g gitclient.Interface, gitURL string) (*jxcore.RequirementsConfig, error)
- func LoadSettings(dir string, failOnValidationErrors bool) (*jxcore.Settings, error)
- func PartialCloneClusterRepo(g gitclient.Interface, gitURL string, shallow bool, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserPasswordToURLFromDir ¶ added in v3.0.120
AddUserPasswordToURLFromDir loads the username and password files from the given directory and adds them to the URL if they are found
func CloneClusterRepo ¶ added in v3.1.0
func EnvironmentGitURL ¶ added in v3.0.58
func EnvironmentGitURL(c *jxcore.RequirementsConfig, name string) string
EnvironmentGitURL looks up the environment configuration based on environment name and returns the git URL or an empty string if the environment does not have an owner or repository configured
func GetClusterRequirementsConfig ¶
func GetClusterRequirementsConfig(g gitclient.Interface, jxClient versioned.Interface) (*jxcore.RequirementsConfig, error)
GetClusterRequirementsConfig returns the cluster requirements from the cluster git repo
func GetRequirementsAndGit ¶ added in v3.0.92
func GetRequirementsAndGit(g gitclient.Interface, gitURL string) (*jxcore.RequirementsConfig, string, error)
GetRequirementsAndGit gets the requirements from the given git URL and the git contents
func GetRequirementsFromGit ¶ added in v3.0.57
func GetRequirementsFromGit(g gitclient.Interface, gitURL string) (*jxcore.RequirementsConfig, error)
GetRequirementsFromGit gets the requirements from the given git URL
func LoadSettings ¶ added in v3.0.58
LoadSettings loads the settings from the given directory if present or return nil
func PartialCloneClusterRepo ¶ added in v3.9.0
func PartialCloneClusterRepo(g gitclient.Interface, gitURL string, shallow bool, sparseCheckoutPatterns ...string) (string, error)
PartialCloneClusterRepo clones the cluster repo to a temporary directory and returns the directory path Attempts a sparse clone first, falling back to a partial clone without checkout patterns, then a default clone
Types ¶
This section is empty.