configs

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	CA                 string `json:"ca" yaml:"ca"`
	CAKey              string `json:"caKey" yaml:"caKey"`
	Cert               string `json:"cert" yaml:"cert"`
	Key                string `json:"key" yaml:"key"`
	ServerName         string `json:"serverName" yaml:"serverName"`
	InsecureSkipVerify bool   `json:"insecureSkipVerify" yaml:"insecureSkipVerify"`
}

func (*Client) Load

func (client *Client) Load() (v *tls.Config, err error)

type Server

type Server struct {
	CA         string `json:"ca" yaml:"ca"`
	CAKey      string `json:"caKey" yaml:"caKey"`
	Cert       string `json:"cert" yaml:"cert"`
	Key        string `json:"key" yaml:"key"`
	ClientAuth string `json:"clientAuth" yaml:"clientAuth"`
}

func (*Server) Load

func (server *Server) Load() (v *tls.Config, err error)

Jump to

Keyboard shortcuts

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