diff options
Diffstat (limited to 'internal/source/gitlab/client/client.go')
-rw-r--r-- | internal/source/gitlab/client/client.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/internal/source/gitlab/client/client.go b/internal/source/gitlab/client/client.go index 31071fa8..30185143 100644 --- a/internal/source/gitlab/client/client.go +++ b/internal/source/gitlab/client/client.go @@ -128,22 +128,6 @@ func (gc *Client) GetLookup(ctx context.Context, host string) api.Lookup { return lookup } -// Status checks that Pages can reach the rails internal Pages API -// for source domain configuration. -// Timeout is the same as -gitlab-client-http-timeout -func (gc *Client) Status() error { - res, err := gc.get(context.Background(), "/api/v4/internal/pages/status", url.Values{}) - if err != nil { - return fmt.Errorf("%s: %v", ConnectionErrorMsg, err) - } - - if res != nil && res.Body != nil { - res.Body.Close() - } - - return nil -} - func (gc *Client) get(ctx context.Context, path string, params url.Values) (*http.Response, error) { endpoint, err := gc.endpoint(path, params) if err != nil { |