Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenUseCertMgrAndTLSConfig ¶ added in v0.4.1
func GenUseCertMgrAndTLSConfig(restConfigMgr *rest.RestConfigManager, certificateMgr interfaces.YurtCertificateManager, certDir, proxyServerSecureDummyAddr string, stopCh <-chan struct{}) (*tls.Config, error)
create a certificate manager for the yurthub server and run the csr approver for both yurthub and generate a TLS configuration
Types ¶
type Server ¶
type Server interface {
Run()
}
Server is an interface for providing http service for yurthub
func NewYurtHubServer ¶
func NewYurtHubServer(cfg *config.YurtHubConfiguration, certificateMgr interfaces.YurtCertificateManager, proxyHandler http.Handler) (Server, error)
NewYurtHubServer creates a Server object
Click to show internal directories.
Click to hide internal directories.