Skip to content

Commit

Permalink
rename PlatformIssuer to New
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 4, 2024
1 parent 93f6122 commit 74f06cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coordinator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func newServerMetrics(reg *prometheus.Registry) *grpcprometheus.ServerMetrics {
}

func newGRPCServer(serverMetrics *grpcprometheus.ServerMetrics, log *slog.Logger) (*grpc.Server, error) {
issuer, err := issuer.PlatformIssuer(log)
issuer, err := issuer.New(log)
if err != nil {
return nil, fmt.Errorf("creating issuer: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion initializer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func run() (retErr error) {
return fmt.Errorf("generating key: %w", err)
}

issuer, err := issuer.PlatformIssuer(log)
issuer, err := issuer.New(log)
if err != nil {
return fmt.Errorf("creating issuer: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions internal/atls/issuer/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/klauspost/cpuid/v2"
)

// PlatformIssuer creates an attestation issuer for the current platform.
func PlatformIssuer(log *slog.Logger) (Issuer, error) {
// New creates an attestation issuer for the current platform.
func New(log *slog.Logger) (Issuer, error) {
cpuid.Detect()
switch {
case cpuid.CPU.Supports(cpuid.SEV_SNP):
Expand Down

0 comments on commit 74f06cd

Please sign in to comment.