tls

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tls implements the functions, types, and interfaces for the module.

Package tls implements the functions, types, and interfaces for the module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientTLSConfig

func NewClientTLSConfig(cfg *transportv1.TLSConfig, options ...Option) (*tls.Config, error)

func NewClientTLSConfigFromFile

func NewClientTLSConfigFromFile(key string, cert string, ca string, options ...Option) (*tls.Config, error)

func NewClientTLSConfigFromPem

func NewClientTLSConfigFromPem(key []byte, cert []byte, ca []byte, options ...Option) (*tls.Config, error)

func NewServerTLSConfig

func NewServerTLSConfig(cfg *transportv1.TLSConfig, options ...Option) (*tls.Config, error)

func NewServerTLSConfigFromFile

func NewServerTLSConfigFromFile(keyFile, certFile, caFile string, options ...Option) (*tls.Config, error)

func NewServerTLSConfigFromPem

func NewServerTLSConfigFromPem(key []byte, cert []byte, ca []byte, options ...Option) (*tls.Config, error)

Types

type Option

type Option = func(*tls.Config)

func WithInsecureSkipVerify

func WithInsecureSkipVerify() Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL