discovery

package
v1.5.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

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

func NewRouter

func NewRouter() *mux.Router

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 Route struct {
	Name    string
	Method  string
	Pattern string
	Handler http.Handler
}

type Routes

type Routes []Route

Jump to

Keyboard shortcuts

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