uiv1alpha1

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubscriptionService_GetCurrentSubscription_FullMethodName = "/redpanda.api.ui.v1alpha1.SubscriptionService/GetCurrentSubscription"
)

Variables

View Source
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.

View Source
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.

View Source
var File_redpanda_api_ui_v1alpha1_subscription_proto protoreflect.FileDescriptor
View Source
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 (*GetCurrentSubscriptionRequest) Reset

func (x *GetCurrentSubscriptionRequest) Reset()

func (*GetCurrentSubscriptionRequest) 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 (*GetCurrentSubscriptionResponse) Reset

func (x *GetCurrentSubscriptionResponse) Reset()

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

Deprecated: Use Product.ProtoReflect.Descriptor instead.

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

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

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) 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

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.

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) Enum

func (Subscription_State) EnumDescriptor deprecated

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

Deprecated: Use Subscription_State.Descriptor instead.

func (Subscription_State) Number

func (Subscription_State) String

func (x Subscription_State) String() string

func (Subscription_State) Type

type UnimplementedSubscriptionServiceServer

type UnimplementedSubscriptionServiceServer struct {
}

UnimplementedSubscriptionServiceServer should be embedded to have forward compatible implementations.

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.

Jump to

Keyboard shortcuts

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