entitycachev1

package
v0.4.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 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: "GetEntityCache",
			Handler:    _EntityCacheService_GetEntityCache_Handler,
		},
		{
			MethodName: "GetEntityByIPAddress",
			Handler:    _EntityCacheService_GetEntityByIPAddress_Handler,
		},
		{
			MethodName: "GetEntityByName",
			Handler:    _EntityCacheService_GetEntityByName_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 Entity added in v0.2.1

type Entity struct {
	Prefix    string   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Uid       string   `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	IpAddress string   `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Name      string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Services  []string `protobuf:"bytes,5,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

Entity represents a pod, vm, etc.

func (*Entity) DeepCopy added in v0.2.1

func (in *Entity) DeepCopy() *Entity

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

func (*Entity) DeepCopyInterface added in v0.2.1

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

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

func (*Entity) DeepCopyInto added in v0.2.1

func (in *Entity) DeepCopyInto(out *Entity)

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

func (*Entity) Descriptor deprecated added in v0.2.1

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

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetIpAddress added in v0.2.1

func (x *Entity) GetIpAddress() string

func (*Entity) GetName added in v0.2.1

func (x *Entity) GetName() string

func (*Entity) GetPrefix added in v0.2.1

func (x *Entity) GetPrefix() string

func (*Entity) GetServices added in v0.2.1

func (x *Entity) GetServices() []string

func (*Entity) GetUid added in v0.2.1

func (x *Entity) GetUid() string

func (*Entity) MarshalJSON added in v0.2.1

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

MarshalJSON implements json.Marshaler

func (*Entity) ProtoMessage added in v0.2.1

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect added in v0.2.1

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

func (*Entity) Reset added in v0.2.1

func (x *Entity) Reset()

func (*Entity) String added in v0.2.1

func (x *Entity) String() string

func (*Entity) UnmarshalJSON added in v0.2.1

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

UnmarshalJSON implements json.Unmarshaler

type EntityCache

type EntityCache struct {
	EntitiesByIpAddress *EntityCache_Entities `protobuf:"bytes,1,opt,name=entities_by_ip_address,json=entitiesByIpAddress,proto3" json:"entities_by_ip_address,omitempty"`
	EntitiesByName      *EntityCache_Entities `protobuf:"bytes,2,opt,name=entities_by_name,json=entitiesByName,proto3" json:"entities_by_name,omitempty"`
	// contains filtered or unexported fields
}

EntityCache contains both mappings of ip address to entity and entity name to entity.

func (*EntityCache) DeepCopy added in v0.2.1

func (in *EntityCache) DeepCopy() *EntityCache

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

func (*EntityCache) DeepCopyInterface added in v0.2.1

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

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

func (*EntityCache) DeepCopyInto added in v0.2.1

func (in *EntityCache) DeepCopyInto(out *EntityCache)

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

func (*EntityCache) Descriptor deprecated

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

Deprecated: Use EntityCache.ProtoReflect.Descriptor instead.

func (*EntityCache) GetEntitiesByIpAddress added in v0.2.1

func (x *EntityCache) GetEntitiesByIpAddress() *EntityCache_Entities

func (*EntityCache) GetEntitiesByName added in v0.2.1

func (x *EntityCache) GetEntitiesByName() *EntityCache_Entities

func (*EntityCache) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*EntityCache) ProtoMessage

func (*EntityCache) ProtoMessage()

func (*EntityCache) ProtoReflect

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

func (*EntityCache) Reset

func (x *EntityCache) Reset()

func (*EntityCache) String

func (x *EntityCache) String() string

func (*EntityCache) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type EntityCacheServiceClient added in v0.1.2

type EntityCacheServiceClient interface {
	GetEntityCache(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*EntityCache, error)
	GetEntityByIPAddress(ctx context.Context, in *GetEntityByIPAddressRequest, opts ...grpc.CallOption) (*Entity, error)
	GetEntityByName(ctx context.Context, in *GetEntityByNameRequest, opts ...grpc.CallOption) (*Entity, 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 {
	GetEntityCache(context.Context, *emptypb.Empty) (*EntityCache, error)
	GetEntityByIPAddress(context.Context, *GetEntityByIPAddressRequest) (*Entity, error)
	GetEntityByName(context.Context, *GetEntityByNameRequest) (*Entity, error)
}

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

type EntityCache_Entities added in v0.2.1

type EntityCache_Entities struct {
	Entities map[string]*Entity `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

Entities defines mapping of entities.

func (*EntityCache_Entities) DeepCopy added in v0.2.1

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

func (*EntityCache_Entities) DeepCopyInterface added in v0.2.1

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

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

func (*EntityCache_Entities) DeepCopyInto added in v0.2.1

func (in *EntityCache_Entities) DeepCopyInto(out *EntityCache_Entities)

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

func (*EntityCache_Entities) Descriptor deprecated added in v0.2.1

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

Deprecated: Use EntityCache_Entities.ProtoReflect.Descriptor instead.

func (*EntityCache_Entities) GetEntities added in v0.2.1

func (x *EntityCache_Entities) GetEntities() map[string]*Entity

func (*EntityCache_Entities) MarshalJSON added in v0.2.1

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

MarshalJSON implements json.Marshaler

func (*EntityCache_Entities) ProtoMessage added in v0.2.1

func (*EntityCache_Entities) ProtoMessage()

func (*EntityCache_Entities) ProtoReflect added in v0.2.1

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

func (*EntityCache_Entities) Reset added in v0.2.1

func (x *EntityCache_Entities) Reset()

func (*EntityCache_Entities) String added in v0.2.1

func (x *EntityCache_Entities) String() string

func (*EntityCache_Entities) UnmarshalJSON added in v0.2.1

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

UnmarshalJSON implements json.Unmarshaler

type GetEntityByIPAddressRequest added in v0.2.1

type GetEntityByIPAddressRequest struct {
	IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEntityByIPAddressRequest) DeepCopy added in v0.2.1

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

func (*GetEntityByIPAddressRequest) DeepCopyInterface added in v0.2.1

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

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

func (*GetEntityByIPAddressRequest) DeepCopyInto added in v0.2.1

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

func (*GetEntityByIPAddressRequest) Descriptor deprecated added in v0.2.1

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

Deprecated: Use GetEntityByIPAddressRequest.ProtoReflect.Descriptor instead.

func (*GetEntityByIPAddressRequest) GetIpAddress added in v0.2.1

func (x *GetEntityByIPAddressRequest) GetIpAddress() string

func (*GetEntityByIPAddressRequest) MarshalJSON added in v0.2.1

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

MarshalJSON implements json.Marshaler

func (*GetEntityByIPAddressRequest) ProtoMessage added in v0.2.1

func (*GetEntityByIPAddressRequest) ProtoMessage()

func (*GetEntityByIPAddressRequest) ProtoReflect added in v0.2.1

func (*GetEntityByIPAddressRequest) Reset added in v0.2.1

func (x *GetEntityByIPAddressRequest) Reset()

func (*GetEntityByIPAddressRequest) String added in v0.2.1

func (x *GetEntityByIPAddressRequest) String() string

func (*GetEntityByIPAddressRequest) UnmarshalJSON added in v0.2.1

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

UnmarshalJSON implements json.Unmarshaler

type GetEntityByNameRequest added in v0.2.1

type GetEntityByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEntityByNameRequest) DeepCopy added in v0.2.1

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

func (*GetEntityByNameRequest) DeepCopyInterface added in v0.2.1

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

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

func (*GetEntityByNameRequest) DeepCopyInto added in v0.2.1

func (in *GetEntityByNameRequest) DeepCopyInto(out *GetEntityByNameRequest)

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

func (*GetEntityByNameRequest) Descriptor deprecated added in v0.2.1

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

Deprecated: Use GetEntityByNameRequest.ProtoReflect.Descriptor instead.

func (*GetEntityByNameRequest) GetName added in v0.2.1

func (x *GetEntityByNameRequest) GetName() string

func (*GetEntityByNameRequest) MarshalJSON added in v0.2.1

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

MarshalJSON implements json.Marshaler

func (*GetEntityByNameRequest) ProtoMessage added in v0.2.1

func (*GetEntityByNameRequest) ProtoMessage()

func (*GetEntityByNameRequest) ProtoReflect added in v0.2.1

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

func (*GetEntityByNameRequest) Reset added in v0.2.1

func (x *GetEntityByNameRequest) Reset()

func (*GetEntityByNameRequest) String added in v0.2.1

func (x *GetEntityByNameRequest) String() string

func (*GetEntityByNameRequest) UnmarshalJSON added in v0.2.1

func (msg *GetEntityByNameRequest) 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) GetEntityByIPAddress added in v0.2.1

func (UnimplementedEntityCacheServiceServer) GetEntityByName added in v0.2.1

func (UnimplementedEntityCacheServiceServer) GetEntityCache added in v0.2.1

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