Documentation
¶
Overview ¶
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Cloud Security Client Go contributors
SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const UserAgent = "go-sec-lib"
Variables ¶
This section is empty.
Functions ¶
func DefaultTLSConfig ¶
DefaultTLSConfig creates default tls.Config. Initializes SystemCertPool with cert/key from identity config.
identity provides certificate and key
func NewRequestWithUserAgent ¶ added in v0.17.0
func NewRequestWithUserAgent(ctx context.Context, method, url string, body io.Reader) (*http.Request, error)
NewRequestWithUserAgent creates a request and sets the libs custom user agent it would be nicer to set this in the default http.client, but it's discouraged to manipulate the request in RoundTrip per official documentation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.