Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
pb/service.proto pb/datatype.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 RegisterSimpleGRpcServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSimpleGRpcServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSimpleGRpcServiceServer(s *grpc.Server, srv SimpleGRpcServiceServer)
- type CrdRecipient
- func (*CrdRecipient) Descriptor() ([]byte, []int)
- func (m *CrdRecipient) GetGroup() string
- func (m *CrdRecipient) GetKind() string
- func (m *CrdRecipient) GetPlural() string
- func (m *CrdRecipient) GetResourceScope() CrdRecipient_ResourceScope
- func (m *CrdRecipient) GetScope() string
- 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 SimpleGRpcServiceClient
- type SimpleGRpcServiceServer
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 RegisterSimpleGRpcServiceHandler ¶
func RegisterSimpleGRpcServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSimpleGRpcServiceHandler registers the http handlers for service SimpleGRpcService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSimpleGRpcServiceHandlerFromEndpoint ¶
func RegisterSimpleGRpcServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSimpleGRpcServiceHandlerFromEndpoint is same as RegisterSimpleGRpcServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSimpleGRpcServiceServer ¶
func RegisterSimpleGRpcServiceServer(s *grpc.Server, srv SimpleGRpcServiceServer)
Types ¶
type CrdRecipient ¶
type CrdRecipient struct { Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Scope string `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"` Plural string `protobuf:"bytes,4,opt,name=plural,proto3" json:"plural,omitempty"` Singular string `protobuf:"bytes,5,opt,name=singular,proto3" json:"singular,omitempty"` Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"` ResourceScope CrdRecipient_ResourceScope `` /* 136-byte string literal not displayed */ }
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) GetPlural ¶
func (m *CrdRecipient) GetPlural() string
func (*CrdRecipient) GetResourceScope ¶
func (m *CrdRecipient) GetResourceScope() CrdRecipient_ResourceScope
func (*CrdRecipient) GetScope ¶
func (m *CrdRecipient) GetScope() string
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 SimpleGRpcServiceClient ¶
type SimpleGRpcServiceClient interface { CreateCrd(ctx context.Context, in *CrdReqResp, opts ...grpc.CallOption) (*CrdReqResp, error) ReapCrd(ctx context.Context, in *CrdReqResp, opts ...grpc.CallOption) (*CrdReqResp, error) }
func NewSimpleGRpcServiceClient ¶
func NewSimpleGRpcServiceClient(cc *grpc.ClientConn) SimpleGRpcServiceClient
type SimpleGRpcServiceServer ¶
type SimpleGRpcServiceServer interface { CreateCrd(context.Context, *CrdReqResp) (*CrdReqResp, error) ReapCrd(context.Context, *CrdReqResp) (*CrdReqResp, error) }
Click to show internal directories.
Click to hide internal directories.