Documentation ¶
Index ¶
- Constants
- Variables
- func GetServerCredentials(insecureSkipVerify bool, logger *log.Logger) (credentials.TransportCredentials, error)
- func GetTlsConfig(certName string) (*tls.Config, error)
- func GetTransportCredentials(insecureSkipVerify bool, drone ...*bool) (credentials.TransportCredentials, error)
- func GetTransportCredentialsByCert(insecureSkipVerify bool, serverName *string, cert *tls.Certificate) (credentials.TransportCredentials, error)
- func InitRoot()
- func ReadServerCert(certName string, drone ...*bool) ([]byte, error)
Constants ¶
View Source
const (
ServCertLocal = "./serv_cert.pem"
)
Variables ¶
View Source
var ( ServCert = "/certs/serv_cert.pem" ServCertPrefixPath = "/certs/" ServKey = "/certs/serv_key.pem" )
View Source
var MashupCertPool *x509.CertPool
Functions ¶
func GetServerCredentials ¶
func GetServerCredentials(insecureSkipVerify bool, logger *log.Logger) (credentials.TransportCredentials, error)
func GetTransportCredentials ¶
func GetTransportCredentials(insecureSkipVerify bool, drone ...*bool) (credentials.TransportCredentials, error)
func GetTransportCredentialsByCert ¶ added in v1.27.5
func GetTransportCredentialsByCert(insecureSkipVerify bool, serverName *string, cert *tls.Certificate) (credentials.TransportCredentials, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.