Documentation ¶
Overview ¶
Copyright (C) 2022 PuzzleDB Contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { // SetTLSEnabled sets a TLS enabled flag. SetTLSEnabled(enabled bool) // SetClientAuthType sets a client authentication type. SetClientAuthType(authType tls.ClientAuthType) // SetTLSKeyFile sets a TLS key file. SetTLSKeyFile(file string) error // SetTLSCertFile sets a TLS certificate file. SetTLSCertFile(file string) error // SetTLSCACertFiles sets a TLS root certificate files. SetTLSCACertFiles(files ...string) error // SetTLSKey sets a TLS key file. SetTLSKey(key []byte) // SetTLSCert sets a TLS certificate binaries. SetTLSCert(cert []byte) // SetTLSCACerts sets a TLS root certificate binaries. SetTLSCACerts(certs ...[]byte) // TLSEnabled returns a TLS enabled flag. TLSEnabled() bool // ClientAuthType returns a client authentication type. ClientAuthType() tls.ClientAuthType // TLSKey returns a TLS key bytes. TLSKey() []byte // TLSCert returns a TLS certificate bytes. TLSCert() []byte // TLSCACerts returns a TLS root certificate bytes. TLSCACerts() [][]byte // TLSConfig returns a TLS configuration from the configuration. TLSConfig() (*tls.Config, error) }
Config represents a TLS configuration.
Click to show internal directories.
Click to hide internal directories.