Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 372211e

Browse files
committed
rename
1 parent 2cbc13d commit 372211e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/tls.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"os"
2323
)
2424

25-
// AuthServiceTLSConfig is an interface for the TLS configuration of the AuthService.
26-
type AuthServiceTLSConfig interface {
25+
// TLSConfig is an interface for the TLS configuration of the AuthService.
26+
type TLSConfig interface {
2727
// GetTrustedCertificateAuthority returns the trusted certificate authority PEM.
2828
GetTrustedCertificateAuthority() string
2929
// GetTrustedCertificateAuthorityFile returns the path to the trusted certificate authority file.
@@ -32,8 +32,8 @@ type AuthServiceTLSConfig interface {
3232
GetSkipVerifyPeerCert() bool
3333
}
3434

35-
// LoadTLSConfig loads a TLS configuration from the given AuthServiceTLSConfig.
36-
func LoadTLSConfig(config AuthServiceTLSConfig) (*tls.Config, error) {
35+
// LoadTLSConfig loads a TLS configuration from the given TLSConfig.
36+
func LoadTLSConfig(config TLSConfig) (*tls.Config, error) {
3737
tlsConfig := &tls.Config{}
3838

3939
// Load the trusted CA PEM from the config

internal/tls_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestLoadTLSConfig(t *testing.T) {
5252

5353
tests := []struct {
5454
name string
55-
config AuthServiceTLSConfig
55+
config TLSConfig
5656
wantTLS bool
5757
wantSkip bool
5858
wantPool bool

0 commit comments

Comments
 (0)