Source File
tls.go
Belonging Package
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig
// Code generated by gotmpl. DO NOT MODIFY.// source: internal/shared/otlp/otlptrace/otlpconfig/tls.go.tmpl// Copyright The OpenTelemetry Authors// SPDX-License-Identifier: Apache-2.0package otlpconfig // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig"import ()// CreateTLSConfig creates a tls.Config from a raw certificate bytes// to verify a server certificate.func ( []byte) (*tls.Config, error) {:= x509.NewCertPool()if := .AppendCertsFromPEM(); ! {return nil, errors.New("failed to append certificate to the cert pool")}return &tls.Config{RootCAs: ,}, nil}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |