entitycachev1

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package entitycachev1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var EntityCacheService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aperture.common.entitycache.v1.EntityCacheService",
	HandlerType: (*EntityCacheServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetServicesList",
			Handler:    _EntityCacheService_GetServicesList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aperture/common/entitycache/v1/entitycache.proto",
}

EntityCacheService_ServiceDesc is the grpc.ServiceDesc for EntityCacheService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_aperture_common_entitycache_v1_entitycache_proto protoreflect.FileDescriptor

Functions

func RegisterEntityCacheServiceHandler added in v0.1.2

func RegisterEntityCacheServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEntityCacheServiceHandler registers the http handlers for service EntityCacheService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEntityCacheServiceHandlerClient added in v0.1.2

func RegisterEntityCacheServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EntityCacheServiceClient) error

RegisterEntityCacheServiceHandlerClient registers the http handlers for service EntityCacheService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EntityCacheServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EntityCacheServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EntityCacheServiceClient" to call the correct interceptors.

func RegisterEntityCacheServiceHandlerFromEndpoint added in v0.1.2

func RegisterEntityCacheServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEntityCacheServiceHandlerFromEndpoint is same as RegisterEntityCacheServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEntityCacheServiceHandlerServer added in v0.1.2

func RegisterEntityCacheServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EntityCacheServiceServer) error

RegisterEntityCacheServiceHandlerServer registers the http handlers for service EntityCacheService to "mux". UnaryRPC :call EntityCacheServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEntityCacheServiceHandlerFromEndpoint instead.

func RegisterEntityCacheServiceServer added in v0.1.2

func RegisterEntityCacheServiceServer(s grpc.ServiceRegistrar, srv EntityCacheServiceServer)

Types

type EntityCacheServiceClient added in v0.1.2

type EntityCacheServiceClient interface {
	GetServicesList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ServicesList, error)
}

EntityCacheServiceClient is the client API for EntityCacheService 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.

func NewEntityCacheServiceClient added in v0.1.2

func NewEntityCacheServiceClient(cc grpc.ClientConnInterface) EntityCacheServiceClient

type EntityCacheServiceServer added in v0.1.2

type EntityCacheServiceServer interface {
	GetServicesList(context.Context, *emptypb.Empty) (*ServicesList, error)
}

EntityCacheServiceServer is the server API for EntityCacheService service. All implementations should embed UnimplementedEntityCacheServiceServer for forward compatibility

type OverlappingService

type OverlappingService struct {
	Service1      string `protobuf:"bytes,1,opt,name=service1,proto3" json:"service1,omitempty"`
	Service2      string `protobuf:"bytes,2,opt,name=service2,proto3" json:"service2,omitempty"`
	EntitiesCount int32  `protobuf:"varint,3,opt,name=entities_count,json=entitiesCount,proto3" json:"entities_count,omitempty"`
	// contains filtered or unexported fields
}

OverlappingService contains info about a service that overlaps with another one

func (*OverlappingService) DeepCopy added in v0.1.2

func (in *OverlappingService) DeepCopy() *OverlappingService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OverlappingService. Required by controller-gen.

func (*OverlappingService) DeepCopyInterface added in v0.1.2

func (in *OverlappingService) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new OverlappingService. Required by controller-gen.

func (*OverlappingService) DeepCopyInto added in v0.1.2

func (in *OverlappingService) DeepCopyInto(out *OverlappingService)

DeepCopyInto supports using OverlappingService within kubernetes types, where deepcopy-gen is used.

func (*OverlappingService) Descriptor deprecated

func (*OverlappingService) Descriptor() ([]byte, []int)

Deprecated: Use OverlappingService.ProtoReflect.Descriptor instead.

func (*OverlappingService) GetEntitiesCount

func (x *OverlappingService) GetEntitiesCount() int32

func (*OverlappingService) GetService1

func (x *OverlappingService) GetService1() string

func (*OverlappingService) GetService2

func (x *OverlappingService) GetService2() string

func (*OverlappingService) MarshalJSON

func (msg *OverlappingService) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*OverlappingService) ProtoMessage

func (*OverlappingService) ProtoMessage()

func (*OverlappingService) ProtoReflect

func (x *OverlappingService) ProtoReflect() protoreflect.Message

func (*OverlappingService) Reset

func (x *OverlappingService) Reset()

func (*OverlappingService) String

func (x *OverlappingService) String() string

func (*OverlappingService) UnmarshalJSON

func (msg *OverlappingService) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Service

type Service struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	EntitiesCount int32  `protobuf:"varint,2,opt,name=entities_count,json=entitiesCount,proto3" json:"entities_count,omitempty"`
	// contains filtered or unexported fields
}

Service contains information about single service discovered in agent group by a particular agent

func (*Service) DeepCopy added in v0.1.2

func (in *Service) DeepCopy() *Service

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service. Required by controller-gen.

func (*Service) DeepCopyInterface added in v0.1.2

func (in *Service) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Service. Required by controller-gen.

func (*Service) DeepCopyInto added in v0.1.2

func (in *Service) DeepCopyInto(out *Service)

DeepCopyInto supports using Service within kubernetes types, where deepcopy-gen is used.

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetEntitiesCount

func (x *Service) GetEntitiesCount() int32

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) MarshalJSON

func (msg *Service) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

func (*Service) UnmarshalJSON

func (msg *Service) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ServicesList added in v0.1.2

type ServicesList struct {
	Services            []*Service            `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	OverlappingServices []*OverlappingService `protobuf:"bytes,2,rep,name=overlapping_services,json=overlappingServices,proto3" json:"overlapping_services,omitempty"`
	// contains filtered or unexported fields
}

func (*ServicesList) DeepCopy added in v0.1.2

func (in *ServicesList) DeepCopy() *ServicesList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicesList. Required by controller-gen.

func (*ServicesList) DeepCopyInterface added in v0.1.2

func (in *ServicesList) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServicesList. Required by controller-gen.

func (*ServicesList) DeepCopyInto added in v0.1.2

func (in *ServicesList) DeepCopyInto(out *ServicesList)

DeepCopyInto supports using ServicesList within kubernetes types, where deepcopy-gen is used.

func (*ServicesList) Descriptor deprecated added in v0.1.2

func (*ServicesList) Descriptor() ([]byte, []int)

Deprecated: Use ServicesList.ProtoReflect.Descriptor instead.

func (*ServicesList) GetOverlappingServices added in v0.1.2

func (x *ServicesList) GetOverlappingServices() []*OverlappingService

func (*ServicesList) GetServices added in v0.1.2

func (x *ServicesList) GetServices() []*Service

func (*ServicesList) MarshalJSON added in v0.1.2

func (msg *ServicesList) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ServicesList) ProtoMessage added in v0.1.2

func (*ServicesList) ProtoMessage()

func (*ServicesList) ProtoReflect added in v0.1.2

func (x *ServicesList) ProtoReflect() protoreflect.Message

func (*ServicesList) Reset added in v0.1.2

func (x *ServicesList) Reset()

func (*ServicesList) String added in v0.1.2

func (x *ServicesList) String() string

func (*ServicesList) UnmarshalJSON added in v0.1.2

func (msg *ServicesList) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type UnimplementedEntityCacheServiceServer added in v0.1.2

type UnimplementedEntityCacheServiceServer struct {
}

UnimplementedEntityCacheServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEntityCacheServiceServer) GetServicesList added in v0.1.2

type UnsafeEntityCacheServiceServer added in v0.1.2

type UnsafeEntityCacheServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEntityCacheServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EntityCacheServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL