ssl

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigSchema = `` /* 347-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewClientTLSConfig

func NewClientTLSConfig(config *Config) (*tls.Config, error)

Types

type Config

type Config struct {
	CAFile        string `json:"caFile"`
	CertFile      string `json:"certFile"`
	KeyFile       string `json:"keyFile"`
	SkipVerify    bool   `json:"skipVerify"`
	UseSystemCert bool   `json:"useSystemCert"`
}

func (*Config) FromMap

func (i *Config) FromMap(values map[string]interface{}) error

func (*Config) ToMap

func (i *Config) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

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