entitiesv1

package
v0.26.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package entitiesv1 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 EntitiesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aperture.discovery.entities.v1.EntitiesService",
	HandlerType: (*EntitiesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetEntities",
			Handler:    _EntitiesService_GetEntities_Handler,
		},
		{
			MethodName: "GetEntityByIPAddress",
			Handler:    _EntitiesService_GetEntityByIPAddress_Handler,
		},
		{
			MethodName: "GetEntityByName",
			Handler:    _EntitiesService_GetEntityByName_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aperture/discovery/entities/v1/entities.proto",
}

EntitiesService_ServiceDesc is the grpc.ServiceDesc for EntitiesService 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_discovery_entities_v1_entities_proto protoreflect.FileDescriptor

Functions

func RegisterEntitiesServiceHandler

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

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

func RegisterEntitiesServiceHandlerClient

func RegisterEntitiesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EntitiesServiceClient) error

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

func RegisterEntitiesServiceHandlerFromEndpoint

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

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

func RegisterEntitiesServiceHandlerServer

func RegisterEntitiesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EntitiesServiceServer) error

RegisterEntitiesServiceHandlerServer registers the http handlers for service EntitiesService to "mux". UnaryRPC :call EntitiesServiceServer 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 RegisterEntitiesServiceHandlerFromEndpoint instead.

func RegisterEntitiesServiceServer

func RegisterEntitiesServiceServer(s grpc.ServiceRegistrar, srv EntitiesServiceServer)

Types

type Entities

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

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

func (*Entities) DeepCopy

func (in *Entities) DeepCopy() *Entities

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

func (*Entities) DeepCopyInterface

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

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

func (*Entities) DeepCopyInto

func (in *Entities) DeepCopyInto(out *Entities)

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

func (*Entities) Descriptor deprecated

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

Deprecated: Use Entities.ProtoReflect.Descriptor instead.

func (*Entities) GetEntitiesByIpAddress

func (x *Entities) GetEntitiesByIpAddress() *Entities_Entities

func (*Entities) GetEntitiesByName

func (x *Entities) GetEntitiesByName() *Entities_Entities

func (*Entities) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Entities) ProtoMessage

func (*Entities) ProtoMessage()

func (*Entities) ProtoReflect

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

func (*Entities) Reset

func (x *Entities) Reset()

func (*Entities) String

func (x *Entities) String() string

func (*Entities) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type EntitiesServiceClient

type EntitiesServiceClient interface {
	GetEntities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Entities, error)
	GetEntityByIPAddress(ctx context.Context, in *GetEntityByIPAddressRequest, opts ...grpc.CallOption) (*Entity, error)
	GetEntityByName(ctx context.Context, in *GetEntityByNameRequest, opts ...grpc.CallOption) (*Entity, error)
}

EntitiesServiceClient is the client API for EntitiesService 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 EntitiesServiceServer

type EntitiesServiceServer interface {
	GetEntities(context.Context, *emptypb.Empty) (*Entities, error)
	GetEntityByIPAddress(context.Context, *GetEntityByIPAddressRequest) (*Entity, error)
	GetEntityByName(context.Context, *GetEntityByNameRequest) (*Entity, error)
}

EntitiesServiceServer is the server API for EntitiesService service. All implementations should embed UnimplementedEntitiesServiceServer for forward compatibility

type Entities_Entities

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

Entities defines mapping of entities.

func (*Entities_Entities) DeepCopy

func (in *Entities_Entities) DeepCopy() *Entities_Entities

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

func (*Entities_Entities) DeepCopyInterface

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

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

func (*Entities_Entities) DeepCopyInto

func (in *Entities_Entities) DeepCopyInto(out *Entities_Entities)

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

func (*Entities_Entities) Descriptor deprecated

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

Deprecated: Use Entities_Entities.ProtoReflect.Descriptor instead.

func (*Entities_Entities) GetEntities

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

func (*Entities_Entities) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Entities_Entities) ProtoMessage

func (*Entities_Entities) ProtoMessage()

func (*Entities_Entities) ProtoReflect

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

func (*Entities_Entities) Reset

func (x *Entities_Entities) Reset()

func (*Entities_Entities) String

func (x *Entities_Entities) String() string

func (*Entities_Entities) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type Entity

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"`
	Namespace string   `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
	NodeName  string   `protobuf:"bytes,6,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	Services  []string `protobuf:"bytes,7,rep,name=services,proto3" json:"services,omitempty"`
	Labels    []string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

Entity represents a pod, vm, etc.

func (*Entity) DeepCopy

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

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

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

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

func (*Entity) Descriptor deprecated

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

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetIpAddress

func (x *Entity) GetIpAddress() string

func (*Entity) GetLabels

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

func (*Entity) GetName

func (x *Entity) GetName() string

func (*Entity) GetNamespace

func (x *Entity) GetNamespace() string

func (*Entity) GetNodeName

func (x *Entity) GetNodeName() string

func (*Entity) GetPrefix

func (x *Entity) GetPrefix() string

func (*Entity) GetServices

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

func (*Entity) GetUid

func (x *Entity) GetUid() string

func (*Entity) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

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

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

func (*Entity) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type GetEntityByIPAddressRequest

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

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

func (*GetEntityByIPAddressRequest) DeepCopyInterface

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

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

func (*GetEntityByIPAddressRequest) Descriptor deprecated

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

Deprecated: Use GetEntityByIPAddressRequest.ProtoReflect.Descriptor instead.

func (*GetEntityByIPAddressRequest) GetIpAddress

func (x *GetEntityByIPAddressRequest) GetIpAddress() string

func (*GetEntityByIPAddressRequest) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*GetEntityByIPAddressRequest) ProtoMessage

func (*GetEntityByIPAddressRequest) ProtoMessage()

func (*GetEntityByIPAddressRequest) ProtoReflect

func (*GetEntityByIPAddressRequest) Reset

func (x *GetEntityByIPAddressRequest) Reset()

func (*GetEntityByIPAddressRequest) String

func (x *GetEntityByIPAddressRequest) String() string

func (*GetEntityByIPAddressRequest) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type GetEntityByNameRequest

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

func (*GetEntityByNameRequest) DeepCopy

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

func (*GetEntityByNameRequest) DeepCopyInterface

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

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

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

func (*GetEntityByNameRequest) Descriptor deprecated

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

Deprecated: Use GetEntityByNameRequest.ProtoReflect.Descriptor instead.

func (*GetEntityByNameRequest) GetName

func (x *GetEntityByNameRequest) GetName() string

func (*GetEntityByNameRequest) MarshalJSON

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

MarshalJSON implements json.Marshaler

func (*GetEntityByNameRequest) ProtoMessage

func (*GetEntityByNameRequest) ProtoMessage()

func (*GetEntityByNameRequest) ProtoReflect

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

func (*GetEntityByNameRequest) Reset

func (x *GetEntityByNameRequest) Reset()

func (*GetEntityByNameRequest) String

func (x *GetEntityByNameRequest) String() string

func (*GetEntityByNameRequest) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler

type UnimplementedEntitiesServiceServer

type UnimplementedEntitiesServiceServer struct {
}

UnimplementedEntitiesServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEntitiesServiceServer) GetEntities

func (UnimplementedEntitiesServiceServer) GetEntityByIPAddress

func (UnimplementedEntitiesServiceServer) GetEntityByName

type UnsafeEntitiesServiceServer

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

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

Jump to

Keyboard shortcuts

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