env

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticCaFile     = "TLS_OPTION_CA_FILE"
	StaticServerName = "TLS_OPTION_SERVER_NAME"
)

Variables

View Source
var ErrGrpcTLSNotInCluster = errors.New("unable to load tls configuration, TLS_OPTION_CA_FILE or TLS_OPTION_SERVER_NAME must be defined")

Functions

func GetHostName

func GetHostName() (string, error)

GetHostName gets the hostname of host machine

func GetHostNameMustSpecified

func GetHostNameMustSpecified() string

GetHostNameMustSpecified will fatal if the hostname hasn't been specified

func StaticClientCerts added in v1.0.1

func StaticClientCerts() (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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