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 StorageRecipient
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) GetListKind() string
- func (m *CrdRecipient) GetPlural() string
- func (m *CrdRecipient) GetResourceScope() CrdRecipient_ResourceScope
- func (m *CrdRecipient) GetScope() string
- func (m *CrdRecipient) GetShortNames() []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
- type StorageRecipient
- func (*StorageRecipient) Descriptor() ([]byte, []int)
- func (m *StorageRecipient) GetCephRbdPool() *StorageRecipient_Rook
- func (m *StorageRecipient) GetExampleHostpathLocalVolume() *StorageRecipient_ExampleHostpath
- func (m *StorageRecipient) GetNoProvisionerLocalVolume() *StorageRecipient_NoProvisioner
- func (*StorageRecipient) ProtoMessage()
- func (m *StorageRecipient) Reset()
- func (m *StorageRecipient) String() string
- type StorageRecipient_ExampleHostpath
- func (*StorageRecipient_ExampleHostpath) Descriptor() ([]byte, []int)
- func (m *StorageRecipient_ExampleHostpath) GetPath() string
- func (m *StorageRecipient_ExampleHostpath) GetPersistentVolumeCapacity() string
- func (*StorageRecipient_ExampleHostpath) ProtoMessage()
- func (m *StorageRecipient_ExampleHostpath) Reset()
- func (m *StorageRecipient_ExampleHostpath) String() string
- type StorageRecipient_NoProvisioner
- func (*StorageRecipient_NoProvisioner) Descriptor() ([]byte, []int)
- func (m *StorageRecipient_NoProvisioner) GetMountPoint() string
- func (m *StorageRecipient_NoProvisioner) GetNodeAffinityHostnames() []string
- func (m *StorageRecipient_NoProvisioner) GetPersistentVolumeCapacity() string
- func (*StorageRecipient_NoProvisioner) ProtoMessage()
- func (m *StorageRecipient_NoProvisioner) Reset()
- func (m *StorageRecipient_NoProvisioner) String() string
- type StorageRecipient_Rook
Constants ¶
This section is empty.
Variables ¶
View Source
var CrdRecipient_ResourceScope_name = map[int32]string{
0: "Namespaced",
1: "Cluster",
}
View Source
var CrdRecipient_ResourceScope_value = map[string]int32{
"Namespaced": 0,
"Cluster": 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"` ShortNames []string `protobuf:"bytes,7,rep,name=shortNames" json:"shortNames,omitempty"` ListKind string `protobuf:"bytes,8,opt,name=listKind,proto3" json:"listKind,omitempty"` ResourceScope CrdRecipient_ResourceScope `protobuf:"varint,9,opt,name=resourceScope,proto3,enum=pb.CrdRecipient_ResourceScope" json:"resourceScope,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) GetListKind ¶
func (m *CrdRecipient) GetListKind() 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) GetShortNames ¶
func (m *CrdRecipient) GetShortNames() []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_Namespaced CrdRecipient_ResourceScope = 0 CrdRecipient_Cluster 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) }
type StorageRecipient ¶
type StorageRecipient struct { NoProvisionerLocalVolume *StorageRecipient_NoProvisioner `protobuf:"bytes,1,opt,name=noProvisionerLocalVolume" json:"noProvisionerLocalVolume,omitempty"` ExampleHostpathLocalVolume *StorageRecipient_ExampleHostpath `protobuf:"bytes,2,opt,name=exampleHostpathLocalVolume" json:"exampleHostpathLocalVolume,omitempty"` CephRbdPool *StorageRecipient_Rook `protobuf:"bytes,3,opt,name=cephRbdPool" json:"cephRbdPool,omitempty"` }
func (*StorageRecipient) Descriptor ¶
func (*StorageRecipient) Descriptor() ([]byte, []int)
func (*StorageRecipient) GetCephRbdPool ¶
func (m *StorageRecipient) GetCephRbdPool() *StorageRecipient_Rook
func (*StorageRecipient) GetExampleHostpathLocalVolume ¶
func (m *StorageRecipient) GetExampleHostpathLocalVolume() *StorageRecipient_ExampleHostpath
func (*StorageRecipient) GetNoProvisionerLocalVolume ¶
func (m *StorageRecipient) GetNoProvisionerLocalVolume() *StorageRecipient_NoProvisioner
func (*StorageRecipient) ProtoMessage ¶
func (*StorageRecipient) ProtoMessage()
func (*StorageRecipient) Reset ¶
func (m *StorageRecipient) Reset()
func (*StorageRecipient) String ¶
func (m *StorageRecipient) String() string
type StorageRecipient_ExampleHostpath ¶
type StorageRecipient_ExampleHostpath struct { PersistentVolumeCapacity string `protobuf:"bytes,1,opt,name=persistentVolumeCapacity,proto3" json:"persistentVolumeCapacity,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` }
func (*StorageRecipient_ExampleHostpath) Descriptor ¶
func (*StorageRecipient_ExampleHostpath) Descriptor() ([]byte, []int)
func (*StorageRecipient_ExampleHostpath) GetPath ¶
func (m *StorageRecipient_ExampleHostpath) GetPath() string
func (*StorageRecipient_ExampleHostpath) GetPersistentVolumeCapacity ¶
func (m *StorageRecipient_ExampleHostpath) GetPersistentVolumeCapacity() string
func (*StorageRecipient_ExampleHostpath) ProtoMessage ¶
func (*StorageRecipient_ExampleHostpath) ProtoMessage()
func (*StorageRecipient_ExampleHostpath) Reset ¶
func (m *StorageRecipient_ExampleHostpath) Reset()
func (*StorageRecipient_ExampleHostpath) String ¶
func (m *StorageRecipient_ExampleHostpath) String() string
type StorageRecipient_NoProvisioner ¶
type StorageRecipient_NoProvisioner struct { PersistentVolumeCapacity string `protobuf:"bytes,1,opt,name=persistentVolumeCapacity,proto3" json:"persistentVolumeCapacity,omitempty"` MountPoint string `protobuf:"bytes,2,opt,name=mountPoint,proto3" json:"mountPoint,omitempty"` NodeAffinityHostnames []string `protobuf:"bytes,3,rep,name=nodeAffinityHostnames" json:"nodeAffinityHostnames,omitempty"` }
func (*StorageRecipient_NoProvisioner) Descriptor ¶
func (*StorageRecipient_NoProvisioner) Descriptor() ([]byte, []int)
func (*StorageRecipient_NoProvisioner) GetMountPoint ¶
func (m *StorageRecipient_NoProvisioner) GetMountPoint() string
func (*StorageRecipient_NoProvisioner) GetNodeAffinityHostnames ¶
func (m *StorageRecipient_NoProvisioner) GetNodeAffinityHostnames() []string
func (*StorageRecipient_NoProvisioner) GetPersistentVolumeCapacity ¶
func (m *StorageRecipient_NoProvisioner) GetPersistentVolumeCapacity() string
func (*StorageRecipient_NoProvisioner) ProtoMessage ¶
func (*StorageRecipient_NoProvisioner) ProtoMessage()
func (*StorageRecipient_NoProvisioner) Reset ¶
func (m *StorageRecipient_NoProvisioner) Reset()
func (*StorageRecipient_NoProvisioner) String ¶
func (m *StorageRecipient_NoProvisioner) String() string
type StorageRecipient_Rook ¶
type StorageRecipient_Rook struct {
PersistentVolumeCapacity string `protobuf:"bytes,1,opt,name=persistentVolumeCapacity,proto3" json:"persistentVolumeCapacity,omitempty"`
}
func (*StorageRecipient_Rook) Descriptor ¶
func (*StorageRecipient_Rook) Descriptor() ([]byte, []int)
func (*StorageRecipient_Rook) GetPersistentVolumeCapacity ¶
func (m *StorageRecipient_Rook) GetPersistentVolumeCapacity() string
func (*StorageRecipient_Rook) ProtoMessage ¶
func (*StorageRecipient_Rook) ProtoMessage()
func (*StorageRecipient_Rook) Reset ¶
func (m *StorageRecipient_Rook) Reset()
func (*StorageRecipient_Rook) String ¶
func (m *StorageRecipient_Rook) String() string
Click to show internal directories.
Click to hide internal directories.