Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-07-28 02:44:37 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-07-28 02:44:37 +0300
commit98b61cf4663926bec3ae822f60cc34cce6e11b75 (patch)
tree0c3441a103255da9ba240e606f41929b210c1ffc /internal/source/gitlab/cache/cache.go
parentfaa6a4f1ed63dfd3d9f6c193275b1186e66978ec (diff)
Replace checker in gitlab package
Add `Status` back to the Gitlab struct and the interfaces it needs. Remove checker interface.
Diffstat (limited to 'internal/source/gitlab/cache/cache.go')
-rw-r--r--internal/source/gitlab/cache/cache.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/source/gitlab/cache/cache.go b/internal/source/gitlab/cache/cache.go
index c8d166b5..37cef111 100644
--- a/internal/source/gitlab/cache/cache.go
+++ b/internal/source/gitlab/cache/cache.go
@@ -109,3 +109,8 @@ func (c *Cache) Resolve(ctx context.Context, domain string) *api.Lookup {
metrics.DomainsSourceCacheMiss.Inc()
return entry.Retrieve(ctx, c.client)
}
+
+// Status calls the client Status to check connectivity with the API
+func (c *Cache) Status() error {
+ return c.client.Status()
+}