1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2025-07-12 23:50:14 +02:00

Amend module path for v2

This commit is contained in:
Rob Best
2022-05-07 09:31:08 +01:00
parent 793444c203
commit 52fb44781c
15 changed files with 22 additions and 22 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/ribbybibby/ssl_exporter module github.com/ribbybibby/ssl_exporter/v2
require ( require (
github.com/bmatcuk/doublestar/v2 v2.0.4 github.com/bmatcuk/doublestar/v2 v2.0.4

View File

@ -7,7 +7,7 @@ import (
"github.com/bmatcuk/doublestar/v2" "github.com/bmatcuk/doublestar/v2"
"github.com/go-kit/log" "github.com/go-kit/log"
"github.com/prometheus/client_golang/prometheus" "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 // ProbeFile collects certificate metrics from local files

View File

@ -11,8 +11,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"github.com/ribbybibby/ssl_exporter/test" "github.com/ribbybibby/ssl_exporter/v2/test"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
) )

View File

@ -12,7 +12,7 @@ import (
"github.com/go-kit/log" "github.com/go-kit/log"
"github.com/go-kit/log/level" "github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
) )
// ProbeHTTPS performs a https probe // ProbeHTTPS performs a https probe

View File

@ -17,8 +17,8 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"github.com/ribbybibby/ssl_exporter/test" "github.com/ribbybibby/ssl_exporter/v2/test"
"golang.org/x/crypto/ocsp" "golang.org/x/crypto/ocsp"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/go-kit/log" "github.com/go-kit/log"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -12,8 +12,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"github.com/ribbybibby/ssl_exporter/test" "github.com/ribbybibby/ssl_exporter/v2/test"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"

View File

@ -8,7 +8,7 @@ import (
"github.com/bmatcuk/doublestar/v2" "github.com/bmatcuk/doublestar/v2"
"github.com/go-kit/log" "github.com/go-kit/log"
"github.com/prometheus/client_golang/prometheus" "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" v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes"

View File

@ -9,8 +9,8 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"github.com/ribbybibby/ssl_exporter/test" "github.com/ribbybibby/ssl_exporter/v2/test"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake" "k8s.io/client-go/kubernetes/fake"

View File

@ -5,7 +5,7 @@ import (
"github.com/go-kit/log" "github.com/go-kit/log"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
) )
var ( var (

View File

@ -13,7 +13,7 @@ import (
"github.com/go-kit/log" "github.com/go-kit/log"
"github.com/go-kit/log/level" "github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
) )
// ProbeTCP performs a tcp probe // ProbeTCP performs a tcp probe

View File

@ -12,8 +12,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"github.com/ribbybibby/ssl_exporter/test" "github.com/ribbybibby/ssl_exporter/v2/test"
"golang.org/x/crypto/ocsp" "golang.org/x/crypto/ocsp"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"

View File

@ -7,7 +7,7 @@ import (
"net" "net"
"github.com/prometheus/client_golang/prometheus" "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 // newTLSConfig sets up TLS config and instruments it with a function that

View File

@ -15,8 +15,8 @@ import (
"github.com/prometheus/common/promlog" "github.com/prometheus/common/promlog"
promlogflag "github.com/prometheus/common/promlog/flag" promlogflag "github.com/prometheus/common/promlog/flag"
"github.com/prometheus/common/version" "github.com/prometheus/common/version"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"github.com/ribbybibby/ssl_exporter/prober" "github.com/ribbybibby/ssl_exporter/v2/prober"
"gopkg.in/alecthomas/kingpin.v2" "gopkg.in/alecthomas/kingpin.v2"
) )

View File

@ -8,8 +8,8 @@ import (
"testing" "testing"
"github.com/go-kit/log" "github.com/go-kit/log"
"github.com/ribbybibby/ssl_exporter/config" "github.com/ribbybibby/ssl_exporter/v2/config"
"github.com/ribbybibby/ssl_exporter/test" "github.com/ribbybibby/ssl_exporter/v2/test"
) )
// TestProbeHandler tests that the probe handler sets the ssl_probe_success and // TestProbeHandler tests that the probe handler sets the ssl_probe_success and