proxy

package
v0.0.0-...-690bb9c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort = "8081"
)
View Source
const ProxyMetricsPort = 8082

Variables

This section is empty.

Functions

func StartMetricsServer

func StartMetricsServer(reg *prometheus.Registry, port int) *http.Server

StartMetricsServer start server with a single `/metrics` endpoint to server the Prometheus metrics Uses echo web framework

Types

type MemberClusters

type MemberClusters struct {
	namespaced.Client
	SignupService  service.SignupService
	GetMembersFunc cluster.GetMemberClustersFunc
}

MemberClusters is a type that helps with retrieving access to a specific member cluster

func NewMemberClusters

func NewMemberClusters(client namespaced.Client, signupService service.SignupService, getMembersFunc cluster.GetMemberClustersFunc) *MemberClusters

NewMemberClusters creates an instance of the MemberClusters type

func (*MemberClusters) GetClusterAccess

func (s *MemberClusters) GetClusterAccess(userID, username, workspace, proxyPluginName string, publicViewerEnabled bool) (*access.ClusterAccess, error)

type Proxy

type Proxy struct {
	namespaced.Client
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(nsClient namespaced.Client, app application.Application, proxyMetrics *metrics.ProxyMetrics, getMembersFunc commoncluster.GetMemberClustersFunc) (*Proxy, error)

func (*Proxy) StartProxy

func (p *Proxy) StartProxy(port string) *http.Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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