aboutsummaryrefslogtreecommitdiff
path: root/pkg/state
diff options
context:
space:
mode:
authorJulien Dessaux2021-04-23 16:51:22 +0200
committerJulien Dessaux2021-04-23 16:51:22 +0200
commit38d9c881b3b5ece91f428c87f0b7bb9efb3e88a8 (patch)
treed3f7167fae6388f4db35a63e660d1816c9c2943e /pkg/state
parentFixed wrongfully hardcoded path in tests. (diff)
downloadbareos-zabbix-check-38d9c881b3b5ece91f428c87f0b7bb9efb3e88a8.tar.gz
bareos-zabbix-check-38d9c881b3b5ece91f428c87f0b7bb9efb3e88a8.tar.bz2
bareos-zabbix-check-38d9c881b3b5ece91f428c87f0b7bb9efb3e88a8.zip
Updated for go 1.16 modules1.2
Diffstat (limited to '')
-rw-r--r--pkg/state/header.go (renamed from state/header.go)2
-rw-r--r--pkg/state/header_test.go (renamed from state/header_test.go)0
-rw-r--r--pkg/state/job.go (renamed from state/job.go)4
-rw-r--r--pkg/state/job_test.go (renamed from state/job_test.go)3
4 files changed, 5 insertions, 4 deletions
diff --git a/state/header.go b/pkg/state/header.go
index 3becd5d..ee6629b 100644
--- a/state/header.go
+++ b/pkg/state/header.go
@@ -1,12 +1,12 @@
package state
import (
- "bareos-zabbix-check/utils"
"bytes"
"encoding/binary"
"fmt"
"io"
+ "git.adyxax.org/adyxax/bareos-zabbix-check/pkg/utils"
"github.com/pkg/errors"
)
diff --git a/state/header_test.go b/pkg/state/header_test.go
index 1ed71eb..1ed71eb 100644
--- a/state/header_test.go
+++ b/pkg/state/header_test.go
diff --git a/state/job.go b/pkg/state/job.go
index e8333ff..e86bc8e 100644
--- a/state/job.go
+++ b/pkg/state/job.go
@@ -1,8 +1,6 @@
package state
import (
- "bareos-zabbix-check/job"
- "bareos-zabbix-check/utils"
"bytes"
"encoding/binary"
"fmt"
@@ -10,6 +8,8 @@ import (
"regexp"
"time"
+ "git.adyxax.org/adyxax/bareos-zabbix-check/pkg/job"
+ "git.adyxax.org/adyxax/bareos-zabbix-check/pkg/utils"
"github.com/pkg/errors"
)
diff --git a/state/job_test.go b/pkg/state/job_test.go
index 410401b..f814574 100644
--- a/state/job_test.go
+++ b/pkg/state/job_test.go
@@ -1,11 +1,12 @@
package state
import (
- "bareos-zabbix-check/job"
"bytes"
"io"
"reflect"
"testing"
+
+ "git.adyxax.org/adyxax/bareos-zabbix-check/pkg/job"
)
func Test_jobEntry_String(t *testing.T) {