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)
Click to show internal directories.
Click to hide internal directories.