Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkAccess ¶
type NetworkAccess interface {
// AddHeaders adds all the custom and authentication headers to the request.
AddHeaders(request *http.Request) error
// GetRoundTripper returns the http.RoundTripper.
GetRoundTripper() http.RoundTripper
// GetHttpClient returns the http client.
GetHttpClient() *http.Client
GetUnauthorizedHttpClient() *http.Client
// AddHeaderField adds a header field to the default header.
AddHeaderField(key, value string)
// AddRootCAs adds the root CAs from the given PEM file.
AddRootCAs(pemFileLocation string) error
// GetAuthenticator returns the authenticator.
GetAuthenticator() auth.Authenticator
SetLogger(logger *zerolog.Logger)
}
NetworkAccess is the interface for network access.
func NewNetworkAccess ¶
func NewNetworkAccess(config configuration.Configuration) NetworkAccess
NewNetworkAccess returns a networkImpl instance.
Click to show internal directories.
Click to hide internal directories.