provider

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MPL-2.0 Imports: 9 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(resources state.State) (*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