Documentation ¶
Index ¶
Constants ¶
View Source
const CAPath = secretPath + "/ca.pem"
CAPath is the expected location of our cluster's CA to be distributed to clients looking to connect. Because we expect to use kubernetes secrets for the time being, this file is expected to be a base64 encoded version of the normal cert PEM.
View Source
const EndpointListPath = secretPath + "/endpoint-list.json"
View Source
const TokenMapPath = secretPath + "/token-map.json"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterInfo ¶
type ClusterInfoHandler ¶
type ClusterInfoHandler struct {
// contains filtered or unexported fields
}
ClusterInfoHandler implements the http.ServeHTTP method and allows us to mock out portions of the request handler in tests.
func NewClusterInfoHandler ¶
func NewClusterInfoHandler() *ClusterInfoHandler
func (*ClusterInfoHandler) ServeHTTP ¶
func (cih *ClusterInfoHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.