mirror of https://github.com/hashicorp/boundary
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
537 lines
23 KiB
537 lines
23 KiB
// Copyright IBM Corp. 2020, 2025
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.1
|
|
// - protoc (unknown)
|
|
// source: plugin/v1/host_plugin_service.proto
|
|
|
|
package plugin
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
HostPluginService_NormalizeCatalogData_FullMethodName = "/plugin.v1.HostPluginService/NormalizeCatalogData"
|
|
HostPluginService_OnCreateCatalog_FullMethodName = "/plugin.v1.HostPluginService/OnCreateCatalog"
|
|
HostPluginService_OnUpdateCatalog_FullMethodName = "/plugin.v1.HostPluginService/OnUpdateCatalog"
|
|
HostPluginService_OnDeleteCatalog_FullMethodName = "/plugin.v1.HostPluginService/OnDeleteCatalog"
|
|
HostPluginService_NormalizeSetData_FullMethodName = "/plugin.v1.HostPluginService/NormalizeSetData"
|
|
HostPluginService_OnCreateSet_FullMethodName = "/plugin.v1.HostPluginService/OnCreateSet"
|
|
HostPluginService_OnUpdateSet_FullMethodName = "/plugin.v1.HostPluginService/OnUpdateSet"
|
|
HostPluginService_OnDeleteSet_FullMethodName = "/plugin.v1.HostPluginService/OnDeleteSet"
|
|
HostPluginService_ListHosts_FullMethodName = "/plugin.v1.HostPluginService/ListHosts"
|
|
)
|
|
|
|
// HostPluginServiceClient is the client API for HostPluginService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
//
|
|
// HostPluginService describes the service for host plugins.
|
|
type HostPluginServiceClient interface {
|
|
// NormalizeCatalogData is a hook that passes attributes to the plugin and
|
|
// allows those values to be normalized prior to creating or updating those
|
|
// values in the host catalog data.
|
|
//
|
|
// NormalizeCatalogData is useful for converting the values of attributes from
|
|
// a certain format/type to an expected value format/type. This is useful
|
|
// during migration of values.
|
|
//
|
|
// NormalizeCatalogData is called before the values of attributes are persisted.
|
|
// All normalized values will be persisted in Boundary and returned
|
|
// to all clients.
|
|
//
|
|
// NormalizeCatalogData could affect other clients. For example, on Terraform,
|
|
// if data is passed to Boundary and then normalized into a new data
|
|
// structure, it could cause diffs in Terraform for unchanged values.
|
|
// This is because, the data structure in Terraform's state will now be
|
|
// different from the normalized data structure returned from Boundary.
|
|
//
|
|
// NormalizeCatalogData is called before:
|
|
// * OnCreateCatalog
|
|
// * OnUpdateCatalog
|
|
NormalizeCatalogData(ctx context.Context, in *NormalizeCatalogDataRequest, opts ...grpc.CallOption) (*NormalizeCatalogDataResponse, error)
|
|
// OnCreateCatalog is a hook that runs when a
|
|
// host catalog is created.
|
|
OnCreateCatalog(ctx context.Context, in *OnCreateCatalogRequest, opts ...grpc.CallOption) (*OnCreateCatalogResponse, error)
|
|
// OnUpdateCatalog is a hook that runs when a host catalog is
|
|
// updated.
|
|
OnUpdateCatalog(ctx context.Context, in *OnUpdateCatalogRequest, opts ...grpc.CallOption) (*OnUpdateCatalogResponse, error)
|
|
// OnDeleteCatalog is a hook that runs when a host catalog is
|
|
// deleted.
|
|
OnDeleteCatalog(ctx context.Context, in *OnDeleteCatalogRequest, opts ...grpc.CallOption) (*OnDeleteCatalogResponse, error)
|
|
// NormalizeSetData is a hook that passes attributes to the plugin and
|
|
// allows those values to be normalized prior to creating or updating those
|
|
// values in the host set data.
|
|
//
|
|
// NormalizeSetData is useful for converting the values of attributes from
|
|
// a certain format/type to an expected value format/type. This is useful
|
|
// during migration of values.
|
|
//
|
|
// NormalizeSetData is called before the values of attributes are persisted.
|
|
// All normalized values will be persisted in Boundary and returned
|
|
// to all clients.
|
|
//
|
|
// NormalizeSetData could affect other clients. For example, on Terraform,
|
|
// if data is passed to Boundary and then normalized into a new data
|
|
// structure, it could cause diffs in Terraform for unchanged values.
|
|
// This is because, the data structure in Terraform's state will now be
|
|
// different from the normalized data structure returned from Boundary.
|
|
//
|
|
// NormalizeSetData is called before:
|
|
// * OnCreateSet
|
|
// * OnUpdateSet
|
|
NormalizeSetData(ctx context.Context, in *NormalizeSetDataRequest, opts ...grpc.CallOption) (*NormalizeSetDataResponse, error)
|
|
// OnCreateSet is a hook that runs when a host set is created.
|
|
OnCreateSet(ctx context.Context, in *OnCreateSetRequest, opts ...grpc.CallOption) (*OnCreateSetResponse, error)
|
|
// OnUpdateSet is a hook that runs when a host set is updated.
|
|
OnUpdateSet(ctx context.Context, in *OnUpdateSetRequest, opts ...grpc.CallOption) (*OnUpdateSetResponse, error)
|
|
// OnDeleteSet is a hook that runs when a host set is deleted.
|
|
OnDeleteSet(ctx context.Context, in *OnDeleteSetRequest, opts ...grpc.CallOption) (*OnDeleteSetResponse, error)
|
|
// ListHosts looks up all the hosts in the provided host sets.
|
|
ListHosts(ctx context.Context, in *ListHostsRequest, opts ...grpc.CallOption) (*ListHostsResponse, error)
|
|
}
|
|
|
|
type hostPluginServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewHostPluginServiceClient(cc grpc.ClientConnInterface) HostPluginServiceClient {
|
|
return &hostPluginServiceClient{cc}
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) NormalizeCatalogData(ctx context.Context, in *NormalizeCatalogDataRequest, opts ...grpc.CallOption) (*NormalizeCatalogDataResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(NormalizeCatalogDataResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_NormalizeCatalogData_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) OnCreateCatalog(ctx context.Context, in *OnCreateCatalogRequest, opts ...grpc.CallOption) (*OnCreateCatalogResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OnCreateCatalogResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_OnCreateCatalog_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) OnUpdateCatalog(ctx context.Context, in *OnUpdateCatalogRequest, opts ...grpc.CallOption) (*OnUpdateCatalogResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OnUpdateCatalogResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_OnUpdateCatalog_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) OnDeleteCatalog(ctx context.Context, in *OnDeleteCatalogRequest, opts ...grpc.CallOption) (*OnDeleteCatalogResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OnDeleteCatalogResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_OnDeleteCatalog_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) NormalizeSetData(ctx context.Context, in *NormalizeSetDataRequest, opts ...grpc.CallOption) (*NormalizeSetDataResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(NormalizeSetDataResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_NormalizeSetData_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) OnCreateSet(ctx context.Context, in *OnCreateSetRequest, opts ...grpc.CallOption) (*OnCreateSetResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OnCreateSetResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_OnCreateSet_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) OnUpdateSet(ctx context.Context, in *OnUpdateSetRequest, opts ...grpc.CallOption) (*OnUpdateSetResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OnUpdateSetResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_OnUpdateSet_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) OnDeleteSet(ctx context.Context, in *OnDeleteSetRequest, opts ...grpc.CallOption) (*OnDeleteSetResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(OnDeleteSetResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_OnDeleteSet_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *hostPluginServiceClient) ListHosts(ctx context.Context, in *ListHostsRequest, opts ...grpc.CallOption) (*ListHostsResponse, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(ListHostsResponse)
|
|
err := c.cc.Invoke(ctx, HostPluginService_ListHosts_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// HostPluginServiceServer is the server API for HostPluginService service.
|
|
// All implementations must embed UnimplementedHostPluginServiceServer
|
|
// for forward compatibility.
|
|
//
|
|
// HostPluginService describes the service for host plugins.
|
|
type HostPluginServiceServer interface {
|
|
// NormalizeCatalogData is a hook that passes attributes to the plugin and
|
|
// allows those values to be normalized prior to creating or updating those
|
|
// values in the host catalog data.
|
|
//
|
|
// NormalizeCatalogData is useful for converting the values of attributes from
|
|
// a certain format/type to an expected value format/type. This is useful
|
|
// during migration of values.
|
|
//
|
|
// NormalizeCatalogData is called before the values of attributes are persisted.
|
|
// All normalized values will be persisted in Boundary and returned
|
|
// to all clients.
|
|
//
|
|
// NormalizeCatalogData could affect other clients. For example, on Terraform,
|
|
// if data is passed to Boundary and then normalized into a new data
|
|
// structure, it could cause diffs in Terraform for unchanged values.
|
|
// This is because, the data structure in Terraform's state will now be
|
|
// different from the normalized data structure returned from Boundary.
|
|
//
|
|
// NormalizeCatalogData is called before:
|
|
// * OnCreateCatalog
|
|
// * OnUpdateCatalog
|
|
NormalizeCatalogData(context.Context, *NormalizeCatalogDataRequest) (*NormalizeCatalogDataResponse, error)
|
|
// OnCreateCatalog is a hook that runs when a
|
|
// host catalog is created.
|
|
OnCreateCatalog(context.Context, *OnCreateCatalogRequest) (*OnCreateCatalogResponse, error)
|
|
// OnUpdateCatalog is a hook that runs when a host catalog is
|
|
// updated.
|
|
OnUpdateCatalog(context.Context, *OnUpdateCatalogRequest) (*OnUpdateCatalogResponse, error)
|
|
// OnDeleteCatalog is a hook that runs when a host catalog is
|
|
// deleted.
|
|
OnDeleteCatalog(context.Context, *OnDeleteCatalogRequest) (*OnDeleteCatalogResponse, error)
|
|
// NormalizeSetData is a hook that passes attributes to the plugin and
|
|
// allows those values to be normalized prior to creating or updating those
|
|
// values in the host set data.
|
|
//
|
|
// NormalizeSetData is useful for converting the values of attributes from
|
|
// a certain format/type to an expected value format/type. This is useful
|
|
// during migration of values.
|
|
//
|
|
// NormalizeSetData is called before the values of attributes are persisted.
|
|
// All normalized values will be persisted in Boundary and returned
|
|
// to all clients.
|
|
//
|
|
// NormalizeSetData could affect other clients. For example, on Terraform,
|
|
// if data is passed to Boundary and then normalized into a new data
|
|
// structure, it could cause diffs in Terraform for unchanged values.
|
|
// This is because, the data structure in Terraform's state will now be
|
|
// different from the normalized data structure returned from Boundary.
|
|
//
|
|
// NormalizeSetData is called before:
|
|
// * OnCreateSet
|
|
// * OnUpdateSet
|
|
NormalizeSetData(context.Context, *NormalizeSetDataRequest) (*NormalizeSetDataResponse, error)
|
|
// OnCreateSet is a hook that runs when a host set is created.
|
|
OnCreateSet(context.Context, *OnCreateSetRequest) (*OnCreateSetResponse, error)
|
|
// OnUpdateSet is a hook that runs when a host set is updated.
|
|
OnUpdateSet(context.Context, *OnUpdateSetRequest) (*OnUpdateSetResponse, error)
|
|
// OnDeleteSet is a hook that runs when a host set is deleted.
|
|
OnDeleteSet(context.Context, *OnDeleteSetRequest) (*OnDeleteSetResponse, error)
|
|
// ListHosts looks up all the hosts in the provided host sets.
|
|
ListHosts(context.Context, *ListHostsRequest) (*ListHostsResponse, error)
|
|
mustEmbedUnimplementedHostPluginServiceServer()
|
|
}
|
|
|
|
// UnimplementedHostPluginServiceServer must be embedded to have
|
|
// forward compatible implementations.
|
|
//
|
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
|
// pointer dereference when methods are called.
|
|
type UnimplementedHostPluginServiceServer struct{}
|
|
|
|
func (UnimplementedHostPluginServiceServer) NormalizeCatalogData(context.Context, *NormalizeCatalogDataRequest) (*NormalizeCatalogDataResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method NormalizeCatalogData not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) OnCreateCatalog(context.Context, *OnCreateCatalogRequest) (*OnCreateCatalogResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method OnCreateCatalog not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) OnUpdateCatalog(context.Context, *OnUpdateCatalogRequest) (*OnUpdateCatalogResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method OnUpdateCatalog not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) OnDeleteCatalog(context.Context, *OnDeleteCatalogRequest) (*OnDeleteCatalogResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method OnDeleteCatalog not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) NormalizeSetData(context.Context, *NormalizeSetDataRequest) (*NormalizeSetDataResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method NormalizeSetData not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) OnCreateSet(context.Context, *OnCreateSetRequest) (*OnCreateSetResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method OnCreateSet not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) OnUpdateSet(context.Context, *OnUpdateSetRequest) (*OnUpdateSetResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method OnUpdateSet not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) OnDeleteSet(context.Context, *OnDeleteSetRequest) (*OnDeleteSetResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method OnDeleteSet not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) ListHosts(context.Context, *ListHostsRequest) (*ListHostsResponse, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method ListHosts not implemented")
|
|
}
|
|
func (UnimplementedHostPluginServiceServer) mustEmbedUnimplementedHostPluginServiceServer() {}
|
|
func (UnimplementedHostPluginServiceServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeHostPluginServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to HostPluginServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeHostPluginServiceServer interface {
|
|
mustEmbedUnimplementedHostPluginServiceServer()
|
|
}
|
|
|
|
func RegisterHostPluginServiceServer(s grpc.ServiceRegistrar, srv HostPluginServiceServer) {
|
|
// If the following call panics, it indicates UnimplementedHostPluginServiceServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&HostPluginService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _HostPluginService_NormalizeCatalogData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(NormalizeCatalogDataRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).NormalizeCatalogData(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_NormalizeCatalogData_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).NormalizeCatalogData(ctx, req.(*NormalizeCatalogDataRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_OnCreateCatalog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OnCreateCatalogRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).OnCreateCatalog(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_OnCreateCatalog_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).OnCreateCatalog(ctx, req.(*OnCreateCatalogRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_OnUpdateCatalog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OnUpdateCatalogRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).OnUpdateCatalog(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_OnUpdateCatalog_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).OnUpdateCatalog(ctx, req.(*OnUpdateCatalogRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_OnDeleteCatalog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OnDeleteCatalogRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).OnDeleteCatalog(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_OnDeleteCatalog_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).OnDeleteCatalog(ctx, req.(*OnDeleteCatalogRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_NormalizeSetData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(NormalizeSetDataRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).NormalizeSetData(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_NormalizeSetData_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).NormalizeSetData(ctx, req.(*NormalizeSetDataRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_OnCreateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OnCreateSetRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).OnCreateSet(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_OnCreateSet_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).OnCreateSet(ctx, req.(*OnCreateSetRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_OnUpdateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OnUpdateSetRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).OnUpdateSet(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_OnUpdateSet_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).OnUpdateSet(ctx, req.(*OnUpdateSetRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_OnDeleteSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(OnDeleteSetRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).OnDeleteSet(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_OnDeleteSet_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).OnDeleteSet(ctx, req.(*OnDeleteSetRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _HostPluginService_ListHosts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListHostsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HostPluginServiceServer).ListHosts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: HostPluginService_ListHosts_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HostPluginServiceServer).ListHosts(ctx, req.(*ListHostsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// HostPluginService_ServiceDesc is the grpc.ServiceDesc for HostPluginService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var HostPluginService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "plugin.v1.HostPluginService",
|
|
HandlerType: (*HostPluginServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "NormalizeCatalogData",
|
|
Handler: _HostPluginService_NormalizeCatalogData_Handler,
|
|
},
|
|
{
|
|
MethodName: "OnCreateCatalog",
|
|
Handler: _HostPluginService_OnCreateCatalog_Handler,
|
|
},
|
|
{
|
|
MethodName: "OnUpdateCatalog",
|
|
Handler: _HostPluginService_OnUpdateCatalog_Handler,
|
|
},
|
|
{
|
|
MethodName: "OnDeleteCatalog",
|
|
Handler: _HostPluginService_OnDeleteCatalog_Handler,
|
|
},
|
|
{
|
|
MethodName: "NormalizeSetData",
|
|
Handler: _HostPluginService_NormalizeSetData_Handler,
|
|
},
|
|
{
|
|
MethodName: "OnCreateSet",
|
|
Handler: _HostPluginService_OnCreateSet_Handler,
|
|
},
|
|
{
|
|
MethodName: "OnUpdateSet",
|
|
Handler: _HostPluginService_OnUpdateSet_Handler,
|
|
},
|
|
{
|
|
MethodName: "OnDeleteSet",
|
|
Handler: _HostPluginService_OnDeleteSet_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListHosts",
|
|
Handler: _HostPluginService_ListHosts_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "plugin/v1/host_plugin_service.proto",
|
|
}
|