mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-25 20:51:43 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
21 lines
534 B
Go
21 lines
534 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
//go:build !enterprise
|
|
|
|
package plugin
|
|
|
|
import (
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
"github.com/hashicorp/vault/sdk/plugin/pb"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
// registerSystemViewServer (Vault Community edition) registers the SystemView server
|
|
// to the gRPC service registrar
|
|
func registerSystemViewServer(s *grpc.Server, sysView logical.SystemView, _ *logical.BackendConfig) {
|
|
pb.RegisterSystemViewServer(s, &gRPCSystemViewServer{
|
|
impl: sysView,
|
|
})
|
|
}
|