Documentation ¶
Index ¶
- Variables
- func APIVersion(next http.Handler) http.Handler
- func GetLicenseCrtAndSig() (crt *x509.Certificate, sig []byte, err error)
- func InitApplication(next http.Handler) http.Handler
- func InitPlugin(next http.Handler) http.Handler
- func InitService(next http.Handler) http.Handler
- func InitTenantEnv(next http.Handler) http.Handler
- func InitVM(next http.Handler) http.Handler
- func InitVMID(next http.Handler) http.Handler
- func InitVeleroBackupOrRestore(next http.Handler) http.Handler
- func License(next http.Handler) http.Handler
- func Proxy(next http.Handler) http.Handler
- func SetLog(next http.Handler) http.Handler
- func Token(next http.Handler) http.Handler
- func VerifyLicense(licensePlaintextKey string, cert *x509.Certificate, sig []byte) (err error)
- func WrapEL(f http.HandlerFunc, target, optType string, synType int) http.HandlerFunc
- type LicenseCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLicenseNotValid = errors.New("wutong region license not valid")
Functions ¶
func GetLicenseCrtAndSig ¶ added in v1.2.0
func GetLicenseCrtAndSig() (crt *x509.Certificate, sig []byte, err error)
GetLicenseCrtAndSig 获取证书和签名(从kubernetes secret中获取)
func InitTenantEnv ¶ added in v1.1.0
InitTenantEnv 实现中间件
func InitVeleroBackupOrRestore ¶ added in v1.9.0
InitVeleroBackupOrRestore
func VerifyLicense ¶ added in v1.2.0
func VerifyLicense(licensePlaintextKey string, cert *x509.Certificate, sig []byte) (err error)
VerifyLicense 许可证验证:验证证书,并使用证书中的公钥对签名进行验证
func WrapEL ¶
func WrapEL(f http.HandlerFunc, target, optType string, synType int) http.HandlerFunc
WrapEL wrap eventlog, handle event log before and after process
Types ¶
Click to show internal directories.
Click to hide internal directories.