Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSubscriptionServiceServer(s grpc.ServiceRegistrar, srv SubscriptionServiceServer)
- type GetCurrentSubscriptionRequest
- func (*GetCurrentSubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetCurrentSubscriptionRequest) ProtoMessage()
- func (x *GetCurrentSubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *GetCurrentSubscriptionRequest) Reset()
- func (x *GetCurrentSubscriptionRequest) String() string
- type GetCurrentSubscriptionResponse
- func (*GetCurrentSubscriptionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentSubscriptionResponse) GetSubscription() *Subscription
- func (*GetCurrentSubscriptionResponse) ProtoMessage()
- func (x *GetCurrentSubscriptionResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurrentSubscriptionResponse) Reset()
- func (x *GetCurrentSubscriptionResponse) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetCloudProvider() v1beta1.CloudProvider
- func (x *Product) GetProductType() ProductType
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type ProductType
- func (ProductType) Descriptor() protoreflect.EnumDescriptor
- func (x ProductType) Enum() *ProductType
- func (ProductType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProductType) Number() protoreflect.EnumNumber
- func (x ProductType) String() string
- func (ProductType) Type() protoreflect.EnumType
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription) GetEndAt() *timestamppb.Timestamp
- func (x *Subscription) GetProducts() []*Product
- func (x *Subscription) GetStartAt() *timestamppb.Timestamp
- func (x *Subscription) GetState() Subscription_State
- func (*Subscription) ProtoMessage()
- func (x *Subscription) ProtoReflect() protoreflect.Message
- func (x *Subscription) Reset()
- func (x *Subscription) String() string
- type SubscriptionServiceClient
- type SubscriptionServiceServer
- type Subscription_State
- func (Subscription_State) Descriptor() protoreflect.EnumDescriptor
- func (x Subscription_State) Enum() *Subscription_State
- func (Subscription_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Subscription_State) Number() protoreflect.EnumNumber
- func (x Subscription_State) String() string
- func (Subscription_State) Type() protoreflect.EnumType
- type UnimplementedSubscriptionServiceServer
- type UnsafeSubscriptionServiceServer
Constants ¶
const (
SubscriptionService_GetCurrentSubscription_FullMethodName = "/redpanda.api.ui.v1alpha1.SubscriptionService/GetCurrentSubscription"
)
Variables ¶
var ( ProductType_name = map[int32]string{ 0: "PRODUCT_TYPE_UNSPECIFIED", 1: "PRODUCT_TYPE_DEDICATED", 2: "PRODUCT_TYPE_BYOC", 3: "PRODUCT_TYPE_SERVERLESS", } ProductType_value = map[string]int32{ "PRODUCT_TYPE_UNSPECIFIED": 0, "PRODUCT_TYPE_DEDICATED": 1, "PRODUCT_TYPE_BYOC": 2, "PRODUCT_TYPE_SERVERLESS": 3, } )
Enum value maps for ProductType.
var ( Subscription_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "STATE_ACTIVE", 2: "STATE_SUSPENDED", } Subscription_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "STATE_ACTIVE": 1, "STATE_SUSPENDED": 2, } )
Enum value maps for Subscription_State.
var File_redpanda_api_ui_v1alpha1_subscription_proto protoreflect.FileDescriptor
var SubscriptionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "redpanda.api.ui.v1alpha1.SubscriptionService", HandlerType: (*SubscriptionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCurrentSubscription", Handler: _SubscriptionService_GetCurrentSubscription_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "redpanda/api/ui/v1alpha1/subscription.proto", }
SubscriptionService_ServiceDesc is the grpc.ServiceDesc for SubscriptionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSubscriptionServiceServer ¶
func RegisterSubscriptionServiceServer(s grpc.ServiceRegistrar, srv SubscriptionServiceServer)
Types ¶
type GetCurrentSubscriptionRequest ¶
type GetCurrentSubscriptionRequest struct {
// contains filtered or unexported fields
}
func (*GetCurrentSubscriptionRequest) Descriptor
deprecated
func (*GetCurrentSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*GetCurrentSubscriptionRequest) ProtoMessage ¶
func (*GetCurrentSubscriptionRequest) ProtoMessage()
func (*GetCurrentSubscriptionRequest) ProtoReflect ¶
func (x *GetCurrentSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*GetCurrentSubscriptionRequest) Reset ¶
func (x *GetCurrentSubscriptionRequest) Reset()
func (*GetCurrentSubscriptionRequest) String ¶
func (x *GetCurrentSubscriptionRequest) String() string
type GetCurrentSubscriptionResponse ¶
type GetCurrentSubscriptionResponse struct { Subscription *Subscription `protobuf:"bytes,1,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentSubscriptionResponse) Descriptor
deprecated
func (*GetCurrentSubscriptionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentSubscriptionResponse.ProtoReflect.Descriptor instead.
func (*GetCurrentSubscriptionResponse) GetSubscription ¶
func (x *GetCurrentSubscriptionResponse) GetSubscription() *Subscription
func (*GetCurrentSubscriptionResponse) ProtoMessage ¶
func (*GetCurrentSubscriptionResponse) ProtoMessage()
func (*GetCurrentSubscriptionResponse) ProtoReflect ¶
func (x *GetCurrentSubscriptionResponse) ProtoReflect() protoreflect.Message
func (*GetCurrentSubscriptionResponse) Reset ¶
func (x *GetCurrentSubscriptionResponse) Reset()
func (*GetCurrentSubscriptionResponse) String ¶
func (x *GetCurrentSubscriptionResponse) String() string
type Product ¶
type Product struct { CloudProvider v1beta1.CloudProvider `` /* 154-byte string literal not displayed */ ProductType ProductType `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
Product represents a redpanda cloud product like serverless, aws byoc etc.
func (*Product) Descriptor
deprecated
func (*Product) GetCloudProvider ¶
func (x *Product) GetCloudProvider() v1beta1.CloudProvider
func (*Product) GetProductType ¶
func (x *Product) GetProductType() ProductType
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type ProductType ¶
type ProductType int32
ProductType defines type of redpanda cloud products.
const ( ProductType_PRODUCT_TYPE_UNSPECIFIED ProductType = 0 ProductType_PRODUCT_TYPE_DEDICATED ProductType = 1 ProductType_PRODUCT_TYPE_BYOC ProductType = 2 ProductType_PRODUCT_TYPE_SERVERLESS ProductType = 3 )
func (ProductType) Descriptor ¶
func (ProductType) Descriptor() protoreflect.EnumDescriptor
func (ProductType) Enum ¶
func (x ProductType) Enum() *ProductType
func (ProductType) EnumDescriptor
deprecated
func (ProductType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProductType.Descriptor instead.
func (ProductType) Number ¶
func (x ProductType) Number() protoreflect.EnumNumber
func (ProductType) String ¶
func (x ProductType) String() string
func (ProductType) Type ¶
func (ProductType) Type() protoreflect.EnumType
type Subscription ¶
type Subscription struct { // this should be UTC aligned to midnight StartAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` // this should be UTC aligned to midnight EndAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_at,json=endAt,proto3,oneof" json:"end_at,omitempty"` Products []*Product `protobuf:"bytes,3,rep,name=products,proto3" json:"products,omitempty"` State Subscription_State `protobuf:"varint,4,opt,name=state,proto3,enum=redpanda.api.ui.v1alpha1.Subscription_State" json:"state,omitempty"` // contains filtered or unexported fields }
Subscription links a mean of payment to an organization
func (*Subscription) Descriptor
deprecated
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetEndAt ¶
func (x *Subscription) GetEndAt() *timestamppb.Timestamp
func (*Subscription) GetProducts ¶
func (x *Subscription) GetProducts() []*Product
func (*Subscription) GetStartAt ¶
func (x *Subscription) GetStartAt() *timestamppb.Timestamp
func (*Subscription) GetState ¶
func (x *Subscription) GetState() Subscription_State
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶
func (x *Subscription) Reset()
func (*Subscription) String ¶
func (x *Subscription) String() string
type SubscriptionServiceClient ¶
type SubscriptionServiceClient interface {
GetCurrentSubscription(ctx context.Context, in *GetCurrentSubscriptionRequest, opts ...grpc.CallOption) (*GetCurrentSubscriptionResponse, error)
}
SubscriptionServiceClient is the client API for SubscriptionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSubscriptionServiceClient ¶
func NewSubscriptionServiceClient(cc grpc.ClientConnInterface) SubscriptionServiceClient
type SubscriptionServiceServer ¶
type SubscriptionServiceServer interface {
GetCurrentSubscription(context.Context, *GetCurrentSubscriptionRequest) (*GetCurrentSubscriptionResponse, error)
}
SubscriptionServiceServer is the server API for SubscriptionService service. All implementations should embed UnimplementedSubscriptionServiceServer for forward compatibility
type Subscription_State ¶
type Subscription_State int32
const ( Subscription_STATE_UNSPECIFIED Subscription_State = 0 Subscription_STATE_ACTIVE Subscription_State = 1 Subscription_STATE_SUSPENDED Subscription_State = 2 )
func (Subscription_State) Descriptor ¶
func (Subscription_State) Descriptor() protoreflect.EnumDescriptor
func (Subscription_State) Enum ¶
func (x Subscription_State) Enum() *Subscription_State
func (Subscription_State) EnumDescriptor
deprecated
func (Subscription_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Subscription_State.Descriptor instead.
func (Subscription_State) Number ¶
func (x Subscription_State) Number() protoreflect.EnumNumber
func (Subscription_State) String ¶
func (x Subscription_State) String() string
func (Subscription_State) Type ¶
func (Subscription_State) Type() protoreflect.EnumType
type UnimplementedSubscriptionServiceServer ¶
type UnimplementedSubscriptionServiceServer struct { }
UnimplementedSubscriptionServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedSubscriptionServiceServer) GetCurrentSubscription ¶
func (UnimplementedSubscriptionServiceServer) GetCurrentSubscription(context.Context, *GetCurrentSubscriptionRequest) (*GetCurrentSubscriptionResponse, error)
type UnsafeSubscriptionServiceServer ¶
type UnsafeSubscriptionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSubscriptionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SubscriptionServiceServer will result in compilation errors.