tls

package
v1.9.15 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Tls
	ServerName string `json:"serverName" yaml:"serverName" xml:"serverName"`
}

func (*Client) GetCredentialsByCA

func (t *Client) GetCredentialsByCA() (credentials.TransportCredentials, error)

func (*Client) GetTLSCredentials

func (t *Client) GetTLSCredentials() (credentials.TransportCredentials, error)

type Server

type Server struct {
	Tls
}

func (*Server) GetCredentialsByCA

func (t *Server) GetCredentialsByCA() (credentials.TransportCredentials, error)

func (*Server) GetTLSCredentials

func (t *Server) GetTLSCredentials() (credentials.TransportCredentials, error)

type Tls added in v1.9.15

type Tls struct {
	CaFile   string `json:"caFile" yaml:"caFile" xml:"caFile"`
	CertFile string `json:"certFile" yaml:"certFile" xml:"certFile"`
	KeyFile  string `json:"keyFile" yaml:"keyFile" xml:"keyFile"`
}

func (*Tls) GetCredential added in v1.9.15

func (t *Tls) GetCredential() (tls.Certificate, *x509.CertPool, error)

Jump to

Keyboard shortcuts

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