Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCluster ¶
SetCluster modifies the config host path to include the cluster endpoint.
Note: it is the caller responsibility to make a copy of the rest config
Types ¶
type Cache ¶
type Cache[R any] interface { ClusterOrDie(clusterPath logicalcluster.Path) R Cluster(clusterPath logicalcluster.Path) (R, error) }
Cache is a client factory that caches previous results.
type ClusterRoundTripper ¶
type ClusterRoundTripper struct {
// contains filtered or unexported fields
}
ClusterRoundTripper is a cluster aware wrapper around http.RoundTripper
func NewClusterRoundTripper ¶
func NewClusterRoundTripper(delegate http.RoundTripper) *ClusterRoundTripper
NewClusterRoundTripper creates a new cluster aware round tripper
Click to show internal directories.
Click to hide internal directories.