mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-10 16:00:19 -04:00
tidy
This commit is contained in:
parent
d80383d993
commit
972f832a6e
10 changed files with 31 additions and 31 deletions
|
@ -11,12 +11,12 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
"log/slog"
|
||||
"net"
|
||||
"strings"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
"log/slog"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/bootstrapper/initproto"
|
||||
"github.com/edgelesssys/constellation/v2/internal/atls"
|
||||
|
|
|
@ -9,12 +9,12 @@ package joinclient
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"log/slog"
|
||||
"net"
|
||||
"strconv"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
"log/slog"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/internal/cloud/metadata"
|
||||
"github.com/edgelesssys/constellation/v2/internal/constants"
|
||||
|
|
|
@ -9,10 +9,10 @@ package kubernetes
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"log/slog"
|
||||
"net"
|
||||
"strconv"
|
||||
"testing"
|
||||
"log/slog"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/kubernetes/k8sapi"
|
||||
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/kubernetes/kubewaiter"
|
||||
|
|
|
@ -10,10 +10,10 @@ package integration
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
"testing"
|
||||
"log/slog"
|
||||
"math"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/disk-mapper/internal/diskencryption"
|
||||
"github.com/martinjungblut/go-cryptsetup"
|
||||
|
|
|
@ -12,13 +12,13 @@ import (
|
|||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"syscall"
|
||||
"testing"
|
||||
"log/slog"
|
||||
|
||||
"github.com/bazelbuild/rules_go/go/runfiles"
|
||||
"github.com/edgelesssys/constellation/v2/disk-mapper/internal/diskencryption"
|
||||
|
|
|
@ -5,6 +5,7 @@ go_library(
|
|||
srcs = [
|
||||
"cmdline.go",
|
||||
"grpclogger.go",
|
||||
"levelhandler.go",
|
||||
"log.go",
|
||||
],
|
||||
importpath = "github.com/edgelesssys/constellation/v2/internal/logger",
|
||||
|
|
|
@ -4,12 +4,11 @@ Copyright (c) Edgeless Systems GmbH
|
|||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
|
||||
package logger
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"context"
|
||||
"log/slog"
|
||||
)
|
||||
|
||||
// LevelHandler copied from the official LevelHandler example in the slog package documentation.
|
||||
|
|
|
@ -110,7 +110,7 @@ func middlewareLogger(l *slog.Logger) logging.Logger {
|
|||
})
|
||||
}
|
||||
|
||||
func NewTest(t * testing.T) *slog.Logger {
|
||||
func NewTest(t *testing.T) *slog.Logger {
|
||||
return slog.New(slog.NewTextHandler(testWriter{t: t}, nil))
|
||||
}
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ package amdkds
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
"log/slog"
|
||||
"testing"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/internal/logger"
|
||||
"github.com/edgelesssys/constellation/v2/joinservice/internal/certcache/amdkds/testdata"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue