2022-12-09 16:57:35 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package meta
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.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
// HCPLinkMetaClient is the client API for HCPLinkMeta 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.
type HCPLinkMetaClient interface {
// ListNamespaces will be used to recursively list all namespaces
ListNamespaces ( ctx context . Context , in * ListNamespacesRequest , opts ... grpc . CallOption ) ( * ListNamespacesResponse , error )
// ListMounts will be used to recursively list all mounts in all namespaces
ListMounts ( ctx context . Context , in * ListMountsRequest , opts ... grpc . CallOption ) ( * ListMountsResponse , error )
// ListAuths will be used to recursively list all auths in all namespaces
ListAuths ( ctx context . Context , in * ListAuthsRequest , opts ... grpc . CallOption ) ( * ListAuthResponse , error )
2023-01-05 18:33:08 +00:00
// GetClusterStatus will provide various cluster-level information
GetClusterStatus ( ctx context . Context , in * GetClusterStatusRequest , opts ... grpc . CallOption ) ( * GetClusterStatusResponse , error )
2022-12-09 16:57:35 +00:00
}
type hCPLinkMetaClient struct {
cc grpc . ClientConnInterface
}
func NewHCPLinkMetaClient ( cc grpc . ClientConnInterface ) HCPLinkMetaClient {
return & hCPLinkMetaClient { cc }
}
func ( c * hCPLinkMetaClient ) ListNamespaces ( ctx context . Context , in * ListNamespacesRequest , opts ... grpc . CallOption ) ( * ListNamespacesResponse , error ) {
out := new ( ListNamespacesResponse )
err := c . cc . Invoke ( ctx , "/meta.HCPLinkMeta/ListNamespaces" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hCPLinkMetaClient ) ListMounts ( ctx context . Context , in * ListMountsRequest , opts ... grpc . CallOption ) ( * ListMountsResponse , error ) {
out := new ( ListMountsResponse )
err := c . cc . Invoke ( ctx , "/meta.HCPLinkMeta/ListMounts" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * hCPLinkMetaClient ) ListAuths ( ctx context . Context , in * ListAuthsRequest , opts ... grpc . CallOption ) ( * ListAuthResponse , error ) {
out := new ( ListAuthResponse )
err := c . cc . Invoke ( ctx , "/meta.HCPLinkMeta/ListAuths" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-01-05 18:33:08 +00:00
func ( c * hCPLinkMetaClient ) GetClusterStatus ( ctx context . Context , in * GetClusterStatusRequest , opts ... grpc . CallOption ) ( * GetClusterStatusResponse , error ) {
out := new ( GetClusterStatusResponse )
err := c . cc . Invoke ( ctx , "/meta.HCPLinkMeta/GetClusterStatus" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-12-09 16:57:35 +00:00
// HCPLinkMetaServer is the server API for HCPLinkMeta service.
// All implementations must embed UnimplementedHCPLinkMetaServer
// for forward compatibility
type HCPLinkMetaServer interface {
// ListNamespaces will be used to recursively list all namespaces
ListNamespaces ( context . Context , * ListNamespacesRequest ) ( * ListNamespacesResponse , error )
// ListMounts will be used to recursively list all mounts in all namespaces
ListMounts ( context . Context , * ListMountsRequest ) ( * ListMountsResponse , error )
// ListAuths will be used to recursively list all auths in all namespaces
ListAuths ( context . Context , * ListAuthsRequest ) ( * ListAuthResponse , error )
2023-01-05 18:33:08 +00:00
// GetClusterStatus will provide various cluster-level information
GetClusterStatus ( context . Context , * GetClusterStatusRequest ) ( * GetClusterStatusResponse , error )
2022-12-09 16:57:35 +00:00
mustEmbedUnimplementedHCPLinkMetaServer ( )
}
// UnimplementedHCPLinkMetaServer must be embedded to have forward compatible implementations.
type UnimplementedHCPLinkMetaServer struct {
}
func ( UnimplementedHCPLinkMetaServer ) ListNamespaces ( context . Context , * ListNamespacesRequest ) ( * ListNamespacesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListNamespaces not implemented" )
}
func ( UnimplementedHCPLinkMetaServer ) ListMounts ( context . Context , * ListMountsRequest ) ( * ListMountsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListMounts not implemented" )
}
func ( UnimplementedHCPLinkMetaServer ) ListAuths ( context . Context , * ListAuthsRequest ) ( * ListAuthResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListAuths not implemented" )
}
2023-01-05 18:33:08 +00:00
func ( UnimplementedHCPLinkMetaServer ) GetClusterStatus ( context . Context , * GetClusterStatusRequest ) ( * GetClusterStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetClusterStatus not implemented" )
}
2022-12-09 16:57:35 +00:00
func ( UnimplementedHCPLinkMetaServer ) mustEmbedUnimplementedHCPLinkMetaServer ( ) { }
// UnsafeHCPLinkMetaServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to HCPLinkMetaServer will
// result in compilation errors.
type UnsafeHCPLinkMetaServer interface {
mustEmbedUnimplementedHCPLinkMetaServer ( )
}
func RegisterHCPLinkMetaServer ( s grpc . ServiceRegistrar , srv HCPLinkMetaServer ) {
s . RegisterService ( & HCPLinkMeta_ServiceDesc , srv )
}
func _HCPLinkMeta_ListNamespaces_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListNamespacesRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HCPLinkMetaServer ) . ListNamespaces ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/meta.HCPLinkMeta/ListNamespaces" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HCPLinkMetaServer ) . ListNamespaces ( ctx , req . ( * ListNamespacesRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HCPLinkMeta_ListMounts_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListMountsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HCPLinkMetaServer ) . ListMounts ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/meta.HCPLinkMeta/ListMounts" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HCPLinkMetaServer ) . ListMounts ( ctx , req . ( * ListMountsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _HCPLinkMeta_ListAuths_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListAuthsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HCPLinkMetaServer ) . ListAuths ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/meta.HCPLinkMeta/ListAuths" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HCPLinkMetaServer ) . ListAuths ( ctx , req . ( * ListAuthsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-01-05 18:33:08 +00:00
func _HCPLinkMeta_GetClusterStatus_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetClusterStatusRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( HCPLinkMetaServer ) . GetClusterStatus ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/meta.HCPLinkMeta/GetClusterStatus" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( HCPLinkMetaServer ) . GetClusterStatus ( ctx , req . ( * GetClusterStatusRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-12-09 16:57:35 +00:00
// HCPLinkMeta_ServiceDesc is the grpc.ServiceDesc for HCPLinkMeta service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var HCPLinkMeta_ServiceDesc = grpc . ServiceDesc {
ServiceName : "meta.HCPLinkMeta" ,
HandlerType : ( * HCPLinkMetaServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "ListNamespaces" ,
Handler : _HCPLinkMeta_ListNamespaces_Handler ,
} ,
{
MethodName : "ListMounts" ,
Handler : _HCPLinkMeta_ListMounts_Handler ,
} ,
{
MethodName : "ListAuths" ,
Handler : _HCPLinkMeta_ListAuths_Handler ,
} ,
2023-01-05 18:33:08 +00:00
{
MethodName : "GetClusterStatus" ,
Handler : _HCPLinkMeta_GetClusterStatus_Handler ,
} ,
2022-12-09 16:57:35 +00:00
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "vault/hcp_link/proto/meta/meta.proto" ,
}