provider

package
v1.8.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MPL-2.0 Imports: 12 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(ctx context.Context, 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.

func (*TLSConfig) Watch added in v1.6.6

func (tlsConfig *TLSConfig) Watch(ctx context.Context, onUpdate func()) error

Watch for changes in API certificates and updates the TLSConfig.

Jump to

Keyboard shortcuts

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