mirror of https://github.com/grafana/grafana
prometheushacktoberfestmetricsmonitoringalertinggrafanagoinfluxdbmysqlpostgresanalyticsdata-visualizationdashboardbusiness-intelligenceelasticsearch
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.
712 lines
26 KiB
712 lines
26 KiB
![]()
1 year ago
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||
|
// versions:
|
||
![]()
4 months ago
|
// - protoc-gen-go-grpc v1.4.0
|
||
![]()
1 year ago
|
// - protoc (unknown)
|
||
|
// source: resource.proto
|
||
|
|
||
![]()
2 months ago
|
package resourcepb
|
||
![]()
1 year ago
|
|
||
|
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.
|
||
![]()
4 months ago
|
// Requires gRPC-Go v1.62.0 or later.
|
||
|
const _ = grpc.SupportPackageIsVersion8
|
||
![]()
1 year ago
|
|
||
|
const (
|
||
![]()
4 months ago
|
ResourceStore_Read_FullMethodName = "/resource.ResourceStore/Read"
|
||
|
ResourceStore_Create_FullMethodName = "/resource.ResourceStore/Create"
|
||
|
ResourceStore_Update_FullMethodName = "/resource.ResourceStore/Update"
|
||
|
ResourceStore_Delete_FullMethodName = "/resource.ResourceStore/Delete"
|
||
|
ResourceStore_List_FullMethodName = "/resource.ResourceStore/List"
|
||
|
ResourceStore_Watch_FullMethodName = "/resource.ResourceStore/Watch"
|
||
![]()
1 year ago
|
)
|
||
|
|
||
|
// ResourceStoreClient is the client API for ResourceStore 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.
|
||
|
//
|
||
|
// This provides the CRUD+List+Watch support needed for a k8s apiserver
|
||
|
// The semantics and behaviors of this service are constrained by kubernetes
|
||
|
// This does not understand the resource schemas, only deals with json bytes
|
||
|
// Clients should not use this interface directly; it is for use in API Servers
|
||
|
type ResourceStoreClient interface {
|
||
|
Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
|
||
|
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
|
||
|
Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
|
||
|
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
|
||
|
// The results *may* include values that should not be returned to the user
|
||
|
// This will perform best-effort filtering to increase performace.
|
||
|
// NOTE: storage.Interface is ultimatly responsible for the final filtering
|
||
|
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
||
|
// The results *may* include values that should not be returned to the user
|
||
|
// This will perform best-effort filtering to increase performace.
|
||
|
// NOTE: storage.Interface is ultimatly responsible for the final filtering
|
||
![]()
4 months ago
|
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (ResourceStore_WatchClient, error)
|
||
![]()
1 year ago
|
}
|
||
|
|
||
|
type resourceStoreClient struct {
|
||
|
cc grpc.ClientConnInterface
|
||
|
}
|
||
|
|
||
|
func NewResourceStoreClient(cc grpc.ClientConnInterface) ResourceStoreClient {
|
||
|
return &resourceStoreClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *resourceStoreClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) {
|
||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
|
out := new(ReadResponse)
|
||
|
err := c.cc.Invoke(ctx, ResourceStore_Read_FullMethodName, in, out, cOpts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *resourceStoreClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
|
||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
|
out := new(CreateResponse)
|
||
|
err := c.cc.Invoke(ctx, ResourceStore_Create_FullMethodName, in, out, cOpts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *resourceStoreClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) {
|
||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
|
out := new(UpdateResponse)
|
||
|
err := c.cc.Invoke(ctx, ResourceStore_Update_FullMethodName, in, out, cOpts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *resourceStoreClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
|
||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
|
out := new(DeleteResponse)
|
||
|
err := c.cc.Invoke(ctx, ResourceStore_Delete_FullMethodName, in, out, cOpts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *resourceStoreClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
|
||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
|
out := new(ListResponse)
|
||
|
err := c.cc.Invoke(ctx, ResourceStore_List_FullMethodName, in, out, cOpts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
func (c *resourceStoreClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (ResourceStore_WatchClient, error) {
|
||
![]()
1 year ago
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
|
stream, err := c.cc.NewStream(ctx, &ResourceStore_ServiceDesc.Streams[0], ResourceStore_Watch_FullMethodName, cOpts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
![]()
4 months ago
|
x := &resourceStoreWatchClient{ClientStream: stream}
|
||
![]()
1 year ago
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if err := x.ClientStream.CloseSend(); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return x, nil
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
type ResourceStore_WatchClient interface {
|
||
|
Recv() (*WatchEvent, error)
|
||
|
grpc.ClientStream
|
||
|
}
|
||
|
|
||
|
type resourceStoreWatchClient struct {
|
||
|
grpc.ClientStream
|
||
|
}
|
||
|
|
||
|
func (x *resourceStoreWatchClient) Recv() (*WatchEvent, error) {
|
||
|
m := new(WatchEvent)
|
||
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return m, nil
|
||
|
}
|
||
![]()
1 year ago
|
|
||
|
// ResourceStoreServer is the server API for ResourceStore service.
|
||
|
// All implementations should embed UnimplementedResourceStoreServer
|
||
![]()
4 months ago
|
// for forward compatibility
|
||
![]()
1 year ago
|
//
|
||
|
// This provides the CRUD+List+Watch support needed for a k8s apiserver
|
||
|
// The semantics and behaviors of this service are constrained by kubernetes
|
||
|
// This does not understand the resource schemas, only deals with json bytes
|
||
|
// Clients should not use this interface directly; it is for use in API Servers
|
||
|
type ResourceStoreServer interface {
|
||
|
Read(context.Context, *ReadRequest) (*ReadResponse, error)
|
||
|
Create(context.Context, *CreateRequest) (*CreateResponse, error)
|
||
|
Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
|
||
|
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
|
||
|
// The results *may* include values that should not be returned to the user
|
||
|
// This will perform best-effort filtering to increase performace.
|
||
|
// NOTE: storage.Interface is ultimatly responsible for the final filtering
|
||
|
List(context.Context, *ListRequest) (*ListResponse, error)
|
||
|
// The results *may* include values that should not be returned to the user
|
||
|
// This will perform best-effort filtering to increase performace.
|
||
|
// NOTE: storage.Interface is ultimatly responsible for the final filtering
|
||
![]()
4 months ago
|
Watch(*WatchRequest, ResourceStore_WatchServer) error
|
||
![]()
1 year ago
|
}
|
||
|
|
||
![]()
4 months ago
|
// UnimplementedResourceStoreServer should be embedded to have forward compatible implementations.
|
||
|
type UnimplementedResourceStoreServer struct {
|
||
|
}
|
||
![]()
1 year ago
|
|
||
|
func (UnimplementedResourceStoreServer) Read(context.Context, *ReadRequest) (*ReadResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
|
||
|
}
|
||
|
func (UnimplementedResourceStoreServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||
|
}
|
||
|
func (UnimplementedResourceStoreServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||
|
}
|
||
|
func (UnimplementedResourceStoreServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||
|
}
|
||
|
func (UnimplementedResourceStoreServer) List(context.Context, *ListRequest) (*ListResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||
|
}
|
||
![]()
4 months ago
|
func (UnimplementedResourceStoreServer) Watch(*WatchRequest, ResourceStore_WatchServer) error {
|
||
![]()
1 year ago
|
return status.Errorf(codes.Unimplemented, "method Watch not implemented")
|
||
|
}
|
||
|
|
||
|
// UnsafeResourceStoreServer may be embedded to opt out of forward compatibility for this service.
|
||
|
// Use of this interface is not recommended, as added methods to ResourceStoreServer will
|
||
|
// result in compilation errors.
|
||
|
type UnsafeResourceStoreServer interface {
|
||
|
mustEmbedUnimplementedResourceStoreServer()
|
||
|
}
|
||
|
|
||
|
func RegisterResourceStoreServer(s grpc.ServiceRegistrar, srv ResourceStoreServer) {
|
||
|
s.RegisterService(&ResourceStore_ServiceDesc, srv)
|
||
|
}
|
||
|
|
||
|
func _ResourceStore_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ReadRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(ResourceStoreServer).Read(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: ResourceStore_Read_FullMethodName,
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(ResourceStoreServer).Read(ctx, req.(*ReadRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _ResourceStore_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(CreateRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(ResourceStoreServer).Create(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: ResourceStore_Create_FullMethodName,
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(ResourceStoreServer).Create(ctx, req.(*CreateRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _ResourceStore_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(UpdateRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(ResourceStoreServer).Update(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: ResourceStore_Update_FullMethodName,
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(ResourceStoreServer).Update(ctx, req.(*UpdateRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _ResourceStore_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(DeleteRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(ResourceStoreServer).Delete(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: ResourceStore_Delete_FullMethodName,
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(ResourceStoreServer).Delete(ctx, req.(*DeleteRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _ResourceStore_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ListRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(ResourceStoreServer).List(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: ResourceStore_List_FullMethodName,
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(ResourceStoreServer).List(ctx, req.(*ListRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _ResourceStore_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||
|
m := new(WatchRequest)
|
||
|
if err := stream.RecvMsg(m); err != nil {
|
||
|
return err
|
||
|
}
|
||
![]()
4 months ago
|
return srv.(ResourceStoreServer).Watch(m, &resourceStoreWatchServer{ServerStream: stream})
|
||
|
}
|
||
|
|
||
|
type ResourceStore_WatchServer interface {
|
||
|
Send(*WatchEvent) error
|
||
|
grpc.ServerStream
|
||
|
}
|
||
|
|
||
|
type resourceStoreWatchServer struct {
|
||
|
grpc.ServerStream
|
||
![]()
7 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
func (x *resourceStoreWatchServer) Send(m *WatchEvent) error {
|
||
|
return x.ServerStream.SendMsg(m)
|
||
|
}
|
||
![]()
1 year ago
|
|
||
|
// ResourceStore_ServiceDesc is the grpc.ServiceDesc for ResourceStore service.
|
||
|
// It's only intended for direct use with grpc.RegisterService,
|
||
|
// and not to be introspected or modified (even as a copy)
|
||
|
var ResourceStore_ServiceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "resource.ResourceStore",
|
||
|
HandlerType: (*ResourceStoreServer)(nil),
|
||
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
|
MethodName: "Read",
|
||
|
Handler: _ResourceStore_Read_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "Create",
|
||
|
Handler: _ResourceStore_Create_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "Update",
|
||
|
Handler: _ResourceStore_Update_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "Delete",
|
||
|
Handler: _ResourceStore_Delete_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "List",
|
||
|
Handler: _ResourceStore_List_Handler,
|
||
|
},
|
||
|
},
|
||
|
Streams: []grpc.StreamDesc{
|
||
|
{
|
||
|
StreamName: "Watch",
|
||
|
Handler: _ResourceStore_Watch_Handler,
|
||
|
ServerStreams: true,
|
||
|
},
|
||
|
},
|
||
|
Metadata: "resource.proto",
|
||
|
}
|
||
|
|
||
![]()
5 months ago
|
const (
|
||
![]()
5 months ago
|
BulkStore_BulkProcess_FullMethodName = "/resource.BulkStore/BulkProcess"
|
||
![]()
5 months ago
|
)
|
||
|
|
||
![]()
5 months ago
|
// BulkStoreClient is the client API for BulkStore service.
|
||
![]()
5 months ago
|
//
|
||
|
// 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.
|
||
![]()
5 months ago
|
type BulkStoreClient interface {
|
||
![]()
5 months ago
|
// Write multiple resources to the same Namespace/Group/Resource
|
||
|
// Events will not be sent until the stream is complete
|
||
|
// Only the *create* permissions is checked
|
||
![]()
4 months ago
|
BulkProcess(ctx context.Context, opts ...grpc.CallOption) (BulkStore_BulkProcessClient, error)
|
||
![]()
5 months ago
|
}
|
||
|
|
||
![]()
5 months ago
|
type bulkStoreClient struct {
|
||
![]()
5 months ago
|
cc grpc.ClientConnInterface
|
||
|
}
|
||
|
|
||
![]()
5 months ago
|
func NewBulkStoreClient(cc grpc.ClientConnInterface) BulkStoreClient {
|
||
|
return &bulkStoreClient{cc}
|
||
![]()
5 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
func (c *bulkStoreClient) BulkProcess(ctx context.Context, opts ...grpc.CallOption) (BulkStore_BulkProcessClient, error) {
|
||
![]()
5 months ago
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
![]()
5 months ago
|
stream, err := c.cc.NewStream(ctx, &BulkStore_ServiceDesc.Streams[0], BulkStore_BulkProcess_FullMethodName, cOpts...)
|
||
![]()
5 months ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
![]()
4 months ago
|
x := &bulkStoreBulkProcessClient{ClientStream: stream}
|
||
![]()
5 months ago
|
return x, nil
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
type BulkStore_BulkProcessClient interface {
|
||
|
Send(*BulkRequest) error
|
||
|
CloseAndRecv() (*BulkResponse, error)
|
||
|
grpc.ClientStream
|
||
|
}
|
||
|
|
||
|
type bulkStoreBulkProcessClient struct {
|
||
|
grpc.ClientStream
|
||
|
}
|
||
|
|
||
|
func (x *bulkStoreBulkProcessClient) Send(m *BulkRequest) error {
|
||
|
return x.ClientStream.SendMsg(m)
|
||
|
}
|
||
|
|
||
|
func (x *bulkStoreBulkProcessClient) CloseAndRecv() (*BulkResponse, error) {
|
||
|
if err := x.ClientStream.CloseSend(); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
m := new(BulkResponse)
|
||
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return m, nil
|
||
|
}
|
||
![]()
5 months ago
|
|
||
![]()
5 months ago
|
// BulkStoreServer is the server API for BulkStore service.
|
||
|
// All implementations should embed UnimplementedBulkStoreServer
|
||
![]()
4 months ago
|
// for forward compatibility
|
||
![]()
5 months ago
|
type BulkStoreServer interface {
|
||
![]()
5 months ago
|
// Write multiple resources to the same Namespace/Group/Resource
|
||
|
// Events will not be sent until the stream is complete
|
||
|
// Only the *create* permissions is checked
|
||
![]()
4 months ago
|
BulkProcess(BulkStore_BulkProcessServer) error
|
||
![]()
5 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
// UnimplementedBulkStoreServer should be embedded to have forward compatible implementations.
|
||
|
type UnimplementedBulkStoreServer struct {
|
||
|
}
|
||
![]()
5 months ago
|
|
||
![]()
4 months ago
|
func (UnimplementedBulkStoreServer) BulkProcess(BulkStore_BulkProcessServer) error {
|
||
![]()
5 months ago
|
return status.Errorf(codes.Unimplemented, "method BulkProcess not implemented")
|
||
![]()
5 months ago
|
}
|
||
|
|
||
![]()
5 months ago
|
// UnsafeBulkStoreServer may be embedded to opt out of forward compatibility for this service.
|
||
|
// Use of this interface is not recommended, as added methods to BulkStoreServer will
|
||
![]()
5 months ago
|
// result in compilation errors.
|
||
![]()
5 months ago
|
type UnsafeBulkStoreServer interface {
|
||
|
mustEmbedUnimplementedBulkStoreServer()
|
||
![]()
5 months ago
|
}
|
||
|
|
||
![]()
5 months ago
|
func RegisterBulkStoreServer(s grpc.ServiceRegistrar, srv BulkStoreServer) {
|
||
|
s.RegisterService(&BulkStore_ServiceDesc, srv)
|
||
![]()
5 months ago
|
}
|
||
|
|
||
![]()
5 months ago
|
func _BulkStore_BulkProcess_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||
![]()
4 months ago
|
return srv.(BulkStoreServer).BulkProcess(&bulkStoreBulkProcessServer{ServerStream: stream})
|
||
![]()
5 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
type BulkStore_BulkProcessServer interface {
|
||
|
SendAndClose(*BulkResponse) error
|
||
|
Recv() (*BulkRequest, error)
|
||
|
grpc.ServerStream
|
||
|
}
|
||
|
|
||
|
type bulkStoreBulkProcessServer struct {
|
||
|
grpc.ServerStream
|
||
|
}
|
||
|
|
||
|
func (x *bulkStoreBulkProcessServer) SendAndClose(m *BulkResponse) error {
|
||
|
return x.ServerStream.SendMsg(m)
|
||
|
}
|
||
|
|
||
|
func (x *bulkStoreBulkProcessServer) Recv() (*BulkRequest, error) {
|
||
|
m := new(BulkRequest)
|
||
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return m, nil
|
||
|
}
|
||
![]()
5 months ago
|
|
||
![]()
5 months ago
|
// BulkStore_ServiceDesc is the grpc.ServiceDesc for BulkStore service.
|
||
![]()
5 months ago
|
// It's only intended for direct use with grpc.RegisterService,
|
||
|
// and not to be introspected or modified (even as a copy)
|
||
![]()
5 months ago
|
var BulkStore_ServiceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "resource.BulkStore",
|
||
|
HandlerType: (*BulkStoreServer)(nil),
|
||
![]()
5 months ago
|
Methods: []grpc.MethodDesc{},
|
||
|
Streams: []grpc.StreamDesc{
|
||
|
{
|
||
![]()
5 months ago
|
StreamName: "BulkProcess",
|
||
|
Handler: _BulkStore_BulkProcess_Handler,
|
||
![]()
5 months ago
|
ClientStreams: true,
|
||
|
},
|
||
|
},
|
||
|
Metadata: "resource.proto",
|
||
|
}
|
||
|
|
||
![]()
6 months ago
|
const (
|
||
![]()
4 months ago
|
ManagedObjectIndex_CountManagedObjects_FullMethodName = "/resource.ManagedObjectIndex/CountManagedObjects"
|
||
|
ManagedObjectIndex_ListManagedObjects_FullMethodName = "/resource.ManagedObjectIndex/ListManagedObjects"
|
||
![]()
6 months ago
|
)
|
||
|
|
||
![]()
4 months ago
|
// ManagedObjectIndexClient is the client API for ManagedObjectIndex service.
|
||
![]()
6 months ago
|
//
|
||
|
// 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.
|
||
|
//
|
||
![]()
4 months ago
|
// Query managed objects
|
||
![]()
6 months ago
|
// Results access control is based on access to the repository *not* the items
|
||
![]()
4 months ago
|
type ManagedObjectIndexClient interface {
|
||
![]()
6 months ago
|
// Describe how many resources of each type exist within a repository
|
||
![]()
4 months ago
|
CountManagedObjects(ctx context.Context, in *CountManagedObjectsRequest, opts ...grpc.CallOption) (*CountManagedObjectsResponse, error)
|
||
![]()
6 months ago
|
// List the resources of a specific kind within a repository
|
||
![]()
4 months ago
|
ListManagedObjects(ctx context.Context, in *ListManagedObjectsRequest, opts ...grpc.CallOption) (*ListManagedObjectsResponse, error)
|
||
![]()
6 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
type managedObjectIndexClient struct {
|
||
![]()
6 months ago
|
cc grpc.ClientConnInterface
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
func NewManagedObjectIndexClient(cc grpc.ClientConnInterface) ManagedObjectIndexClient {
|
||
|
return &managedObjectIndexClient{cc}
|
||
![]()
6 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
func (c *managedObjectIndexClient) CountManagedObjects(ctx context.Context, in *CountManagedObjectsRequest, opts ...grpc.CallOption) (*CountManagedObjectsResponse, error) {
|
||
![]()
6 months ago
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
![]()
4 months ago
|
out := new(CountManagedObjectsResponse)
|
||
|
err := c.cc.Invoke(ctx, ManagedObjectIndex_CountManagedObjects_FullMethodName, in, out, cOpts...)
|
||
![]()
6 months ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
func (c *managedObjectIndexClient) ListManagedObjects(ctx context.Context, in *ListManagedObjectsRequest, opts ...grpc.CallOption) (*ListManagedObjectsResponse, error) {
|
||
![]()
6 months ago
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
![]()
4 months ago
|
out := new(ListManagedObjectsResponse)
|
||
|
err := c.cc.Invoke(ctx, ManagedObjectIndex_ListManagedObjects_FullMethodName, in, out, cOpts...)
|
||
![]()
6 months ago
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
// ManagedObjectIndexServer is the server API for ManagedObjectIndex service.
|
||
|
// All implementations should embed UnimplementedManagedObjectIndexServer
|
||
![]()
4 months ago
|
// for forward compatibility
|
||
![]()
6 months ago
|
//
|
||
![]()
4 months ago
|
// Query managed objects
|
||
![]()
6 months ago
|
// Results access control is based on access to the repository *not* the items
|
||
![]()
4 months ago
|
type ManagedObjectIndexServer interface {
|
||
![]()
6 months ago
|
// Describe how many resources of each type exist within a repository
|
||
![]()
4 months ago
|
CountManagedObjects(context.Context, *CountManagedObjectsRequest) (*CountManagedObjectsResponse, error)
|
||
![]()
6 months ago
|
// List the resources of a specific kind within a repository
|
||
![]()
4 months ago
|
ListManagedObjects(context.Context, *ListManagedObjectsRequest) (*ListManagedObjectsResponse, error)
|
||
![]()
6 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
// UnimplementedManagedObjectIndexServer should be embedded to have forward compatible implementations.
|
||
|
type UnimplementedManagedObjectIndexServer struct {
|
||
|
}
|
||
![]()
6 months ago
|
|
||
![]()
4 months ago
|
func (UnimplementedManagedObjectIndexServer) CountManagedObjects(context.Context, *CountManagedObjectsRequest) (*CountManagedObjectsResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method CountManagedObjects not implemented")
|
||
![]()
6 months ago
|
}
|
||
![]()
4 months ago
|
func (UnimplementedManagedObjectIndexServer) ListManagedObjects(context.Context, *ListManagedObjectsRequest) (*ListManagedObjectsResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method ListManagedObjects not implemented")
|
||
![]()
6 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
// UnsafeManagedObjectIndexServer may be embedded to opt out of forward compatibility for this service.
|
||
|
// Use of this interface is not recommended, as added methods to ManagedObjectIndexServer will
|
||
![]()
6 months ago
|
// result in compilation errors.
|
||
![]()
4 months ago
|
type UnsafeManagedObjectIndexServer interface {
|
||
|
mustEmbedUnimplementedManagedObjectIndexServer()
|
||
![]()
6 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
func RegisterManagedObjectIndexServer(s grpc.ServiceRegistrar, srv ManagedObjectIndexServer) {
|
||
|
s.RegisterService(&ManagedObjectIndex_ServiceDesc, srv)
|
||
![]()
6 months ago
|
}
|
||
|
|
||
![]()
4 months ago
|
func _ManagedObjectIndex_CountManagedObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(CountManagedObjectsRequest)
|
||
![]()
6 months ago
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
![]()
4 months ago
|
return srv.(ManagedObjectIndexServer).CountManagedObjects(ctx, in)
|
||
![]()
6 months ago
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
![]()
4 months ago
|
FullMethod: ManagedObjectIndex_CountManagedObjects_FullMethodName,
|
||
![]()
6 months ago
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
![]()
4 months ago
|
return srv.(ManagedObjectIndexServer).CountManagedObjects(ctx, req.(*CountManagedObjectsRequest))
|
||
![]()
6 months ago
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
func _ManagedObjectIndex_ListManagedObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ListManagedObjectsRequest)
|
||
![]()
6 months ago
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
![]()
4 months ago
|
return srv.(ManagedObjectIndexServer).ListManagedObjects(ctx, in)
|
||
![]()
6 months ago
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
![]()
4 months ago
|
FullMethod: ManagedObjectIndex_ListManagedObjects_FullMethodName,
|
||
![]()
6 months ago
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
![]()
4 months ago
|
return srv.(ManagedObjectIndexServer).ListManagedObjects(ctx, req.(*ListManagedObjectsRequest))
|
||
![]()
6 months ago
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
// ManagedObjectIndex_ServiceDesc is the grpc.ServiceDesc for ManagedObjectIndex service.
|
||
![]()
6 months ago
|
// It's only intended for direct use with grpc.RegisterService,
|
||
|
// and not to be introspected or modified (even as a copy)
|
||
![]()
4 months ago
|
var ManagedObjectIndex_ServiceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "resource.ManagedObjectIndex",
|
||
|
HandlerType: (*ManagedObjectIndexServer)(nil),
|
||
![]()
6 months ago
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
![]()
4 months ago
|
MethodName: "CountManagedObjects",
|
||
|
Handler: _ManagedObjectIndex_CountManagedObjects_Handler,
|
||
![]()
6 months ago
|
},
|
||
![]()
1 year ago
|
{
|
||
![]()
4 months ago
|
MethodName: "ListManagedObjects",
|
||
|
Handler: _ManagedObjectIndex_ListManagedObjects_Handler,
|
||
![]()
1 year ago
|
},
|
||
|
},
|
||
|
Streams: []grpc.StreamDesc{},
|
||
|
Metadata: "resource.proto",
|
||
|
}
|
||
|
|
||
![]()
1 year ago
|
const (
|
||
|
Diagnostics_IsHealthy_FullMethodName = "/resource.Diagnostics/IsHealthy"
|
||
|
)
|
||
|
|
||
|
// DiagnosticsClient is the client API for Diagnostics 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.
|
||
|
//
|
||
|
// Clients can use this service directly
|
||
|
// NOTE: This is read only, and no read afer write guarantees
|
||
|
type DiagnosticsClient interface {
|
||
|
// Check if the service is healthy
|
||
|
IsHealthy(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
|
||
|
}
|
||
|
|
||
|
type diagnosticsClient struct {
|
||
|
cc grpc.ClientConnInterface
|
||
|
}
|
||
|
|
||
|
func NewDiagnosticsClient(cc grpc.ClientConnInterface) DiagnosticsClient {
|
||
|
return &diagnosticsClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *diagnosticsClient) IsHealthy(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) {
|
||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||
|
out := new(HealthCheckResponse)
|
||
|
err := c.cc.Invoke(ctx, Diagnostics_IsHealthy_FullMethodName, in, out, cOpts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
// DiagnosticsServer is the server API for Diagnostics service.
|
||
|
// All implementations should embed UnimplementedDiagnosticsServer
|
||
![]()
4 months ago
|
// for forward compatibility
|
||
![]()
1 year ago
|
//
|
||
|
// Clients can use this service directly
|
||
|
// NOTE: This is read only, and no read afer write guarantees
|
||
|
type DiagnosticsServer interface {
|
||
|
// Check if the service is healthy
|
||
|
IsHealthy(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
|
||
|
}
|
||
|
|
||
![]()
4 months ago
|
// UnimplementedDiagnosticsServer should be embedded to have forward compatible implementations.
|
||
|
type UnimplementedDiagnosticsServer struct {
|
||
|
}
|
||
![]()
1 year ago
|
|
||
|
func (UnimplementedDiagnosticsServer) IsHealthy(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method IsHealthy not implemented")
|
||
|
}
|
||
|
|
||
|
// UnsafeDiagnosticsServer may be embedded to opt out of forward compatibility for this service.
|
||
|
// Use of this interface is not recommended, as added methods to DiagnosticsServer will
|
||
|
// result in compilation errors.
|
||
|
type UnsafeDiagnosticsServer interface {
|
||
|
mustEmbedUnimplementedDiagnosticsServer()
|
||
|
}
|
||
|
|
||
|
func RegisterDiagnosticsServer(s grpc.ServiceRegistrar, srv DiagnosticsServer) {
|
||
|
s.RegisterService(&Diagnostics_ServiceDesc, srv)
|
||
|
}
|
||
|
|
||
|
func _Diagnostics_IsHealthy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(HealthCheckRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(DiagnosticsServer).IsHealthy(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: Diagnostics_IsHealthy_FullMethodName,
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(DiagnosticsServer).IsHealthy(ctx, req.(*HealthCheckRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
// Diagnostics_ServiceDesc is the grpc.ServiceDesc for Diagnostics service.
|
||
|
// It's only intended for direct use with grpc.RegisterService,
|
||
|
// and not to be introspected or modified (even as a copy)
|
||
|
var Diagnostics_ServiceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "resource.Diagnostics",
|
||
|
HandlerType: (*DiagnosticsServer)(nil),
|
||
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
|
MethodName: "IsHealthy",
|
||
|
Handler: _Diagnostics_IsHealthy_Handler,
|
||
|
},
|
||
|
},
|
||
|
Streams: []grpc.StreamDesc{},
|
||
|
Metadata: "resource.proto",
|
||
|
}
|