package discovery
import "k8s.io/kubernetes/cmd/kube-discovery/app"
Index ¶
- Constants
- func NewRouter() *mux.Router
- type ClusterInfo
- type ClusterInfoHandler
- func NewClusterInfoHandler() *ClusterInfoHandler
- func (cih *ClusterInfoHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
- type Route
- type Routes
Constants ¶
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.
const EndpointListPath = secretPath + "/endpoint-list.json"
const TokenMapPath = secretPath + "/token-map.json"
Functions ¶
func NewRouter ¶
Types ¶
type ClusterInfo ¶
type ClusterInfo struct { // TODO Kind, apiVersion // TODO clusterId, fetchedTime, expiredTime CertificateAuthorities []string `json:"certificateAuthorities,omitempty"` Endpoints []string `json:"endpoints,omitempty"` }
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)
type Route ¶
type Routes ¶
type Routes []Route
Source Files ¶
handlers.go model.go routes.go
- Version
- v1.5.6
- Published
- Mar 28, 2017
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 36 minutes ago –
Tools for package owners.