Documentation ¶
Overview ¶
Package label_store_protos is a generated protocol buffer package.
It is generated from these files:
pkg/grpc/labelstore/protos/label_store.proto
It has these top-level messages:
WatchMatchesRequest Labeled WatchMatchesResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LabelType_name = map[int32]string{
0: "unknown",
1: "pod",
2: "node",
3: "pod_clusters",
4: "replication_controller",
5: "rolls",
}
View Source
var LabelType_value = map[string]int32{
"unknown": 0,
"pod": 1,
"node": 2,
"pod_clusters": 3,
"replication_controller": 4,
"rolls": 5,
}
Functions ¶
func RegisterP2LabelStoreServer ¶
func RegisterP2LabelStoreServer(s *grpc.Server, srv P2LabelStoreServer)
Types ¶
type Labeled ¶
type Labeled struct { LabelType LabelType `protobuf:"varint,1,opt,name=label_type,json=labelType,enum=label_store_protos.LabelType" json:"label_type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` Labels map[string]string `` /* 132-byte string literal not displayed */ }
func (*Labeled) Descriptor ¶
func (*Labeled) GetLabelType ¶
func (*Labeled) ProtoMessage ¶
func (*Labeled) ProtoMessage()
type P2LabelStoreClient ¶
type P2LabelStoreClient interface {
WatchMatches(ctx context.Context, in *WatchMatchesRequest, opts ...grpc.CallOption) (P2LabelStore_WatchMatchesClient, error)
}
func NewP2LabelStoreClient ¶
func NewP2LabelStoreClient(cc *grpc.ClientConn) P2LabelStoreClient
type P2LabelStoreServer ¶
type P2LabelStoreServer interface {
WatchMatches(*WatchMatchesRequest, P2LabelStore_WatchMatchesServer) error
}
type P2LabelStore_WatchMatchesClient ¶
type P2LabelStore_WatchMatchesClient interface { Recv() (*WatchMatchesResponse, error) grpc.ClientStream }
type P2LabelStore_WatchMatchesServer ¶
type P2LabelStore_WatchMatchesServer interface { Send(*WatchMatchesResponse) error grpc.ServerStream }
type WatchMatchesRequest ¶
type WatchMatchesRequest struct { Selector string `protobuf:"bytes,1,opt,name=selector" json:"selector,omitempty"` LabelType LabelType `protobuf:"varint,2,opt,name=label_type,json=labelType,enum=label_store_protos.LabelType" json:"label_type,omitempty"` }
func (*WatchMatchesRequest) Descriptor ¶
func (*WatchMatchesRequest) Descriptor() ([]byte, []int)
func (*WatchMatchesRequest) GetLabelType ¶
func (m *WatchMatchesRequest) GetLabelType() LabelType
func (*WatchMatchesRequest) GetSelector ¶
func (m *WatchMatchesRequest) GetSelector() string
func (*WatchMatchesRequest) ProtoMessage ¶
func (*WatchMatchesRequest) ProtoMessage()
func (*WatchMatchesRequest) Reset ¶
func (m *WatchMatchesRequest) Reset()
func (*WatchMatchesRequest) String ¶
func (m *WatchMatchesRequest) String() string
type WatchMatchesResponse ¶
type WatchMatchesResponse struct {
Labeled []*Labeled `protobuf:"bytes,1,rep,name=labeled" json:"labeled,omitempty"`
}
func (*WatchMatchesResponse) Descriptor ¶
func (*WatchMatchesResponse) Descriptor() ([]byte, []int)
func (*WatchMatchesResponse) GetLabeled ¶
func (m *WatchMatchesResponse) GetLabeled() []*Labeled
func (*WatchMatchesResponse) ProtoMessage ¶
func (*WatchMatchesResponse) ProtoMessage()
func (*WatchMatchesResponse) Reset ¶
func (m *WatchMatchesResponse) Reset()
func (*WatchMatchesResponse) String ¶
func (m *WatchMatchesResponse) String() string
Click to show internal directories.
Click to hide internal directories.