github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/notifications/functions.md (about) 1 ### **time** 2 Time related functions. 3 4 <hr> 5 **`time.Now() Time`** 6 7 Executes function built-in Golang [time.Now](https://golang.org/pkg/time/#Now) function. Returns an instance of 8 Golang [Time](https://golang.org/pkg/time/#Time). 9 10 <hr> 11 **`time.Parse(val string) Time`** 12 13 Parses specified string using RFC3339 layout. Returns an instance of Golang [Time](https://golang.org/pkg/time/#Time). 14 15 ### **strings** 16 String related functions. 17 18 <hr> 19 **`strings.ReplaceAll() string`** 20 21 Executes function built-in Golang [strings.ReplaceAll](https://pkg.go.dev/strings#ReplaceAll) function. 22 23 <hr> 24 **`strings.ToUpper() string`** 25 26 Executes function built-in Golang [strings.ToUpper](https://pkg.go.dev/strings#ToUpper) function. 27 28 <hr> 29 **`strings.ToLower() string`** 30 31 Executes function built-in Golang [strings.ToLower](https://pkg.go.dev/strings#ToLower) function. 32 33 ### **sync** 34 35 <hr> 36 **`sync.GetInfoItem(app map, name string) string`** 37 Returns the `info` item value by given name stored in the Argo CD App sync operation. 38 39 ### **repo** 40 Functions that provide additional information about Application source repository. 41 <hr> 42 **`repo.RepoURLToHTTPS(url string) string`** 43 44 Transforms given GIT URL into HTTPs format. 45 46 <hr> 47 **`repo.FullNameByRepoURL(url string) string`** 48 49 Returns repository URL full name `(<owner>/<repoName>)`. Currently supports only Github, GitLab and Bitbucket. 50 51 <hr> 52 **`repo.GetCommitMetadata(sha string) CommitMetadata`** 53 54 Returns commit metadata. The commit must belong to the application source repository. `CommitMetadata` fields: 55 56 * `Message string` commit message 57 * `Author string` - commit author 58 * `Date time.Time` - commit creation date 59 * `Tags []string` - Associated tags 60 61 <hr> 62 **`repo.GetAppDetails() AppDetail`** 63 64 Returns application details. `AppDetail` fields: 65 66 * `Type string` - AppDetail type 67 * `Helm HelmAppSpec` - Helm details 68 * Fields : 69 * `Name string` 70 * `ValueFiles []string` 71 * `Parameters []*v1alpha1.HelmParameter` 72 * `Values string` 73 * `FileParameters []*v1alpha1.HelmFileParameter` 74 * Methods : 75 * `GetParameterValueByName(Name string)` Retrieve value by name in Parameters field 76 * `GetFileParameterPathByName(Name string)` Retrieve path by name in FileParameters field 77 * 78 * `Kustomize *apiclient.KustomizeAppSpec` - Kustomize details 79 * `Directory *apiclient.DirectoryAppSpec` - Directory details