[MM-35863] Add IsEnterpriseReady Plugin API (#18676)

Automatic Merge
Этот коммит содержится в:
Joe
2021-10-20 11:12:58 +01:00
коммит произвёл GitHub
родитель 5928e4f9e0
Коммит dea8610f1e
6 изменённых файлов: 72 добавлений и 0 удалений

Просмотреть файл

@@ -980,6 +980,33 @@ func (s *apiRPCServer) GetLicense(args *Z_GetLicenseArgs, returns *Z_GetLicenseR
return nil
}
type Z_IsEnterpriseReadyArgs struct {
}
type Z_IsEnterpriseReadyReturns struct {
A bool
}
func (g *apiRPCClient) IsEnterpriseReady() bool {
_args := &Z_IsEnterpriseReadyArgs{}
_returns := &Z_IsEnterpriseReadyReturns{}
if err := g.client.Call("Plugin.IsEnterpriseReady", _args, _returns); err != nil {
log.Printf("RPC call to IsEnterpriseReady API failed: %s", err.Error())
}
return _returns.A
}
func (s *apiRPCServer) IsEnterpriseReady(args *Z_IsEnterpriseReadyArgs, returns *Z_IsEnterpriseReadyReturns) error {
if hook, ok := s.impl.(interface {
IsEnterpriseReady() bool
}); ok {
returns.A = hook.IsEnterpriseReady()
} else {
return encodableError(fmt.Errorf("API IsEnterpriseReady called but not implemented."))
}
return nil
}
type Z_GetServerVersionArgs struct {
}