provider

package
v0.9.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MPL-2.0 Imports: 15 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 Endpoints added in v0.9.0

type Endpoints interface {
	GetEndpoints() (endpoints []string, err error)
}

Endpoints interfaces describes a control plane endpoints provider.

type KubernetesEndpoints added in v0.9.0

type KubernetesEndpoints struct{}

KubernetesEndpoints provides dynamic list of control plane endpoints via Kubernetes Endpoints resource.

func (*KubernetesEndpoints) GetEndpoints added in v0.9.0

func (e *KubernetesEndpoints) GetEndpoints() (endpoints []string, err error)

GetEndpoints implements Endpoints inteface.

type StaticEndpoints added in v0.9.0

type StaticEndpoints struct {
	Endpoints []string
}

StaticEndpoints provides static list of endpoints.

func (*StaticEndpoints) GetEndpoints added in v0.9.0

func (e *StaticEndpoints) GetEndpoints() (endpoints []string, err error)

GetEndpoints implements Endpoints inteface.

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 Endpoints) (*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