Functions
time
Time related functions.
time.Now() Time
Executes function built-in Golang time.Now function. Returns an instance of Golang Time.
time.Parse(val string) Time
Parses specified string using RFC3339 layout. Returns an instance of Golang Time.
strings
String related functions.
strings.ReplaceAll() string
Executes function built-in Golang strings.ReplaceAll function.
strings.ToUpper() string
Executes function built-in Golang strings.ToUpper function.
strings.ToLower() string
Executes function built-in Golang strings.ToLower function.
sync
sync.GetInfoItem(app map, name string) string Returns the info item value by given name stored in the Argo CD App sync operation.
repo
Functions that provide additional information about Application source repository.
repo.RepoURLToHTTPS(url string) string
Transforms given GIT URL into HTTPs format.
repo.FullNameByRepoURL(url string) string
Returns repository URL full name (<owner>/<repoName>). Currently supports only Github, GitLab and Bitbucket.
repo.GetCommitMetadata(sha string) CommitMetadata
Returns commit metadata. The commit must belong to the application source repository. CommitMetadata fields:
Message stringcommit messageAuthor string- commit authorDate time.Time- commit creation dateTags []string- Associated tags
repo.GetAppDetails() AppDetail
Returns application details. AppDetail fields:
Type string- AppDetail typeHelm HelmAppSpec- Helm details- Fields :
Name stringValueFiles []stringParameters []*v1alpha1.HelmParameterValues stringFileParameters []*v1alpha1.HelmFileParameter
- Methods :
GetParameterValueByName(Name string)Retrieve value by name in Parameters fieldGetFileParameterPathByName(Name string)Retrieve path by name in FileParameters field *
Kustomize *apiclient.KustomizeAppSpec- Kustomize detailsDirectory *apiclient.DirectoryAppSpec- Directory details