Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bobgroup-go-utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bob Public Utils
bobgroup-go-utils
Merge requests
!5
Add search client for OpenSearch to log and query API events
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Add search client for OpenSearch to log and query API events
5-opensearch-for-apilogs
into
main
Overview
0
Commits
2
Pipelines
0
Changes
4
Merged
Pieter van Staden
requested to merge
5-opensearch-for-apilogs
into
main
3 years ago
Overview
0
Commits
2
Pipelines
0
Changes
4
Related to
#5 (closed)
This branch only for writing. Query in next follow up change...
0
0
Merge request reports
Viewing commit
6a0f9ef4
Prev
Next
Show latest version
4 files
+
206
−
63
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
6a0f9ef4
Update search package
· 6a0f9ef4
Jan Semmelink
authored
3 years ago
search/config.go
+
4
−
0
View file @ 6a0f9ef4
Edit in single-file editor
Open in Web IDE
Show full file
@@ -31,3 +31,7 @@ func (c *Config) Validate() error {
const
indexNamePattern
=
`[a-z]([a-z0-9-]*[a-z0-9])*`
var
indexNameRegex
=
regexp
.
MustCompile
(
"^"
+
indexNamePattern
+
"$"
)
func
ValidIndexName
(
s
string
)
bool
{
return
indexNameRegex
.
MatchString
(
s
)
}
Loading