aboutsummaryrefslogtreecommitdiff
path: root/external/evcli/http.go
diff options
context:
space:
mode:
authorJulien Dessaux2023-06-18 17:41:38 +0200
committerJulien Dessaux2023-06-18 17:43:53 +0200
commit6844355a928b60ffb1006e6b1d9f8af7b44647d5 (patch)
tree57355ad7bf98b870cf96ceec2a2eae64b94d3276 /external/evcli/http.go
parentImplemented project resource (diff)
downloadterraform-provider-eventline-6844355a928b60ffb1006e6b1d9f8af7b44647d5.tar.gz
terraform-provider-eventline-6844355a928b60ffb1006e6b1d9f8af7b44647d5.tar.bz2
terraform-provider-eventline-6844355a928b60ffb1006e6b1d9f8af7b44647d5.zip
Imported and modified evcli's api client code
Diffstat (limited to '')
-rw-r--r--external/evcli/http.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/external/evcli/http.go b/external/evcli/http.go
new file mode 100644
index 0000000..f4aae1c
--- /dev/null
+++ b/external/evcli/http.go
@@ -0,0 +1,14 @@
+package evcli
+
+import (
+ "net/http"
+ "time"
+)
+
+func NewHTTPClient() *http.Client {
+ c := &http.Client{
+ Timeout: 30 * time.Second,
+ }
+
+ return c
+}