Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
pb/service.proto pb/message.proto
It has these top-level messages:
CrdReqResp CrdRecipient
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterRedisOpServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRedisOpServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRedisOpServiceServer(s *grpc.Server, srv RedisOpServiceServer)
- type CrdRecipient
- func (*CrdRecipient) Descriptor() ([]byte, []int)
- func (m *CrdRecipient) GetGroup() string
- func (m *CrdRecipient) GetKind() string
- func (m *CrdRecipient) GetName() string
- func (m *CrdRecipient) GetPlural() string
- func (m *CrdRecipient) GetScope() CrdRecipient_ResourceScope
- func (m *CrdRecipient) GetSingular() string
- func (m *CrdRecipient) GetVersion() string
- func (*CrdRecipient) ProtoMessage()
- func (m *CrdRecipient) Reset()
- func (m *CrdRecipient) String() string
- type CrdRecipient_ResourceScope
- type CrdReqResp
- type RedisOpServiceClient
- type RedisOpServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var CrdRecipient_ResourceScope_name = map[int32]string{
0: "Cluster",
1: "Namespaced",
}
View Source
var CrdRecipient_ResourceScope_value = map[string]int32{
"Cluster": 0,
"Namespaced": 1,
}
Functions ¶
func RegisterRedisOpServiceHandler ¶
func RegisterRedisOpServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRedisOpServiceHandler registers the http handlers for service RedisOpService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRedisOpServiceHandlerFromEndpoint ¶
func RegisterRedisOpServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRedisOpServiceHandlerFromEndpoint is same as RegisterRedisOpServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRedisOpServiceServer ¶
func RegisterRedisOpServiceServer(s *grpc.Server, srv RedisOpServiceServer)
Types ¶
type CrdRecipient ¶
type CrdRecipient struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Scope CrdRecipient_ResourceScope `protobuf:"varint,4,opt,name=scope,proto3,enum=pb.CrdRecipient_ResourceScope" json:"scope,omitempty"` Plural string `protobuf:"bytes,5,opt,name=plural,proto3" json:"plural,omitempty"` Singular string `protobuf:"bytes,6,opt,name=singular,proto3" json:"singular,omitempty"` Kind string `protobuf:"bytes,7,opt,name=kind,proto3" json:"kind,omitempty"` }
func (*CrdRecipient) Descriptor ¶
func (*CrdRecipient) Descriptor() ([]byte, []int)
func (*CrdRecipient) GetGroup ¶
func (m *CrdRecipient) GetGroup() string
func (*CrdRecipient) GetKind ¶
func (m *CrdRecipient) GetKind() string
func (*CrdRecipient) GetName ¶
func (m *CrdRecipient) GetName() string
func (*CrdRecipient) GetPlural ¶
func (m *CrdRecipient) GetPlural() string
func (*CrdRecipient) GetScope ¶
func (m *CrdRecipient) GetScope() CrdRecipient_ResourceScope
func (*CrdRecipient) GetSingular ¶
func (m *CrdRecipient) GetSingular() string
func (*CrdRecipient) GetVersion ¶
func (m *CrdRecipient) GetVersion() string
func (*CrdRecipient) ProtoMessage ¶
func (*CrdRecipient) ProtoMessage()
func (*CrdRecipient) Reset ¶
func (m *CrdRecipient) Reset()
func (*CrdRecipient) String ¶
func (m *CrdRecipient) String() string
type CrdRecipient_ResourceScope ¶
type CrdRecipient_ResourceScope int32
const ( CrdRecipient_Cluster CrdRecipient_ResourceScope = 0 CrdRecipient_Namespaced CrdRecipient_ResourceScope = 1 )
func (CrdRecipient_ResourceScope) EnumDescriptor ¶
func (CrdRecipient_ResourceScope) EnumDescriptor() ([]byte, []int)
func (CrdRecipient_ResourceScope) String ¶
func (x CrdRecipient_ResourceScope) String() string
type CrdReqResp ¶
type CrdReqResp struct { Recipe *CrdRecipient `protobuf:"bytes,1,opt,name=recipe" json:"recipe,omitempty"` StateCode int32 `protobuf:"varint,2,opt,name=state_code,json=stateCode,proto3" json:"state_code,omitempty"` StateMessage string `protobuf:"bytes,3,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` }
func (*CrdReqResp) Descriptor ¶
func (*CrdReqResp) Descriptor() ([]byte, []int)
func (*CrdReqResp) GetRecipe ¶
func (m *CrdReqResp) GetRecipe() *CrdRecipient
func (*CrdReqResp) GetStateCode ¶
func (m *CrdReqResp) GetStateCode() int32
func (*CrdReqResp) GetStateMessage ¶
func (m *CrdReqResp) GetStateMessage() string
func (*CrdReqResp) ProtoMessage ¶
func (*CrdReqResp) ProtoMessage()
func (*CrdReqResp) Reset ¶
func (m *CrdReqResp) Reset()
func (*CrdReqResp) String ¶
func (m *CrdReqResp) String() string
type RedisOpServiceClient ¶
type RedisOpServiceClient interface { CreateCrd(ctx context.Context, in *CrdReqResp, opts ...grpc.CallOption) (*CrdReqResp, error) ReapCrd(ctx context.Context, in *CrdReqResp, opts ...grpc.CallOption) (*CrdReqResp, error) }
func NewRedisOpServiceClient ¶
func NewRedisOpServiceClient(cc *grpc.ClientConn) RedisOpServiceClient
type RedisOpServiceServer ¶
type RedisOpServiceServer interface { CreateCrd(context.Context, *CrdReqResp) (*CrdReqResp, error) ReapCrd(context.Context, *CrdReqResp) (*CrdReqResp, error) }
Click to show internal directories.
Click to hide internal directories.