tls

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode uint16

Mode represents the TLS mode of the transport.

const (
	// Disabled TLS mode allows plaintext connections only.
	Disabled Mode = iota

	// Permissive TLS mode allows both TLS and plaintext connections.
	Permissive

	// Enforced TLS mode allows accepts TLS connections only.
	Enforced
)

func (Mode) String

func (i Mode) String() string

func (*Mode) UnmarshalText

func (t *Mode) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

type OutboundTLSConfigProvider added in v1.66.0

type OutboundTLSConfigProvider interface {
	// ClientTLSConfig returns client TLS config which accepts the provided
	// server Spiffe IDs.
	ClientTLSConfig(spiffeIDs []string) (*tls.Config, error)
}

OutboundTLSConfigProvider interface exposes method for fetching client TLS certificate.

Jump to

Keyboard shortcuts

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