This repository was archived by the owner on Apr 22, 2024. It is now read-only.
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ import (
22
22
"os"
23
23
)
24
24
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 {
27
27
// GetTrustedCertificateAuthority returns the trusted certificate authority PEM.
28
28
GetTrustedCertificateAuthority () string
29
29
// GetTrustedCertificateAuthorityFile returns the path to the trusted certificate authority file.
@@ -32,8 +32,8 @@ type AuthServiceTLSConfig interface {
32
32
GetSkipVerifyPeerCert () bool
33
33
}
34
34
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 ) {
37
37
tlsConfig := & tls.Config {}
38
38
39
39
// Load the trusted CA PEM from the config
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func TestLoadTLSConfig(t *testing.T) {
52
52
53
53
tests := []struct {
54
54
name string
55
- config AuthServiceTLSConfig
55
+ config TLSConfig
56
56
wantTLS bool
57
57
wantSkip bool
58
58
wantPool bool
You can’t perform that action at this time.
0 commit comments