Documentation
¶
Index ¶
- func NewTLSClientCertsStore(logger *slog.Logger, src source.ClientCertsSource) (*source.ClientCertsStore, error)
- type RoundTripper
- type RoundTripperOption
- func WithClientCertificate(clientCert *tls.Certificate) RoundTripperOption
- func WithClientCertsStore(source *source.ClientCertsStore) RoundTripperOption
- func WithClientNextProtos(nextProto []string) RoundTripperOption
- func WithClientTLSConfig(tlsClientConfig *tls.Config) RoundTripperOption
- func WithClientTLSSkipVerify(skipVerify bool) RoundTripperOption
- func WithRootCA(cert *x509.Certificate) RoundTripperOption
- func WithRootCAs(rootCAs *x509.CertPool) RoundTripperOption
- func WithSystemRootCA(cert *x509.Certificate) RoundTripperOption
- type TLSClientConfigFunc
- type TLSClientConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTLSClientCertsStore ¶
func NewTLSClientCertsStore(logger *slog.Logger, src source.ClientCertsSource) (*source.ClientCertsStore, error)
Types ¶
type RoundTripper ¶
type RoundTripper struct {
// contains filtered or unexported fields
}
func NewDefaultRoundTripper ¶
func NewDefaultRoundTripper(options ...RoundTripperOption) *RoundTripper
func NewRoundTripper ¶
func NewRoundTripper(transport *http.Transport, options ...RoundTripperOption) *RoundTripper
type RoundTripperOption ¶
type RoundTripperOption func(*RoundTripper)
func WithClientCertificate ¶
func WithClientCertificate(clientCert *tls.Certificate) RoundTripperOption
func WithClientCertsStore ¶
func WithClientCertsStore(source *source.ClientCertsStore) RoundTripperOption
func WithClientNextProtos ¶
func WithClientNextProtos(nextProto []string) RoundTripperOption
func WithClientTLSConfig ¶
func WithClientTLSConfig(tlsClientConfig *tls.Config) RoundTripperOption
func WithClientTLSSkipVerify ¶
func WithClientTLSSkipVerify(skipVerify bool) RoundTripperOption
func WithRootCA ¶
func WithRootCA(cert *x509.Certificate) RoundTripperOption
func WithRootCAs ¶
func WithRootCAs(rootCAs *x509.CertPool) RoundTripperOption
func WithSystemRootCA ¶ added in v0.0.8
func WithSystemRootCA(cert *x509.Certificate) RoundTripperOption
type TLSClientConfigFunc ¶
func NewTLSClientConfigFunc ¶
func NewTLSClientConfigFunc(logger *slog.Logger, src source.ClientCertsSource, opts ...TLSClientConfigOption) (TLSClientConfigFunc, error)
type TLSClientConfigOption ¶
func WithTLSClientNextProtos ¶
func WithTLSClientNextProtos(nextProto []string) TLSClientConfigOption
Click to show internal directories.
Click to hide internal directories.