provider

package
v0.8.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package provider provides TLS config for client & server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLSConfig

type TLSConfig struct {
	// contains filtered or unexported fields
}

TLSConfig provides client & server TLS configs for apid.

func NewTLSConfig

func NewTLSConfig(config config.Provider, endpoints []string) (*TLSConfig, error)

NewTLSConfig builds provider from configuration and endpoints.

func (*TLSConfig) ClientConfig

func (tlsConfig *TLSConfig) ClientConfig() (*stdlibtls.Config, error)

ClientConfig generates client-side tls.Config.

func (*TLSConfig) ServerConfig

func (tlsConfig *TLSConfig) ServerConfig() (*stdlibtls.Config, error)

ServerConfig generates server-side tls.Config.

Jump to

Keyboard shortcuts

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