server

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrNonResource added in v0.7.1

func ErrNonResource(err error, w http.ResponseWriter, req *http.Request)

func GenUseCertMgrAndTLSConfig added in v0.4.1

func GenUseCertMgrAndTLSConfig(
	restConfigMgr *rest.RestConfigManager,
	certificateMgr interfaces.YurtCertificateManager,
	certDir, nodeName string,
	certIPs []net.IP,
	stopCh <-chan struct{}) (*tls.Config, error)

GenUseCertMgrAndTLSConfig create a certificate manager for the yurthub server 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,
	rest *rest.RestConfigManager) (Server, error)

NewYurtHubServer creates a Server object

Jump to

Keyboard shortcuts

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