Skip to content

Commit 69fe1f4

Browse files
committed
Fix final lint issues: import formatting and struct alignment
1 parent d05f8c5 commit 69fe1f4

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

cmd/migrate/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import (
66
"fmt"
77
"log"
88

9+
"github.com/EvalOps/keep/pkg/secrets"
910
"github.com/golang-migrate/migrate/v4"
1011
_ "github.com/golang-migrate/migrate/v4/database/postgres"
1112
_ "github.com/golang-migrate/migrate/v4/source/file"
12-
13-
"github.com/EvalOps/keep/pkg/secrets"
1413
)
1514

1615
func main() {

pkg/vouch/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ var (
4646
// DevicePosture represents device posture information from Vouch
4747
type DevicePosture struct {
4848
Attributes map[string]interface{} `json:"attributes"`
49-
LastSeen time.Time `json:"last_seen"`
5049
Compliance ComplianceStatus `json:"compliance"`
50+
LastSeen time.Time `json:"last_seen"`
5151
ID string `json:"id"`
5252
Hostname string `json:"hostname"`
5353
NodeID string `json:"node_id"`

services/authz/server/server.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ import (
1818
"sync"
1919
"time"
2020

21-
"github.com/go-chi/chi/v5"
22-
"github.com/go-chi/chi/v5/middleware"
23-
"github.com/prometheus/client_golang/prometheus/promhttp"
24-
"tailscale.com/tsnet"
25-
2621
"github.com/EvalOps/keep/pkg/logging"
2722
"github.com/EvalOps/keep/pkg/metrics"
2823
"github.com/EvalOps/keep/pkg/pki"
2924
"github.com/EvalOps/keep/pkg/retry"
3025
"github.com/EvalOps/keep/pkg/telemetry"
3126
"github.com/EvalOps/keep/pkg/vouch"
3227
"github.com/EvalOps/keep/services/authz/token"
28+
"github.com/go-chi/chi/v5"
29+
"github.com/go-chi/chi/v5/middleware"
30+
"github.com/prometheus/client_golang/prometheus/promhttp"
31+
"tailscale.com/tsnet"
3332
)
3433

3534
const (

services/authz/server/server_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ import (
1111
"testing"
1212
"time"
1313

14-
"tailscale.com/tsnet"
15-
1614
"github.com/EvalOps/keep/pkg/pki"
1715
"github.com/EvalOps/keep/pkg/retry"
16+
"tailscale.com/tsnet"
1817
)
1918

2019
const (

services/inventory/server/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ import (
1313
"os"
1414
"time"
1515

16+
"github.com/EvalOps/keep/pkg/telemetry"
1617
"github.com/go-chi/chi/v5"
1718
"github.com/go-chi/chi/v5/middleware"
1819
_ "github.com/jackc/pgx/v5/stdlib" // register pgx driver with database/sql
19-
20-
"github.com/EvalOps/keep/pkg/telemetry"
2120
)
2221

2322
const (

0 commit comments

Comments
 (0)