cert

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path string
}

func NewFile

func NewFile(path string) *File

func (File) Gather

func (f File) Gather() ([]*x509.Certificate, error)

type Net

type Net struct {
	URL       *url.URL
	TLSConfig *tls.Config
	Timeout   time.Duration
}

func NewNet

func NewNet(url *url.URL, tlsConfig *tls.Config, timeout time.Duration) *Net

func (Net) Gather

func (n Net) Gather() ([]*x509.Certificate, error)

type SMTP

type SMTP struct {
	URL       *url.URL
	TLSConfig *tls.Config
	Timeout   time.Duration
}

func NewSMTP

func NewSMTP(url *url.URL, tlsConfig *tls.Config, timeout time.Duration) *SMTP

func (SMTP) Gather

func (s SMTP) Gather() ([]*x509.Certificate, error)

Jump to

Keyboard shortcuts

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