auth

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthMethod    authMethod    = ""
	Authenticated authenticated = false
)

Variables

This section is empty.

Functions

func BasicAuthFunc

func BasicAuthFunc(expectedToken string) grpc_auth.AuthFunc

func LoadTLSForGRPC

func LoadTLSForGRPC(tlsCfg *config.TLSConfig) (credentials.TransportCredentials, error)

LoadTLSForGRPC will process TLS config and return TLS credentials for the gRPC server. If ClientCAFile and ValidateClient are set, then the server will be configured for mutual TLS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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