2024-08-30 12:21:15 +01:00
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2025-05-23 09:42:26 -07:00
// - protoc-gen-go-grpc v1.5.1
2024-08-30 12:21:15 +01:00
// - protoc (unknown)
// source: worker/servers/services/v1/host_service.proto
package services
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.
2025-05-23 09:42:26 -07:00
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
2024-08-30 12:21:15 +01:00
const (
HostService_NormalizeCatalogData_FullMethodName = "/worker.servers.services.v1.HostService/NormalizeCatalogData"
HostService_OnCreateCatalog_FullMethodName = "/worker.servers.services.v1.HostService/OnCreateCatalog"
HostService_OnUpdateCatalog_FullMethodName = "/worker.servers.services.v1.HostService/OnUpdateCatalog"
HostService_OnDeleteCatalog_FullMethodName = "/worker.servers.services.v1.HostService/OnDeleteCatalog"
HostService_NormalizeSetData_FullMethodName = "/worker.servers.services.v1.HostService/NormalizeSetData"
HostService_OnCreateSet_FullMethodName = "/worker.servers.services.v1.HostService/OnCreateSet"
HostService_OnUpdateSet_FullMethodName = "/worker.servers.services.v1.HostService/OnUpdateSet"
HostService_OnDeleteSet_FullMethodName = "/worker.servers.services.v1.HostService/OnDeleteSet"
HostService_ListHosts_FullMethodName = "/worker.servers.services.v1.HostService/ListHosts"
)
// HostServiceClient is the client API for HostService 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.
2025-05-23 09:42:26 -07:00
//
// HostService describes the service for host plugins.
2024-08-30 12:21:15 +01:00
type HostServiceClient 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 hostServiceClient struct {
cc grpc . ClientConnInterface
}
func NewHostServiceClient ( cc grpc . ClientConnInterface ) HostServiceClient {
return & hostServiceClient { cc }
}
func ( c * hostServiceClient ) NormalizeCatalogData ( ctx context . Context , in * NormalizeCatalogDataRequest , opts ... grpc . CallOption ) ( * NormalizeCatalogDataResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( NormalizeCatalogDataResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_NormalizeCatalogData_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) OnCreateCatalog ( ctx context . Context , in * OnCreateCatalogRequest , opts ... grpc . CallOption ) ( * OnCreateCatalogResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( OnCreateCatalogResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_OnCreateCatalog_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) OnUpdateCatalog ( ctx context . Context , in * OnUpdateCatalogRequest , opts ... grpc . CallOption ) ( * OnUpdateCatalogResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( OnUpdateCatalogResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_OnUpdateCatalog_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) OnDeleteCatalog ( ctx context . Context , in * OnDeleteCatalogRequest , opts ... grpc . CallOption ) ( * OnDeleteCatalogResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( OnDeleteCatalogResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_OnDeleteCatalog_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) NormalizeSetData ( ctx context . Context , in * NormalizeSetDataRequest , opts ... grpc . CallOption ) ( * NormalizeSetDataResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( NormalizeSetDataResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_NormalizeSetData_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) OnCreateSet ( ctx context . Context , in * OnCreateSetRequest , opts ... grpc . CallOption ) ( * OnCreateSetResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( OnCreateSetResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_OnCreateSet_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) OnUpdateSet ( ctx context . Context , in * OnUpdateSetRequest , opts ... grpc . CallOption ) ( * OnUpdateSetResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( OnUpdateSetResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_OnUpdateSet_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) OnDeleteSet ( ctx context . Context , in * OnDeleteSetRequest , opts ... grpc . CallOption ) ( * OnDeleteSetResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( OnDeleteSetResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_OnDeleteSet_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hostServiceClient ) ListHosts ( ctx context . Context , in * ListHostsRequest , opts ... grpc . CallOption ) ( * ListHostsResponse , error ) {
2025-05-23 09:42:26 -07:00
cOpts := append ([] grpc . CallOption { grpc . StaticMethod ()}, opts ... )
2024-08-30 12:21:15 +01:00
out := new ( ListHostsResponse )
2025-05-23 09:42:26 -07:00
err := c . cc . Invoke ( ctx , HostService_ListHosts_FullMethodName , in , out , cOpts ... )
2024-08-30 12:21:15 +01:00
if err != nil {
return nil , err
}
return out , nil
}
// HostServiceServer is the server API for HostService service.
// All implementations must embed UnimplementedHostServiceServer
2025-05-23 09:42:26 -07:00
// for forward compatibility.
//
// HostService describes the service for host plugins.
2024-08-30 12:21:15 +01:00
type HostServiceServer 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 )
mustEmbedUnimplementedHostServiceServer ()
}
2025-05-23 09:42:26 -07:00
// UnimplementedHostServiceServer 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 UnimplementedHostServiceServer struct {}
2024-08-30 12:21:15 +01:00
func ( UnimplementedHostServiceServer ) NormalizeCatalogData ( context . Context , * NormalizeCatalogDataRequest ) ( * NormalizeCatalogDataResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method NormalizeCatalogData not implemented" )
}
func ( UnimplementedHostServiceServer ) OnCreateCatalog ( context . Context , * OnCreateCatalogRequest ) ( * OnCreateCatalogResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OnCreateCatalog not implemented" )
}
func ( UnimplementedHostServiceServer ) OnUpdateCatalog ( context . Context , * OnUpdateCatalogRequest ) ( * OnUpdateCatalogResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OnUpdateCatalog not implemented" )
}
func ( UnimplementedHostServiceServer ) OnDeleteCatalog ( context . Context , * OnDeleteCatalogRequest ) ( * OnDeleteCatalogResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OnDeleteCatalog not implemented" )
}
func ( UnimplementedHostServiceServer ) NormalizeSetData ( context . Context , * NormalizeSetDataRequest ) ( * NormalizeSetDataResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method NormalizeSetData not implemented" )
}
func ( UnimplementedHostServiceServer ) OnCreateSet ( context . Context , * OnCreateSetRequest ) ( * OnCreateSetResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OnCreateSet not implemented" )
}
func ( UnimplementedHostServiceServer ) OnUpdateSet ( context . Context , * OnUpdateSetRequest ) ( * OnUpdateSetResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OnUpdateSet not implemented" )
}
func ( UnimplementedHostServiceServer ) OnDeleteSet ( context . Context , * OnDeleteSetRequest ) ( * OnDeleteSetResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OnDeleteSet not implemented" )
}
func ( UnimplementedHostServiceServer ) ListHosts ( context . Context , * ListHostsRequest ) ( * ListHostsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListHosts not implemented" )
}
func ( UnimplementedHostServiceServer ) mustEmbedUnimplementedHostServiceServer () {}
2025-05-23 09:42:26 -07:00
func ( UnimplementedHostServiceServer ) testEmbeddedByValue () {}
2024-08-30 12:21:15 +01:00
// UnsafeHostServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to HostServiceServer will
// result in compilation errors.
type UnsafeHostServiceServer interface {
mustEmbedUnimplementedHostServiceServer ()
}
func RegisterHostServiceServer ( s grpc . ServiceRegistrar , srv HostServiceServer ) {
2025-05-23 09:42:26 -07:00
// If the following call pancis, it indicates UnimplementedHostServiceServer 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 ()
}
2024-08-30 12:21:15 +01:00
s . RegisterService ( & HostService_ServiceDesc , srv )
}
func _HostService_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 .( HostServiceServer ). NormalizeCatalogData ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_NormalizeCatalogData_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). NormalizeCatalogData ( ctx , req .( * NormalizeCatalogDataRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). OnCreateCatalog ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_OnCreateCatalog_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). OnCreateCatalog ( ctx , req .( * OnCreateCatalogRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). OnUpdateCatalog ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_OnUpdateCatalog_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). OnUpdateCatalog ( ctx , req .( * OnUpdateCatalogRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). OnDeleteCatalog ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_OnDeleteCatalog_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). OnDeleteCatalog ( ctx , req .( * OnDeleteCatalogRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). NormalizeSetData ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_NormalizeSetData_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). NormalizeSetData ( ctx , req .( * NormalizeSetDataRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). OnCreateSet ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_OnCreateSet_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). OnCreateSet ( ctx , req .( * OnCreateSetRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). OnUpdateSet ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_OnUpdateSet_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). OnUpdateSet ( ctx , req .( * OnUpdateSetRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). OnDeleteSet ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_OnDeleteSet_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). OnDeleteSet ( ctx , req .( * OnDeleteSetRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _HostService_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 .( HostServiceServer ). ListHosts ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : HostService_ListHosts_FullMethodName ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( HostServiceServer ). ListHosts ( ctx , req .( * ListHostsRequest ))
}
return interceptor ( ctx , in , info , handler )
}
// HostService_ServiceDesc is the grpc.ServiceDesc for HostService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var HostService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "worker.servers.services.v1.HostService" ,
HandlerType : ( * HostServiceServer )( nil ),
Methods : [] grpc . MethodDesc {
{
MethodName : "NormalizeCatalogData" ,
Handler : _HostService_NormalizeCatalogData_Handler ,
},
{
MethodName : "OnCreateCatalog" ,
Handler : _HostService_OnCreateCatalog_Handler ,
},
{
MethodName : "OnUpdateCatalog" ,
Handler : _HostService_OnUpdateCatalog_Handler ,
},
{
MethodName : "OnDeleteCatalog" ,
Handler : _HostService_OnDeleteCatalog_Handler ,
},
{
MethodName : "NormalizeSetData" ,
Handler : _HostService_NormalizeSetData_Handler ,
},
{
MethodName : "OnCreateSet" ,
Handler : _HostService_OnCreateSet_Handler ,
},
{
MethodName : "OnUpdateSet" ,
Handler : _HostService_OnUpdateSet_Handler ,
},
{
MethodName : "OnDeleteSet" ,
Handler : _HostService_OnDeleteSet_Handler ,
},
{
MethodName : "ListHosts" ,
Handler : _HostService_ListHosts_Handler ,
},
},
Streams : [] grpc . StreamDesc {},
Metadata : "worker/servers/services/v1/host_service.proto" ,
}