Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvKey = "ARGO_AGENT_TASK_WORKERS" Integration = "argoWorkflows" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ci ¶
type Ci struct{}
func (Ci) MapRepository ¶
MapRepository returns repository according to the following rules:
- If gitUrl starts with "http(s)://" and ends with ".git", use capture group to set repository.
- If gitUrl starts with "git@" and ends with ".git", use capture group to set repository.
- Return gitUrl.
func (Ci) MapRepositoryUrl ¶
MapRepositoryUrl returns repository URL according to the following rules:
- If gitUrl starts with "http(s)://" and ends with ".git", use capture group to set repository URL.
- If gitUrl is of the form "git@github.com:organisation/reponame.git", rewrite and use "https://github.com/organisation/reponame" as repository URL.
- Otherwise, return gitUrl
Click to show internal directories.
Click to hide internal directories.