label_store_protos

package
v0.0.0-...-8223eb1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 3

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 LabelType

type LabelType int32
const (
	LabelType_unknown                LabelType = 0
	LabelType_pod                    LabelType = 1
	LabelType_node                   LabelType = 2
	LabelType_pod_clusters           LabelType = 3
	LabelType_replication_controller LabelType = 4
	LabelType_rolls                  LabelType = 5
)

func (LabelType) EnumDescriptor

func (LabelType) EnumDescriptor() ([]byte, []int)

func (LabelType) String

func (x LabelType) String() string

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) Descriptor() ([]byte, []int)

func (*Labeled) GetId

func (m *Labeled) GetId() string

func (*Labeled) GetLabelType

func (m *Labeled) GetLabelType() LabelType

func (*Labeled) GetLabels

func (m *Labeled) GetLabels() map[string]string

func (*Labeled) ProtoMessage

func (*Labeled) ProtoMessage()

func (*Labeled) Reset

func (m *Labeled) Reset()

func (*Labeled) String

func (m *Labeled) String() string

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

Jump to

Keyboard shortcuts

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