Documentation
¶
Index ¶
Constants ¶
View Source
const ( // token ttl MaxTokenTTL = 3600 * 24 // one day // manager cluster name ManagerCluster = "leader" )
View Source
const ( WorkloadClusters crdName = "crd" ClientToken crdName = "token" )
Variables ¶
This section is empty.
Functions ¶
func NewHTTPMux ¶
Types ¶
type APIServer ¶
type APIServer struct { // http server //Server *server.Server // access token Token *ttl.TokenTTL // cluster mux XwcMux map[string]*clusterMuxer // crd watcher CRDWatcher map[crdName]crdwatcher.WatcherInterface //xwc cache XWCCache cache.Store sync.Mutex }
func NewAPIServer ¶
func NewAPIServer() *APIServer
Click to show internal directories.
Click to hide internal directories.