ssl

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: BSD-3-Clause Imports: 6 Imported by: 25

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