utils

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package utils contains functions useful for the discovery component, in particular during the communications with a remote cluster.

Index

Constants

View Source
const (
	// HTTPRequestTimeout is the timeout used in http connection to a remote authentication service.
	HTTPRequestTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

func GetClusterInfo

func GetClusterInfo(ctx context.Context, transport *http.Transport, url string) (*auth.ClusterInfo, error)

GetClusterInfo contacts the remote cluster to get its info, it returns also if the remote cluster exposes a trusted certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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