diff --git a/go.mod b/go.mod index efac173..b5d4cbf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ribbybibby/ssl_exporter +module github.com/ribbybibby/ssl_exporter/v2 require ( github.com/bmatcuk/doublestar/v2 v2.0.4 diff --git a/prober/file.go b/prober/file.go index 784e8cb..347e775 100644 --- a/prober/file.go +++ b/prober/file.go @@ -7,7 +7,7 @@ import ( "github.com/bmatcuk/doublestar/v2" "github.com/go-kit/log" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" + "github.com/ribbybibby/ssl_exporter/v2/config" ) // ProbeFile collects certificate metrics from local files diff --git a/prober/file_test.go b/prober/file_test.go index 64d96bd..a05fa7f 100644 --- a/prober/file_test.go +++ b/prober/file_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "github.com/ribbybibby/ssl_exporter/config" - "github.com/ribbybibby/ssl_exporter/test" + "github.com/ribbybibby/ssl_exporter/v2/config" + "github.com/ribbybibby/ssl_exporter/v2/test" "github.com/prometheus/client_golang/prometheus" ) diff --git a/prober/https.go b/prober/https.go index a3f4b22..f5e0bac 100644 --- a/prober/https.go +++ b/prober/https.go @@ -12,7 +12,7 @@ import ( "github.com/go-kit/log" "github.com/go-kit/log/level" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" + "github.com/ribbybibby/ssl_exporter/v2/config" ) // ProbeHTTPS performs a https probe diff --git a/prober/https_test.go b/prober/https_test.go index a10378b..28bcaf2 100644 --- a/prober/https_test.go +++ b/prober/https_test.go @@ -17,8 +17,8 @@ import ( "time" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" - "github.com/ribbybibby/ssl_exporter/test" + "github.com/ribbybibby/ssl_exporter/v2/config" + "github.com/ribbybibby/ssl_exporter/v2/test" "golang.org/x/crypto/ocsp" ) diff --git a/prober/kubeconfig.go b/prober/kubeconfig.go index 3bb3338..fc52895 100644 --- a/prober/kubeconfig.go +++ b/prober/kubeconfig.go @@ -9,7 +9,7 @@ import ( "github.com/go-kit/log" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" + "github.com/ribbybibby/ssl_exporter/v2/config" "gopkg.in/yaml.v3" ) diff --git a/prober/kubeconfig_test.go b/prober/kubeconfig_test.go index dcd32c5..3a5781b 100644 --- a/prober/kubeconfig_test.go +++ b/prober/kubeconfig_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/ribbybibby/ssl_exporter/config" - "github.com/ribbybibby/ssl_exporter/test" + "github.com/ribbybibby/ssl_exporter/v2/config" + "github.com/ribbybibby/ssl_exporter/v2/test" "github.com/prometheus/client_golang/prometheus" "gopkg.in/yaml.v3" diff --git a/prober/kubernetes.go b/prober/kubernetes.go index d8fe666..bda52ca 100644 --- a/prober/kubernetes.go +++ b/prober/kubernetes.go @@ -8,7 +8,7 @@ import ( "github.com/bmatcuk/doublestar/v2" "github.com/go-kit/log" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" + "github.com/ribbybibby/ssl_exporter/v2/config" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" diff --git a/prober/kubernetes_test.go b/prober/kubernetes_test.go index 2ad387d..cc72860 100644 --- a/prober/kubernetes_test.go +++ b/prober/kubernetes_test.go @@ -9,8 +9,8 @@ import ( "time" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" - "github.com/ribbybibby/ssl_exporter/test" + "github.com/ribbybibby/ssl_exporter/v2/config" + "github.com/ribbybibby/ssl_exporter/v2/test" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes/fake" diff --git a/prober/prober.go b/prober/prober.go index 5d4acc8..d283b5e 100644 --- a/prober/prober.go +++ b/prober/prober.go @@ -5,7 +5,7 @@ import ( "github.com/go-kit/log" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" + "github.com/ribbybibby/ssl_exporter/v2/config" ) var ( diff --git a/prober/tcp.go b/prober/tcp.go index b8d01b1..c08fbe2 100644 --- a/prober/tcp.go +++ b/prober/tcp.go @@ -13,7 +13,7 @@ import ( "github.com/go-kit/log" "github.com/go-kit/log/level" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" + "github.com/ribbybibby/ssl_exporter/v2/config" ) // ProbeTCP performs a tcp probe diff --git a/prober/tcp_test.go b/prober/tcp_test.go index c33ae4b..22c1021 100644 --- a/prober/tcp_test.go +++ b/prober/tcp_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/ribbybibby/ssl_exporter/config" - "github.com/ribbybibby/ssl_exporter/test" + "github.com/ribbybibby/ssl_exporter/v2/config" + "github.com/ribbybibby/ssl_exporter/v2/test" "golang.org/x/crypto/ocsp" "github.com/prometheus/client_golang/prometheus" diff --git a/prober/tls.go b/prober/tls.go index 1eb43bf..e510d39 100644 --- a/prober/tls.go +++ b/prober/tls.go @@ -7,7 +7,7 @@ import ( "net" "github.com/prometheus/client_golang/prometheus" - "github.com/ribbybibby/ssl_exporter/config" + "github.com/ribbybibby/ssl_exporter/v2/config" ) // newTLSConfig sets up TLS config and instruments it with a function that diff --git a/ssl_exporter.go b/ssl_exporter.go index 4c53fe7..4b271cc 100644 --- a/ssl_exporter.go +++ b/ssl_exporter.go @@ -15,8 +15,8 @@ import ( "github.com/prometheus/common/promlog" promlogflag "github.com/prometheus/common/promlog/flag" "github.com/prometheus/common/version" - "github.com/ribbybibby/ssl_exporter/config" - "github.com/ribbybibby/ssl_exporter/prober" + "github.com/ribbybibby/ssl_exporter/v2/config" + "github.com/ribbybibby/ssl_exporter/v2/prober" "gopkg.in/alecthomas/kingpin.v2" ) diff --git a/ssl_exporter_test.go b/ssl_exporter_test.go index 95387b3..85f85be 100644 --- a/ssl_exporter_test.go +++ b/ssl_exporter_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/go-kit/log" - "github.com/ribbybibby/ssl_exporter/config" - "github.com/ribbybibby/ssl_exporter/test" + "github.com/ribbybibby/ssl_exporter/v2/config" + "github.com/ribbybibby/ssl_exporter/v2/test" ) // TestProbeHandler tests that the probe handler sets the ssl_probe_success and