Documentation ¶
Index ¶
- Variables
- func RegisterSetsServer(s grpc.ServiceRegistrar, srv SetsServer)
- type EndpointConditions
- type EndpointInfo
- func (*EndpointInfo) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointInfo) GetConditions() *EndpointConditions
- func (x *EndpointInfo) GetEndpoint() *localv1.Endpoint
- func (x *EndpointInfo) GetHash() uint64
- func (x *EndpointInfo) GetHints() *TopologyHints
- func (x *EndpointInfo) GetNamespace() string
- func (x *EndpointInfo) GetPodName() string
- func (x *EndpointInfo) GetServiceName() string
- func (x *EndpointInfo) GetSourceName() string
- func (x *EndpointInfo) GetTopology() *TopologyInfo
- func (*EndpointInfo) ProtoMessage()
- func (x *EndpointInfo) ProtoReflect() protoreflect.Message
- func (x *EndpointInfo) Reset()
- func (x *EndpointInfo) String() string
- type GlobalWatchReq
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetAnnotations() map[string]string
- func (x *Node) GetLabels() map[string]string
- func (x *Node) GetName() string
- func (x *Node) GetTopology() *TopologyInfo
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeInfo
- type ServiceInfo
- func (*ServiceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceInfo) GetHash() uint64
- func (x *ServiceInfo) GetService() *localv1.Service
- func (*ServiceInfo) ProtoMessage()
- func (x *ServiceInfo) ProtoReflect() protoreflect.Message
- func (x *ServiceInfo) Reset()
- func (x *ServiceInfo) String() string
- type SetsClient
- type SetsServer
- type Sets_WatchClient
- type Sets_WatchServer
- type TopologyHints
- type TopologyInfo
- func (*TopologyInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TopologyInfo) GetNode() string
- func (x *TopologyInfo) GetZone() string
- func (*TopologyInfo) ProtoMessage()
- func (x *TopologyInfo) ProtoReflect() protoreflect.Message
- func (x *TopologyInfo) Reset()
- func (x *TopologyInfo) String() string
- type UnimplementedSetsServer
- type UnsafeSetsServer
Constants ¶
This section is empty.
Variables ¶
var File_api_globalv1_api_proto protoreflect.FileDescriptor
var Sets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "globalv1.Sets", HandlerType: (*SetsServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _Sets_Watch_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "api/globalv1/api.proto", }
Sets_ServiceDesc is the grpc.ServiceDesc for Sets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSetsServer ¶
func RegisterSetsServer(s grpc.ServiceRegistrar, srv SetsServer)
Types ¶
type EndpointConditions ¶
type EndpointConditions struct { Ready bool `protobuf:"varint,1,opt,name=Ready,proto3" json:"Ready,omitempty"` // contains filtered or unexported fields }
func (*EndpointConditions) Descriptor
deprecated
func (*EndpointConditions) Descriptor() ([]byte, []int)
Deprecated: Use EndpointConditions.ProtoReflect.Descriptor instead.
func (*EndpointConditions) GetReady ¶
func (x *EndpointConditions) GetReady() bool
func (*EndpointConditions) ProtoMessage ¶
func (*EndpointConditions) ProtoMessage()
func (*EndpointConditions) ProtoReflect ¶
func (x *EndpointConditions) ProtoReflect() protoreflect.Message
func (*EndpointConditions) Reset ¶
func (x *EndpointConditions) Reset()
func (*EndpointConditions) String ¶
func (x *EndpointConditions) String() string
type EndpointInfo ¶
type EndpointInfo struct { Hash uint64 `protobuf:"varint,1,opt,name=Hash,proto3" json:"Hash,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"Namespace,omitempty"` SourceName string `protobuf:"bytes,3,opt,name=SourceName,proto3" json:"SourceName,omitempty"` ServiceName string `protobuf:"bytes,4,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"` PodName string `protobuf:"bytes,8,opt,name=PodName,proto3" json:"PodName,omitempty"` Endpoint *localv1.Endpoint `protobuf:"bytes,6,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"` Conditions *EndpointConditions `protobuf:"bytes,7,opt,name=Conditions,proto3" json:"Conditions,omitempty"` Topology *TopologyInfo `protobuf:"bytes,9,opt,name=Topology,proto3" json:"Topology,omitempty"` Hints *TopologyHints `protobuf:"bytes,10,opt,name=Hints,proto3" json:"Hints,omitempty"` // contains filtered or unexported fields }
func (*EndpointInfo) Descriptor
deprecated
func (*EndpointInfo) Descriptor() ([]byte, []int)
Deprecated: Use EndpointInfo.ProtoReflect.Descriptor instead.
func (*EndpointInfo) GetConditions ¶
func (x *EndpointInfo) GetConditions() *EndpointConditions
func (*EndpointInfo) GetEndpoint ¶
func (x *EndpointInfo) GetEndpoint() *localv1.Endpoint
func (*EndpointInfo) GetHash ¶
func (x *EndpointInfo) GetHash() uint64
func (*EndpointInfo) GetHints ¶
func (x *EndpointInfo) GetHints() *TopologyHints
func (*EndpointInfo) GetNamespace ¶
func (x *EndpointInfo) GetNamespace() string
func (*EndpointInfo) GetPodName ¶
func (x *EndpointInfo) GetPodName() string
func (*EndpointInfo) GetServiceName ¶
func (x *EndpointInfo) GetServiceName() string
func (*EndpointInfo) GetSourceName ¶
func (x *EndpointInfo) GetSourceName() string
func (*EndpointInfo) GetTopology ¶
func (x *EndpointInfo) GetTopology() *TopologyInfo
func (*EndpointInfo) ProtoMessage ¶
func (*EndpointInfo) ProtoMessage()
func (*EndpointInfo) ProtoReflect ¶
func (x *EndpointInfo) ProtoReflect() protoreflect.Message
func (*EndpointInfo) Reset ¶
func (x *EndpointInfo) Reset()
func (*EndpointInfo) String ¶
func (x *EndpointInfo) String() string
type GlobalWatchReq ¶
type GlobalWatchReq struct {
// contains filtered or unexported fields
}
func (*GlobalWatchReq) Descriptor
deprecated
func (*GlobalWatchReq) Descriptor() ([]byte, []int)
Deprecated: Use GlobalWatchReq.ProtoReflect.Descriptor instead.
func (*GlobalWatchReq) ProtoMessage ¶
func (*GlobalWatchReq) ProtoMessage()
func (*GlobalWatchReq) ProtoReflect ¶
func (x *GlobalWatchReq) ProtoReflect() protoreflect.Message
func (*GlobalWatchReq) Reset ¶
func (x *GlobalWatchReq) Reset()
func (*GlobalWatchReq) String ¶
func (x *GlobalWatchReq) String() string
type Node ¶
type Node struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Topology *TopologyInfo `protobuf:"bytes,4,opt,name=Topology,proto3" json:"Topology,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Annotations map[string]string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
func (*Node) GetAnnotations ¶
func (*Node) GetTopology ¶
func (x *Node) GetTopology() *TopologyInfo
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeInfo ¶
type NodeInfo struct { Hash uint64 `protobuf:"varint,1,opt,name=Hash,proto3" json:"Hash,omitempty"` Node *Node `protobuf:"bytes,2,opt,name=Node,proto3" json:"Node,omitempty"` // contains filtered or unexported fields }
func (*NodeInfo) Descriptor
deprecated
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) ProtoReflect ¶
func (x *NodeInfo) ProtoReflect() protoreflect.Message
type ServiceInfo ¶
type ServiceInfo struct { Hash uint64 `protobuf:"varint,1,opt,name=Hash,proto3" json:"Hash,omitempty"` Service *localv1.Service `protobuf:"bytes,2,opt,name=Service,proto3" json:"Service,omitempty"` // contains filtered or unexported fields }
func (*ServiceInfo) Descriptor
deprecated
func (*ServiceInfo) Descriptor() ([]byte, []int)
Deprecated: Use ServiceInfo.ProtoReflect.Descriptor instead.
func (*ServiceInfo) GetHash ¶
func (x *ServiceInfo) GetHash() uint64
func (*ServiceInfo) GetService ¶
func (x *ServiceInfo) GetService() *localv1.Service
func (*ServiceInfo) ProtoMessage ¶
func (*ServiceInfo) ProtoMessage()
func (*ServiceInfo) ProtoReflect ¶
func (x *ServiceInfo) ProtoReflect() protoreflect.Message
func (*ServiceInfo) Reset ¶
func (x *ServiceInfo) Reset()
func (*ServiceInfo) String ¶
func (x *ServiceInfo) String() string
type SetsClient ¶
type SetsClient interface {
Watch(ctx context.Context, opts ...grpc.CallOption) (Sets_WatchClient, error)
}
SetsClient is the client API for Sets 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 NewSetsClient ¶
func NewSetsClient(cc grpc.ClientConnInterface) SetsClient
type SetsServer ¶
type SetsServer interface { Watch(Sets_WatchServer) error // contains filtered or unexported methods }
SetsServer is the server API for Sets service. All implementations must embed UnimplementedSetsServer for forward compatibility
type Sets_WatchClient ¶
type Sets_WatchClient interface { Send(*GlobalWatchReq) error Recv() (*localv1.OpItem, error) grpc.ClientStream }
type Sets_WatchServer ¶
type Sets_WatchServer interface { Send(*localv1.OpItem) error Recv() (*GlobalWatchReq, error) grpc.ServerStream }
type TopologyHints ¶
type TopologyHints struct { Zones []string `protobuf:"bytes,1,rep,name=Zones,proto3" json:"Zones,omitempty"` // contains filtered or unexported fields }
func (*TopologyHints) Descriptor
deprecated
func (*TopologyHints) Descriptor() ([]byte, []int)
Deprecated: Use TopologyHints.ProtoReflect.Descriptor instead.
func (*TopologyHints) GetZones ¶
func (x *TopologyHints) GetZones() []string
func (*TopologyHints) ProtoMessage ¶
func (*TopologyHints) ProtoMessage()
func (*TopologyHints) ProtoReflect ¶
func (x *TopologyHints) ProtoReflect() protoreflect.Message
func (*TopologyHints) Reset ¶
func (x *TopologyHints) Reset()
func (*TopologyHints) String ¶
func (x *TopologyHints) String() string
type TopologyInfo ¶
type TopologyInfo struct { Node string `protobuf:"bytes,1,opt,name=Node,proto3" json:"Node,omitempty"` Zone string `protobuf:"bytes,2,opt,name=Zone,proto3" json:"Zone,omitempty"` // contains filtered or unexported fields }
func (*TopologyInfo) Descriptor
deprecated
func (*TopologyInfo) Descriptor() ([]byte, []int)
Deprecated: Use TopologyInfo.ProtoReflect.Descriptor instead.
func (*TopologyInfo) GetNode ¶
func (x *TopologyInfo) GetNode() string
func (*TopologyInfo) GetZone ¶
func (x *TopologyInfo) GetZone() string
func (*TopologyInfo) ProtoMessage ¶
func (*TopologyInfo) ProtoMessage()
func (*TopologyInfo) ProtoReflect ¶
func (x *TopologyInfo) ProtoReflect() protoreflect.Message
func (*TopologyInfo) Reset ¶
func (x *TopologyInfo) Reset()
func (*TopologyInfo) String ¶
func (x *TopologyInfo) String() string
type UnimplementedSetsServer ¶
type UnimplementedSetsServer struct { }
UnimplementedSetsServer must be embedded to have forward compatible implementations.
func (UnimplementedSetsServer) Watch ¶
func (UnimplementedSetsServer) Watch(Sets_WatchServer) error
type UnsafeSetsServer ¶
type UnsafeSetsServer interface {
// contains filtered or unexported methods
}
UnsafeSetsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SetsServer will result in compilation errors.