From 7d43bd10807e998cf4f5619a042b979c1ce75710 Mon Sep 17 00:00:00 2001 From: bars92 Date: Tue, 13 Apr 2021 19:35:46 +0300 Subject: [PATCH] change package to demisto --- .circleci/config.yml | 4 +-- .jenkins/jobs/defaults.yml | 2 +- .travis.yml | 8 ++--- Makefile | 14 ++++---- README.md | 32 +++++++++---------- _examples/bulk/bulk.go | 4 +-- _examples/cloudfunction/function.go | 2 +- _examples/cloudfunction/function_test.go | 4 +-- _examples/cloudfunction/go.mod | 6 ++-- _examples/configuration.go | 2 +- _examples/customization.go | 2 +- _examples/encoding/benchmark_test.go | 4 +-- _examples/encoding/easyjson.go | 6 ++-- _examples/encoding/gjson.go | 2 +- _examples/encoding/go.mod | 6 ++-- _examples/encoding/jsonreader.go | 6 ++-- _examples/extension/main.go | 6 ++-- _examples/fasthttp/cmd/main.go | 4 +-- _examples/fasthttp/fasthttp_benchmark_test.go | 4 +-- _examples/fasthttp/go.mod | 6 ++-- _examples/instrumentation/apmelasticsearch.go | 2 +- _examples/instrumentation/go.mod | 6 ++-- _examples/instrumentation/opencensus.go | 2 +- _examples/logging/custom.go | 2 +- _examples/logging/default.go | 4 +-- _examples/logging/go.mod | 6 ++-- _examples/main.go | 4 +-- .../xkcdsearch/cmd/xkcd/commands/index.go | 4 +-- .../xkcdsearch/cmd/xkcd/commands/search.go | 4 +-- .../xkcdsearch/cmd/xkcd/commands/server.go | 4 +-- _examples/xkcdsearch/cmd/xkcd/main.go | 2 +- _examples/xkcdsearch/go.mod | 6 ++-- _examples/xkcdsearch/store.go | 4 +-- _examples/xkcdsearch/store_test.go | 4 +-- _examples/xkcdsearch/web/index.html | 2 +- doc.go | 4 +-- elasticsearch.go | 6 ++-- elasticsearch_benchmark_test.go | 4 +-- elasticsearch_example_test.go | 6 ++-- elasticsearch_integration_test.go | 6 ++-- elasticsearch_internal_test.go | 2 +- esapi/doc.go | 10 +++--- esapi/esapi.go | 2 +- esapi/esapi.response_example_test.go | 2 +- esapi/esapi_benchmark_test.go | 4 +-- esapi/esapi_integration_test.go | 4 +-- esapi/test/go.mod | 6 ++-- estransport/doc.go | 2 +- estransport/estransport.go | 2 +- estransport/estransport_benchmark_test.go | 2 +- .../estransport_integration_multinode_test.go | 2 +- estransport/estransport_integration_test.go | 4 +-- estransport/logger_benchmark_test.go | 2 +- esutil/json_reader_benchmark_test.go | 2 +- esutil/json_reader_integration_test.go | 6 ++-- internal/cmd/generate/commands/commands.go | 2 +- .../generate/commands/gensource/command.go | 4 +-- .../cmd/generate/commands/gensource/debug.go | 2 +- .../generate/commands/gensource/generator.go | 2 +- .../commands/gensource/generator_test.go | 2 +- .../cmd/generate/commands/gensource/model.go | 2 +- .../generate/commands/genstruct/command.go | 6 ++-- .../cmd/generate/commands/gentests/command.go | 4 +-- .../cmd/generate/commands/gentests/debug.go | 2 +- .../commands/gentests/gen_api_registry.go | 2 +- .../generate/commands/gentests/generator.go | 6 ++-- .../cmd/generate/commands/gentests/model.go | 2 +- internal/cmd/generate/go.mod | 6 ++-- internal/cmd/generate/main.go | 8 ++--- 69 files changed, 154 insertions(+), 154 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4aeaae9faf..7a594a9433 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 executors: golang: - working_directory: /tmp/github.com/elastic/go-elasticsearch + working_directory: /tmp/github.com/demisto/go-elasticsearch docker: - image: circleci/golang:1.11 @@ -113,7 +113,7 @@ jobs: name: Build the Package command: | go mod verify - go build -v github.com/elastic/go-elasticsearch/... + go build -v github.com/demisto/go-elasticsearch/... # ----------------------------------------------------------------------------------------------- # ----- LINT ------------------------------------------------------------------------------------ diff --git a/.jenkins/jobs/defaults.yml b/.jenkins/jobs/defaults.yml index b2bb8f1c01..06f7b67e4d 100644 --- a/.jenkins/jobs/defaults.yml +++ b/.jenkins/jobs/defaults.yml @@ -20,7 +20,7 @@ <commitId>, etc.) properties: - github: - url: https://github.com/elastic/go-elasticsearch/ + url: https://github.com/demisto/go-elasticsearch/ - inject: properties-content: HOME=$JENKINS_HOME concurrent: true diff --git a/.travis.yml b/.travis.yml index 550bd7cf65..329002e434 100644 --- a/.travis.yml +++ b/.travis.yml @@ -105,7 +105,7 @@ matrix: docker.elastic.co/elasticsearch/elasticsearch-oss:8.0.0-SNAPSHOT - docker run --network elasticsearch --rm appropriate/curl --max-time 120 --retry 120 --retry-delay 1 --retry-connrefused --show-error --silent http://es-integration-client:9200 script: - - gotestsum --format=short-verbose --junitfile=/tmp/integration-report.xml -- -race -cover -coverprofile=/tmp/integration-client.cov -tags='integration' -timeout=1h github.com/elastic/go-elasticsearch + - gotestsum --format=short-verbose --junitfile=/tmp/integration-report.xml -- -race -cover -coverprofile=/tmp/integration-client.cov -tags='integration' -timeout=1h github.com/demisto/go-elasticsearch after_script: - test -f /tmp/integration-client.cov && bash <(curl -s https://codecov.io/bash) -f /tmp/integration-client.cov @@ -149,14 +149,14 @@ matrix: - echo -en 'travis_fold:end:script.dl_es_src' # ------ Generate API registry ------------------------------------------------------------ - echo -e "\e[33;1mGenerate API registry\e[0m" && echo -en 'travis_fold:start:script.gen_api_reg\\r\n' - - cd ${TRAVIS_HOME}/gopath/src/github.com/elastic/go-elasticsearch/internal/cmd/generate && ELASTICSEARCH_BUILD_HASH=$(cat ../../../.elasticsearch_build_hash) PACKAGE_PATH=${TRAVIS_HOME}/gopath/src/github.com/elastic/go-elasticsearch/esapi go generate -v ./... + - cd ${TRAVIS_HOME}/gopath/src/github.com/demisto/go-elasticsearch/internal/cmd/generate && ELASTICSEARCH_BUILD_HASH=$(cat ../../../.elasticsearch_build_hash) PACKAGE_PATH=${TRAVIS_HOME}/gopath/src/github.com/demisto/go-elasticsearch/esapi go generate -v ./... - echo -en 'travis_fold:end:script.gen_api_reg' # ------ Generate Go test files ----------------------------------------------------------- - echo -e "\e[33;1mGenerate Go test files\e[0m" && echo -en 'travis_fold:start:script.gen_test_files\\r' - - cd ${TRAVIS_HOME}/gopath/src/github.com/elastic/go-elasticsearch/internal/cmd/generate && ELASTICSEARCH_BUILD_HASH=$(cat ../../../.elasticsearch_build_hash) go run main.go apitests --input '/tmp/elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/test/**/*.yml' --output=../../../esapi/test + - cd ${TRAVIS_HOME}/gopath/src/github.com/demisto/go-elasticsearch/internal/cmd/generate && ELASTICSEARCH_BUILD_HASH=$(cat ../../../.elasticsearch_build_hash) go run main.go apitests --input '/tmp/elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/test/**/*.yml' --output=../../../esapi/test - echo -en 'travis_fold:end:script.gen_test_files' # ------ Run tests ----------------------------------------------------------------------- - - cd ${TRAVIS_HOME}/gopath/src/github.com/elastic/go-elasticsearch/esapi/test && time gotestsum --format=short-verbose --junitfile=/tmp/integration-api-report.xml -- -coverpkg=github.com/elastic/go-elasticsearch/esapi -coverprofile=/tmp/integration-api.cov -tags='integration' -timeout=1h ./... + - cd ${TRAVIS_HOME}/gopath/src/github.com/demisto/go-elasticsearch/esapi/test && time gotestsum --format=short-verbose --junitfile=/tmp/integration-api-report.xml -- -coverpkg=github.com/demisto/go-elasticsearch/esapi -coverprofile=/tmp/integration-api.cov -tags='integration' -timeout=1h ./... after_script: - test -f /tmp/integration-api.cov && bash <(curl -s https://codecov.io/bash) -f /tmp/integration-api.cov diff --git a/Makefile b/Makefile index 6d09e6bfe4..175f684805 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ test-api: ## Run generated API integration tests ifdef race $(eval testapiargs += "-race") endif - $(eval testapiargs += "-cover" "-coverpkg=github.com/elastic/go-elasticsearch/v8/esapi" "-coverprofile=$(PWD)/tmp/integration-api.cov" "-tags='integration'" "-timeout=1h") + $(eval testapiargs += "-cover" "-coverpkg=github.com/demisto/go-elasticsearch/v8/esapi" "-coverprofile=$(PWD)/tmp/integration-api.cov" "-tags='integration'" "-timeout=1h") ifdef flavor else $(eval flavor='core') @@ -124,8 +124,8 @@ test-coverage: ## Generate test coverage report ##@ Development lint: ## Run lint on the package @echo "\033[2m→ Running lint...\033[0m" - go vet github.com/elastic/go-elasticsearch/... - go list github.com/elastic/go-elasticsearch/... | 'grep' -v internal | xargs golint -set_exit_status + go vet github.com/demisto/go-elasticsearch/... + go list github.com/demisto/go-elasticsearch/... | 'grep' -v internal | xargs golint -set_exit_status apidiff: ## Display API incompabilities @if ! command -v apidiff > /dev/null; then \ @@ -225,11 +225,11 @@ endif godoc: ## Display documentation for the package @echo "\033[2m→ Generating documentation...\033[0m" - @echo "open http://localhost:6060/pkg/github.com/elastic/go-elasticsearch/\n" + @echo "open http://localhost:6060/pkg/github.com/demisto/go-elasticsearch/\n" mkdir -p /tmp/tmpgoroot/doc - rm -rf /tmp/tmpgopath/src/github.com/elastic/go-elasticsearch - mkdir -p /tmp/tmpgopath/src/github.com/elastic/go-elasticsearch - tar -c --exclude='.git' --exclude='tmp' . | tar -x -C /tmp/tmpgopath/src/github.com/elastic/go-elasticsearch + rm -rf /tmp/tmpgopath/src/github.com/demisto/go-elasticsearch + mkdir -p /tmp/tmpgopath/src/github.com/demisto/go-elasticsearch + tar -c --exclude='.git' --exclude='tmp' . | tar -x -C /tmp/tmpgopath/src/github.com/demisto/go-elasticsearch GOROOT=/tmp/tmpgoroot/ GOPATH=/tmp/tmpgopath/ godoc -http=localhost:6060 -play cluster: ## Launch an Elasticsearch cluster with Docker diff --git a/README.md b/README.md index 0731efd178..b88964e012 100644 --- a/README.md +++ b/README.md @@ -2,30 +2,30 @@ The official Go client for [Elasticsearch](https://www.elastic.co/products/elasticsearch). -[![GoDoc](https://godoc.org/github.com/elastic/go-elasticsearch?status.svg)](http://godoc.org/github.com/elastic/go-elasticsearch) +[![GoDoc](https://godoc.org/github.com/demisto/go-elasticsearch?status.svg)](http://godoc.org/github.com/demisto/go-elasticsearch) [![Travis-CI](https://travis-ci.org/elastic/go-elasticsearch.svg?branch=master)](https://travis-ci.org/elastic/go-elasticsearch) -[![Go Report Card](https://goreportcard.com/badge/github.com/elastic/go-elasticsearch)](https://goreportcard.com/report/github.com/elastic/go-elasticsearch) +[![Go Report Card](https://goreportcard.com/badge/github.com/demisto/go-elasticsearch)](https://goreportcard.com/report/github.com/demisto/go-elasticsearch) [![codecov.io](https://codecov.io/github/elastic/go-elasticsearch/coverage.svg?branch=master)](https://codecov.io/gh/elastic/go-elasticsearch?branch=master) ## Compatibility -The client major versions correspond to the compatible Elasticsearch major versions: to connect to Elasticsearch `7.x`, use a [`7.x`](https://github.com/elastic/go-elasticsearch/tree/7.x) version of the client, to connect to Elasticsearch `6.x`, use a [`6.x`](https://github.com/elastic/go-elasticsearch/tree/6.x) version of the client. +The client major versions correspond to the compatible Elasticsearch major versions: to connect to Elasticsearch `7.x`, use a [`7.x`](https://github.com/demisto/go-elasticsearch/tree/7.x) version of the client, to connect to Elasticsearch `6.x`, use a [`6.x`](https://github.com/demisto/go-elasticsearch/tree/6.x) version of the client. When using Go modules, include the version in the import path, and specify either an explicit version or a branch: - require github.com/elastic/go-elasticsearch/v7 7.x - require github.com/elastic/go-elasticsearch/v7 7.0.0 + require github.com/demisto/go-elasticsearch/v7 7.x + require github.com/demisto/go-elasticsearch/v7 7.0.0 It's possible to use multiple versions of the client in a single project: // go.mod - github.com/elastic/go-elasticsearch/v6 6.x - github.com/elastic/go-elasticsearch/v7 7.x + github.com/demisto/go-elasticsearch/v6 6.x + github.com/demisto/go-elasticsearch/v7 7.x // main.go import ( - elasticsearch6 "github.com/elastic/go-elasticsearch/v6" - elasticsearch7 "github.com/elastic/go-elasticsearch/v7" + elasticsearch6 "github.com/demisto/go-elasticsearch/v6" + elasticsearch7 "github.com/demisto/go-elasticsearch/v7" ) // ... es6, _ := elasticsearch6.NewDefaultClient() @@ -39,11 +39,11 @@ The `master` branch of the client is compatible with the current `master` branch Add the package to your `go.mod` file: - require github.com/elastic/go-elasticsearch/v8 master + require github.com/demisto/go-elasticsearch/v8 master Or, clone the repository: - git clone --branch master https://github.com/elastic/go-elasticsearch.git $GOPATH/src/github.com/elastic/go-elasticsearch + git clone --branch master https://github.com/demisto/go-elasticsearch.git $GOPATH/src/github.com/demisto/go-elasticsearch A complete example: @@ -53,7 +53,7 @@ mkdir my-elasticsearch-app && cd my-elasticsearch-app cat > go.mod <<-END module my-elasticsearch-app - require github.com/elastic/go-elasticsearch/v8 master + require github.com/demisto/go-elasticsearch/v8 master END cat > main.go <<-END @@ -62,7 +62,7 @@ cat > main.go <<-END import ( "log" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" ) func main() { @@ -160,8 +160,8 @@ import ( "strings" "sync" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" ) func main() { @@ -320,7 +320,7 @@ func main() { ``` As you see in the example above, the `esapi` package allows to call the Elasticsearch APIs in two distinct ways: either by creating a struct, such as `IndexRequest`, and calling its `Do()` method by passing it a context and the client, or by calling the `Search()` function on the client directly, using the option functions such as `WithIndex()`. See more information and examples in the -[package documentation](https://godoc.org/github.com/elastic/go-elasticsearch/esapi). +[package documentation](https://godoc.org/github.com/demisto/go-elasticsearch/esapi). The `estransport` package handles the transfer of data to and from Elasticsearch. At the moment, the implementation is really minimal: it only round-robins across the configured cluster endpoints. In future, more features — retrying failed requests, ignoring certain status codes, auto-discovering nodes in the cluster, and so on — will be added. diff --git a/_examples/bulk/bulk.go b/_examples/bulk/bulk.go index da8c0fa611..03e86326c4 100644 --- a/_examples/bulk/bulk.go +++ b/_examples/bulk/bulk.go @@ -30,8 +30,8 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" ) type Article struct { diff --git a/_examples/cloudfunction/function.go b/_examples/cloudfunction/function.go index 4f8ddc9d04..7c10262548 100644 --- a/_examples/cloudfunction/function.go +++ b/_examples/cloudfunction/function.go @@ -26,7 +26,7 @@ import ( "log" "net/http" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" ) // ES holds a reference to the Elasticsearch client diff --git a/_examples/cloudfunction/function_test.go b/_examples/cloudfunction/function_test.go index a8b920defe..97d71a6fbc 100644 --- a/_examples/cloudfunction/function_test.go +++ b/_examples/cloudfunction/function_test.go @@ -12,9 +12,9 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/clusterstatus" + "github.com/demisto/go-elasticsearch/v8/_examples/clusterstatus" ) // Mock transport replaces the HTTP transport for tests diff --git a/_examples/cloudfunction/go.mod b/_examples/cloudfunction/go.mod index 8157990e88..846d9ce810 100644 --- a/_examples/cloudfunction/go.mod +++ b/_examples/cloudfunction/go.mod @@ -1,7 +1,7 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/clusterstatus +module github.com/demisto/go-elasticsearch/v8/_examples/clusterstatus go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/demisto/go-elasticsearch/v8 => ../.. -require github.com/elastic/go-elasticsearch/v8 master +require github.com/demisto/go-elasticsearch/v8 master diff --git a/_examples/configuration.go b/_examples/configuration.go index fc82519706..4eec75c174 100644 --- a/_examples/configuration.go +++ b/_examples/configuration.go @@ -13,7 +13,7 @@ import ( "net/http" "time" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" ) func main() { diff --git a/_examples/customization.go b/_examples/customization.go index bfcea91340..f645f1d02c 100644 --- a/_examples/customization.go +++ b/_examples/customization.go @@ -15,7 +15,7 @@ import ( "sync" "sync/atomic" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" ) // This example demonstrates how to provide a custom transport implementation to the client diff --git a/_examples/encoding/benchmark_test.go b/_examples/encoding/benchmark_test.go index 9ec8ea8f20..2154571a26 100644 --- a/_examples/encoding/benchmark_test.go +++ b/_examples/encoding/benchmark_test.go @@ -16,8 +16,8 @@ import ( "github.com/mailru/easyjson" "github.com/tidwall/gjson" - "github.com/elastic/go-elasticsearch/v8/_examples/encoding/model" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/demisto/go-elasticsearch/v8/_examples/encoding/model" + "github.com/demisto/go-elasticsearch/v8/esutil" ) func BenchmarkEncode(b *testing.B) { diff --git a/_examples/encoding/easyjson.go b/_examples/encoding/easyjson.go index afa35103e3..01c29beb52 100644 --- a/_examples/encoding/easyjson.go +++ b/_examples/encoding/easyjson.go @@ -13,12 +13,12 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" "github.com/fatih/color" "github.com/mailru/easyjson" - "github.com/elastic/go-elasticsearch/v8/_examples/encoding/model" + "github.com/demisto/go-elasticsearch/v8/_examples/encoding/model" ) var ( diff --git a/_examples/encoding/gjson.go b/_examples/encoding/gjson.go index 95dfd15af0..21733077bc 100644 --- a/_examples/encoding/gjson.go +++ b/_examples/encoding/gjson.go @@ -11,7 +11,7 @@ import ( "log" "strings" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" "github.com/fatih/color" "github.com/tidwall/gjson" ) diff --git a/_examples/encoding/go.mod b/_examples/encoding/go.mod index eab22a23a3..5d927e1639 100644 --- a/_examples/encoding/go.mod +++ b/_examples/encoding/go.mod @@ -1,11 +1,11 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/encoding +module github.com/demisto/go-elasticsearch/v8/_examples/encoding go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/demisto/go-elasticsearch/v8 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 master + github.com/demisto/go-elasticsearch/v8 master github.com/fatih/color v1.7.0 diff --git a/_examples/encoding/jsonreader.go b/_examples/encoding/jsonreader.go index e996c6af49..60532710bd 100644 --- a/_examples/encoding/jsonreader.go +++ b/_examples/encoding/jsonreader.go @@ -7,9 +7,9 @@ package main import ( "log" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8/esutil" ) func init() { diff --git a/_examples/extension/main.go b/_examples/extension/main.go index c907e3d8a0..0566303aff 100644 --- a/_examples/extension/main.go +++ b/_examples/extension/main.go @@ -17,9 +17,9 @@ import ( "net/url" "os" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8/estransport" ) const port = "9209" diff --git a/_examples/fasthttp/cmd/main.go b/_examples/fasthttp/cmd/main.go index 8256810f79..df8bee5e18 100644 --- a/_examples/fasthttp/cmd/main.go +++ b/_examples/fasthttp/cmd/main.go @@ -11,8 +11,8 @@ import ( "strconv" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/fasthttp" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/_examples/fasthttp" ) var ( diff --git a/_examples/fasthttp/fasthttp_benchmark_test.go b/_examples/fasthttp/fasthttp_benchmark_test.go index 479ad0ad60..68a9dd8195 100644 --- a/_examples/fasthttp/fasthttp_benchmark_test.go +++ b/_examples/fasthttp/fasthttp_benchmark_test.go @@ -7,8 +7,8 @@ package fasthttp_test import ( "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/fasthttp" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/_examples/fasthttp" ) func BenchmarkHTTPClient(b *testing.B) { diff --git a/_examples/fasthttp/go.mod b/_examples/fasthttp/go.mod index e3ffd82879..2af96b5fb5 100644 --- a/_examples/fasthttp/go.mod +++ b/_examples/fasthttp/go.mod @@ -1,10 +1,10 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/fasthttp +module github.com/demisto/go-elasticsearch/v8/_examples/fasthttp go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/demisto/go-elasticsearch/v8 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 master + github.com/demisto/go-elasticsearch/v8 master github.com/valyala/fasthttp v1.1.0 ) diff --git a/_examples/instrumentation/apmelasticsearch.go b/_examples/instrumentation/apmelasticsearch.go index e73ede34d2..3c60fd2e69 100644 --- a/_examples/instrumentation/apmelasticsearch.go +++ b/_examples/instrumentation/apmelasticsearch.go @@ -22,7 +22,7 @@ import ( "github.com/fatih/color" "golang.org/x/crypto/ssh/terminal" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" "go.elastic.co/apm" "go.elastic.co/apm/module/apmelasticsearch" diff --git a/_examples/instrumentation/go.mod b/_examples/instrumentation/go.mod index d3855e2565..3e7c612fc1 100644 --- a/_examples/instrumentation/go.mod +++ b/_examples/instrumentation/go.mod @@ -1,11 +1,11 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/instrumentation/opencensus +module github.com/demisto/go-elasticsearch/v8/_examples/instrumentation/opencensus go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/demisto/go-elasticsearch/v8 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 v8.0.0-20191002063538-b491ce54d752 + github.com/demisto/go-elasticsearch/v8 v8.0.0-20191002063538-b491ce54d752 github.com/fatih/color v1.7.0 github.com/mattn/go-colorable v0.1.0 // indirect diff --git a/_examples/instrumentation/opencensus.go b/_examples/instrumentation/opencensus.go index eebdd5c935..4875181018 100644 --- a/_examples/instrumentation/opencensus.go +++ b/_examples/instrumentation/opencensus.go @@ -18,7 +18,7 @@ import ( "github.com/fatih/color" "golang.org/x/crypto/ssh/terminal" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" "go.opencensus.io/plugin/ochttp" "go.opencensus.io/stats/view" diff --git a/_examples/logging/custom.go b/_examples/logging/custom.go index 1386b6a938..4eda9e76e5 100644 --- a/_examples/logging/custom.go +++ b/_examples/logging/custom.go @@ -19,7 +19,7 @@ import ( "github.com/rs/zerolog" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" ) // CustomLogger implements the estransport.Logger interface. diff --git a/_examples/logging/default.go b/_examples/logging/default.go index 799cec9355..5fe7cf72be 100644 --- a/_examples/logging/default.go +++ b/_examples/logging/default.go @@ -18,8 +18,8 @@ import ( "os" "strings" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/estransport" ) func main() { diff --git a/_examples/logging/go.mod b/_examples/logging/go.mod index 27c609e147..235faca94f 100644 --- a/_examples/logging/go.mod +++ b/_examples/logging/go.mod @@ -1,11 +1,11 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/logging +module github.com/demisto/go-elasticsearch/v8/_examples/logging go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/demisto/go-elasticsearch/v8 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 master + github.com/demisto/go-elasticsearch/v8 master github.com/rs/zerolog v1.11.0 ) diff --git a/_examples/main.go b/_examples/main.go index 02e2ed24b5..1944375c0d 100644 --- a/_examples/main.go +++ b/_examples/main.go @@ -20,8 +20,8 @@ import ( "strings" "sync" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" ) func main() { diff --git a/_examples/xkcdsearch/cmd/xkcd/commands/index.go b/_examples/xkcdsearch/cmd/xkcd/commands/index.go index 88a13e18c6..d1231e7ca3 100644 --- a/_examples/xkcdsearch/cmd/xkcd/commands/index.go +++ b/_examples/xkcdsearch/cmd/xkcd/commands/index.go @@ -18,9 +18,9 @@ import ( "github.com/rs/zerolog" "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/demisto/go-elasticsearch/v8/_examples/xkcdsearch" ) var ( diff --git a/_examples/xkcdsearch/cmd/xkcd/commands/search.go b/_examples/xkcdsearch/cmd/xkcd/commands/search.go index ebf46a08da..cdd841a6b9 100644 --- a/_examples/xkcdsearch/cmd/xkcd/commands/search.go +++ b/_examples/xkcdsearch/cmd/xkcd/commands/search.go @@ -13,9 +13,9 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/demisto/go-elasticsearch/v8/_examples/xkcdsearch" ) func init() { diff --git a/_examples/xkcdsearch/cmd/xkcd/commands/server.go b/_examples/xkcdsearch/cmd/xkcd/commands/server.go index 3718dfb98e..eae5df37bd 100644 --- a/_examples/xkcdsearch/cmd/xkcd/commands/server.go +++ b/_examples/xkcdsearch/cmd/xkcd/commands/server.go @@ -11,9 +11,9 @@ import ( "github.com/rs/zerolog" "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/demisto/go-elasticsearch/v8/_examples/xkcdsearch" ) var ( diff --git a/_examples/xkcdsearch/cmd/xkcd/main.go b/_examples/xkcdsearch/cmd/xkcd/main.go index 19bbc4e82c..8b433b7ba4 100644 --- a/_examples/xkcdsearch/cmd/xkcd/main.go +++ b/_examples/xkcdsearch/cmd/xkcd/main.go @@ -4,7 +4,7 @@ package main -import "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch/cmd/xkcd/commands" +import "github.com/demisto/go-elasticsearch/v8/_examples/xkcdsearch/cmd/xkcd/commands" func main() { commands.Execute() diff --git a/_examples/xkcdsearch/go.mod b/_examples/xkcdsearch/go.mod index 5012524b0f..ce3e667325 100644 --- a/_examples/xkcdsearch/go.mod +++ b/_examples/xkcdsearch/go.mod @@ -1,11 +1,11 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch +module github.com/demisto/go-elasticsearch/v8/_examples/xkcdsearch go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/demisto/go-elasticsearch/v8 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 master + github.com/demisto/go-elasticsearch/v8 master github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/rs/zerolog v1.11.0 github.com/spf13/cobra v0.0.3 diff --git a/_examples/xkcdsearch/store.go b/_examples/xkcdsearch/store.go index 645c3f5768..9f0ede407a 100644 --- a/_examples/xkcdsearch/store.go +++ b/_examples/xkcdsearch/store.go @@ -12,8 +12,8 @@ import ( "io" "strings" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" ) // SearchResults wraps the Elasticsearch search response. diff --git a/_examples/xkcdsearch/store_test.go b/_examples/xkcdsearch/store_test.go index eab703a960..e4e7e52d44 100644 --- a/_examples/xkcdsearch/store_test.go +++ b/_examples/xkcdsearch/store_test.go @@ -15,9 +15,9 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/demisto/go-elasticsearch/v8/_examples/xkcdsearch" ) var ( diff --git a/_examples/xkcdsearch/web/index.html b/_examples/xkcdsearch/web/index.html index 082f18fe1a..4634e1ab09 100644 --- a/_examples/xkcdsearch/web/index.html +++ b/_examples/xkcdsearch/web/index.html @@ -43,7 +43,7 @@

[{{ state.error.status }}] {{ state.error.statusText }}

- + diff --git a/doc.go b/doc.go index 853036c026..a035dbdf94 100644 --- a/doc.go +++ b/doc.go @@ -42,8 +42,8 @@ Call the Elasticsearch APIs by invoking the corresponding methods on the client: log.Println(res) -See the github.com/elastic/go-elasticsearch/esapi package for more information about using the API. +See the github.com/demisto/go-elasticsearch/esapi package for more information about using the API. -See the github.com/elastic/go-elasticsearch/estransport package for more information about configuring the transport. +See the github.com/demisto/go-elasticsearch/estransport package for more information about configuring the transport. */ package elasticsearch diff --git a/elasticsearch.go b/elasticsearch.go index d7a8b8cebf..5edc2f856d 100644 --- a/elasticsearch.go +++ b/elasticsearch.go @@ -14,9 +14,9 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/estransport" - "github.com/elastic/go-elasticsearch/v8/internal/version" + "github.com/demisto/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8/internal/version" ) const ( diff --git a/elasticsearch_benchmark_test.go b/elasticsearch_benchmark_test.go index 680bf0f0be..da66e26caa 100644 --- a/elasticsearch_benchmark_test.go +++ b/elasticsearch_benchmark_test.go @@ -14,8 +14,8 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" ) var defaultResponse = http.Response{ diff --git a/elasticsearch_example_test.go b/elasticsearch_example_test.go index eca415948a..efb399fc2c 100644 --- a/elasticsearch_example_test.go +++ b/elasticsearch_example_test.go @@ -14,8 +14,8 @@ import ( "os" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/estransport" ) func init() { @@ -59,7 +59,7 @@ func ExampleNewClient() { } func ExampleNewClient_logger() { - // import "github.com/elastic/go-elasticsearch/v8/estransport" + // import "github.com/demisto/go-elasticsearch/v8/estransport" // Use one of the bundled loggers: // diff --git a/elasticsearch_integration_test.go b/elasticsearch_integration_test.go index 61e7fde78d..9ece454ace 100644 --- a/elasticsearch_integration_test.go +++ b/elasticsearch_integration_test.go @@ -20,9 +20,9 @@ import ( "testing" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8/estransport" ) func TestClientTransport(t *testing.T) { diff --git a/elasticsearch_internal_test.go b/elasticsearch_internal_test.go index a8c013678c..f4e876147b 100644 --- a/elasticsearch_internal_test.go +++ b/elasticsearch_internal_test.go @@ -15,7 +15,7 @@ import ( "regexp" "testing" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8/estransport" ) func TestClientConfiguration(t *testing.T) { diff --git a/esapi/doc.go b/esapi/doc.go index 9ec8084777..83f63effbb 100644 --- a/esapi/doc.go +++ b/esapi/doc.go @@ -2,7 +2,7 @@ Package esapi provides the Go API for Elasticsearch. It is automatically included in the client provided by the -github.com/elastic/go-elasticsearch package: +github.com/demisto/go-elasticsearch package: es, _ := elasticsearch.NewDefaultClient() res, _ := es.Info() @@ -56,11 +56,11 @@ It has a minor overhead compared to using a struct directly; refer to the esapi_benchmark_test.go suite for concrete numbers. See the documentation for each API function or struct at -https://godoc.org/github.com/elastic/go-elasticsearch, +https://godoc.org/github.com/demisto/go-elasticsearch, or locally by: - go doc github.com/elastic/go-elasticsearch/v8/esapi Index - go doc github.com/elastic/go-elasticsearch/v8/esapi IndexRequest + go doc github.com/demisto/go-elasticsearch/v8/esapi Index + go doc github.com/demisto/go-elasticsearch/v8/esapi IndexRequest Response @@ -85,7 +85,7 @@ about the API endpoints and parameters. The Go API is generated from the Elasticsearch JSON specification at https://github.com/elastic/elasticsearch/tree/master/rest-api-spec/src/main/resources/rest-api-spec/api by the internal package available at -https://github.com/elastic/go-elasticsearch/tree/master/internal/cmd/generate/commands/gensource. +https://github.com/demisto/go-elasticsearch/tree/master/internal/cmd/generate/commands/gensource. The API is tested by integration tests common to all Elasticsearch official clients, generated from the source at https://github.com/elastic/elasticsearch/tree/master/rest-api-spec/src/main/resources/rest-api-spec/test. diff --git a/esapi/esapi.go b/esapi/esapi.go index cc79285886..92838b1b35 100644 --- a/esapi/esapi.go +++ b/esapi/esapi.go @@ -9,7 +9,7 @@ import ( "strconv" "time" - "github.com/elastic/go-elasticsearch/v8/internal/version" + "github.com/demisto/go-elasticsearch/v8/internal/version" ) // Version returns the package version as a string. diff --git a/esapi/esapi.response_example_test.go b/esapi/esapi.response_example_test.go index 953682036e..7ba120ddfa 100644 --- a/esapi/esapi.response_example_test.go +++ b/esapi/esapi.response_example_test.go @@ -7,7 +7,7 @@ package esapi_test import ( "log" - "github.com/elastic/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8" ) func ExampleResponse_IsError() { diff --git a/esapi/esapi_benchmark_test.go b/esapi/esapi_benchmark_test.go index 6b006216e1..a079294818 100644 --- a/esapi/esapi_benchmark_test.go +++ b/esapi/esapi_benchmark_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" ) // TODO(karmi): Refactor into a shared mock/testing package diff --git a/esapi/esapi_integration_test.go b/esapi/esapi_integration_test.go index a6b7530b05..86af40317b 100644 --- a/esapi/esapi_integration_test.go +++ b/esapi/esapi_integration_test.go @@ -14,8 +14,8 @@ import ( "testing" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" ) func TestAPI(t *testing.T) { diff --git a/esapi/test/go.mod b/esapi/test/go.mod index 6f0b667e05..2bb2ea7c98 100644 --- a/esapi/test/go.mod +++ b/esapi/test/go.mod @@ -1,11 +1,11 @@ -module github.com/elastic/go-elasticsearch/v8/esapi/test +module github.com/demisto/go-elasticsearch/v8/esapi/test go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../../ +replace github.com/demisto/go-elasticsearch/v8 => ../../ require ( - github.com/elastic/go-elasticsearch/v8 master + github.com/demisto/go-elasticsearch/v8 master gopkg.in/yaml.v2 v2.2.2 ) diff --git a/estransport/doc.go b/estransport/doc.go index e65e34284f..7eabcba816 100644 --- a/estransport/doc.go +++ b/estransport/doc.go @@ -1,7 +1,7 @@ /* Package estransport provides the transport layer for the Elasticsearch client. -It is automatically included in the client provided by the github.com/elastic/go-elasticsearch package +It is automatically included in the client provided by the github.com/demisto/go-elasticsearch package and is not intended for direct use: to configure the client, use the elasticsearch.Config struct. The default HTTP transport of the client is http.Transport; use the Transport option to customize it; diff --git a/estransport/estransport.go b/estransport/estransport.go index da8315a147..0094e8dd4b 100644 --- a/estransport/estransport.go +++ b/estransport/estransport.go @@ -17,7 +17,7 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8/internal/version" + "github.com/demisto/go-elasticsearch/v8/internal/version" ) // Version returns the package version as a string. diff --git a/estransport/estransport_benchmark_test.go b/estransport/estransport_benchmark_test.go index 59a98b52f8..4a1cc8bcfb 100644 --- a/estransport/estransport_benchmark_test.go +++ b/estransport/estransport_benchmark_test.go @@ -13,7 +13,7 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8/estransport" ) var defaultResponse = http.Response{ diff --git a/estransport/estransport_integration_multinode_test.go b/estransport/estransport_integration_multinode_test.go index dda9e136f2..013b05a60a 100644 --- a/estransport/estransport_integration_multinode_test.go +++ b/estransport/estransport_integration_multinode_test.go @@ -13,7 +13,7 @@ import ( "net/url" "testing" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8/estransport" ) var ( diff --git a/estransport/estransport_integration_test.go b/estransport/estransport_integration_test.go index 77c70883f0..d8a9b690ba 100644 --- a/estransport/estransport_integration_test.go +++ b/estransport/estransport_integration_test.go @@ -17,8 +17,8 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8/estransport" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/demisto/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8/esutil" ) var ( diff --git a/estransport/logger_benchmark_test.go b/estransport/logger_benchmark_test.go index c107ea28c6..48a009637c 100644 --- a/estransport/logger_benchmark_test.go +++ b/estransport/logger_benchmark_test.go @@ -13,7 +13,7 @@ import ( "net/url" "testing" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8/estransport" ) func BenchmarkTransportLogger(b *testing.B) { diff --git a/esutil/json_reader_benchmark_test.go b/esutil/json_reader_benchmark_test.go index 9780c10b6c..f02964e89e 100644 --- a/esutil/json_reader_benchmark_test.go +++ b/esutil/json_reader_benchmark_test.go @@ -15,7 +15,7 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/demisto/go-elasticsearch/v8/esutil" ) var _ = fmt.Print diff --git a/esutil/json_reader_integration_test.go b/esutil/json_reader_integration_test.go index 0a080191e1..e3af92fa46 100644 --- a/esutil/json_reader_integration_test.go +++ b/esutil/json_reader_integration_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8/esutil" ) func TestJSONReaderIntegration(t *testing.T) { diff --git a/internal/cmd/generate/commands/commands.go b/internal/cmd/generate/commands/commands.go index 27195f739d..408959fecd 100644 --- a/internal/cmd/generate/commands/commands.go +++ b/internal/cmd/generate/commands/commands.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) var rootCmd = &cobra.Command{ diff --git a/internal/cmd/generate/commands/gensource/command.go b/internal/cmd/generate/commands/gensource/command.go index 441c0c19c2..abac3d67b0 100644 --- a/internal/cmd/generate/commands/gensource/command.go +++ b/internal/cmd/generate/commands/gensource/command.go @@ -15,8 +15,8 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) var ( diff --git a/internal/cmd/generate/commands/gensource/debug.go b/internal/cmd/generate/commands/gensource/debug.go index 4741212d27..f10a002087 100644 --- a/internal/cmd/generate/commands/gensource/debug.go +++ b/internal/cmd/generate/commands/gensource/debug.go @@ -10,7 +10,7 @@ import ( "strings" "text/tabwriter" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) // DebugInfo returns information about the endpoint as a string. diff --git a/internal/cmd/generate/commands/gensource/generator.go b/internal/cmd/generate/commands/gensource/generator.go index bbd2405517..56d7f5952d 100644 --- a/internal/cmd/generate/commands/gensource/generator.go +++ b/internal/cmd/generate/commands/gensource/generator.go @@ -13,7 +13,7 @@ import ( "golang.org/x/tools/imports" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) // Generator represents the "gensource" generator. diff --git a/internal/cmd/generate/commands/gensource/generator_test.go b/internal/cmd/generate/commands/gensource/generator_test.go index 886131541c..b16458186e 100644 --- a/internal/cmd/generate/commands/gensource/generator_test.go +++ b/internal/cmd/generate/commands/gensource/generator_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands/gensource" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands/gensource" ) func TestGenerator(t *testing.T) { diff --git a/internal/cmd/generate/commands/gensource/model.go b/internal/cmd/generate/commands/gensource/model.go index 143a647e30..9dbbbbf0e5 100644 --- a/internal/cmd/generate/commands/gensource/model.go +++ b/internal/cmd/generate/commands/gensource/model.go @@ -15,7 +15,7 @@ import ( "gopkg.in/yaml.v2" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) var ( diff --git a/internal/cmd/generate/commands/genstruct/command.go b/internal/cmd/generate/commands/genstruct/command.go index 2002c8b720..07abbc1b39 100644 --- a/internal/cmd/generate/commands/genstruct/command.go +++ b/internal/cmd/generate/commands/genstruct/command.go @@ -18,8 +18,8 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) var ( @@ -43,7 +43,7 @@ func init() { pkgNames = strings.Split(pkgNamesEnv, ",") } else { pkgNames = []string{ - "github.com/elastic/go-elasticsearch/v8/esapi", + "github.com/demisto/go-elasticsearch/v8/esapi", } } diff --git a/internal/cmd/generate/commands/gentests/command.go b/internal/cmd/generate/commands/gentests/command.go index 4f34d854ff..c2ea6c4c49 100644 --- a/internal/cmd/generate/commands/gentests/command.go +++ b/internal/cmd/generate/commands/gentests/command.go @@ -19,8 +19,8 @@ import ( "github.com/spf13/cobra" yaml "gopkg.in/yaml.v2" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) var ( diff --git a/internal/cmd/generate/commands/gentests/debug.go b/internal/cmd/generate/commands/gentests/debug.go index af3c88e116..a5837837bf 100644 --- a/internal/cmd/generate/commands/gentests/debug.go +++ b/internal/cmd/generate/commands/gentests/debug.go @@ -8,7 +8,7 @@ import ( "fmt" "strings" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) // DebugInfo returns information about the endpoint as a string. diff --git a/internal/cmd/generate/commands/gentests/gen_api_registry.go b/internal/cmd/generate/commands/gentests/gen_api_registry.go index da75dc538c..bfb7998a05 100644 --- a/internal/cmd/generate/commands/gentests/gen_api_registry.go +++ b/internal/cmd/generate/commands/gentests/gen_api_registry.go @@ -29,7 +29,7 @@ func init() { pkgNames = strings.Split(pkgNamesEnv, ",") } else { pkgNames = []string{ - "github.com/elastic/go-elasticsearch/v8/esapi", + "github.com/demisto/go-elasticsearch/v8/esapi", } } diff --git a/internal/cmd/generate/commands/gentests/generator.go b/internal/cmd/generate/commands/gentests/generator.go index 6920b3230d..5ff561f1b3 100644 --- a/internal/cmd/generate/commands/gentests/generator.go +++ b/internal/cmd/generate/commands/gentests/generator.go @@ -207,9 +207,9 @@ import ( "testing" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/estransport" + "github.com/demisto/go-elasticsearch/v8" + "github.com/demisto/go-elasticsearch/v8/esapi" + "github.com/demisto/go-elasticsearch/v8/estransport" ) var ( diff --git a/internal/cmd/generate/commands/gentests/model.go b/internal/cmd/generate/commands/gentests/model.go index b76779f435..4d70d5d96e 100644 --- a/internal/cmd/generate/commands/gentests/model.go +++ b/internal/cmd/generate/commands/gentests/model.go @@ -13,7 +13,7 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/utils" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/utils" ) var reFilename = regexp.MustCompile(`\d*_?(.+)\.ya?ml`) diff --git a/internal/cmd/generate/go.mod b/internal/cmd/generate/go.mod index b7355c60db..9c862d25a9 100644 --- a/internal/cmd/generate/go.mod +++ b/internal/cmd/generate/go.mod @@ -1,12 +1,12 @@ -module github.com/elastic/go-elasticsearch/v8/internal/cmd/generate +module github.com/demisto/go-elasticsearch/v8/internal/cmd/generate go 1.11 -replace github.com/elastic/go-elasticsearch/v8 => ../../../ +replace github.com/demisto/go-elasticsearch/v8 => ../../../ require ( github.com/alecthomas/chroma v0.6.3 - github.com/elastic/go-elasticsearch/v8 master + github.com/demisto/go-elasticsearch/v8 master github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/spf13/cobra v0.0.3 github.com/spf13/pflag v1.0.3 // indirect diff --git a/internal/cmd/generate/main.go b/internal/cmd/generate/main.go index 465853ed36..c3798bda29 100644 --- a/internal/cmd/generate/main.go +++ b/internal/cmd/generate/main.go @@ -5,10 +5,10 @@ package main import ( - "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands" - _ "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands/gensource" - _ "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands/genstruct" - _ "github.com/elastic/go-elasticsearch/v8/internal/cmd/generate/commands/gentests" + "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands" + _ "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands/gensource" + _ "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands/genstruct" + _ "github.com/demisto/go-elasticsearch/v8/internal/cmd/generate/commands/gentests" ) func main() {