Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthLoginCallbackEndpoint = "/auth/callback" AuthLoginSuccessEndpoint = "/" AuthLoginErrorEndpoint = "/error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterFunction ¶
type FilterFunction func(http.ResponseWriter, *http.Response)
FilterFunction shall filter response before propagating
type ResourceLister ¶
type ResourceLister interface {
HandleResources(w http.ResponseWriter, r *http.Request)
}
ResourceLister handles resource requests
func NewResourceLister ¶
func NewResourceLister(bearerToken string, requestURL *url.URL, client *http.Client, respFilter FilterFunction) ResourceLister
NewResourceLister shall instantiate & return resourceLister instance
type Server ¶
type Server struct {
K8sProxyConfig *proxy.Config
BaseURL *url.URL
LogoutRedirect *url.URL
PublicDir string
TectonicVersion string
Auther *auth.Authenticator
StaticUser *auth.User
KubectlClientID string
KubeAPIServerURL string
DocumentationBaseURL *url.URL
Branding string
CustomProductName string
CustomLogoFile string
StatuspageID string
LoadTestFactor int
DexClient api.DexClient
InactivityTimeout int
// A client with the correct TLS setup for communicating with the API server.
K8sClient *http.Client
ThanosProxyConfig *proxy.Config
ThanosTenancyProxyConfig *proxy.Config
ThanosTenancyProxyForRulesConfig *proxy.Config
AlertManagerProxyConfig *proxy.Config
MeteringProxyConfig *proxy.Config
TerminalProxyTLSConfig *tls.Config
GitOpsProxyConfig *proxy.Config
// A lister for resource listing of a particular kind
MonitoringDashboardConfigMapLister ResourceLister
KnativeEventSourceCRDLister ResourceLister
KnativeChannelCRDLister ResourceLister
HelmChartRepoProxyConfig *proxy.Config
HelmDefaultRepoCACert []byte
GOARCH string
GOOS string
// Monitoring and Logging related URLs
AlertManagerPublicURL *url.URL
GrafanaPublicURL *url.URL
PrometheusPublicURL *url.URL
ThanosPublicURL *url.URL
}
func (*Server) HTTPHandler ¶
Click to show internal directories.
Click to hide internal directories.