v1

package
v0.0.0-...-4a53d6f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 21 Imported by: 6

Documentation

Overview

Package v1 contains API Schema definitions for the account v1 API group +kubebuilder:object:generate=true +groupName=account.sealos.io

Index

Constants

View Source
const (
	// Consumption 消费
	Consumption common.Type = iota
	// Recharge 充值
	Recharge
	TransferIn
	TransferOut
	ActivityGiving
)
View Source
const (
	Name  = "name"
	Owner = "owner"
)
View Source
const (
	QueryTypeNamespacesHistory = "NamespacesHistory"
	QueryTypeProperties        = "Properties"
	QueryTypeAppType           = "AppType"
	QueryTypeRecharge          = "Recharge"
)
View Source
const (
	NormalDebtNamespaceAnnoStatus  = "Normal"
	SuspendDebtNamespaceAnnoStatus = "Suspend"
	ResumeDebtNamespaceAnnoStatus  = "Resume"
)
View Source
const (
	DebtSchedulerName     = "sealos-debt-scheduler"
	PreviousSchedulerName = "sealos-debt/previousScheduler"
	PodPhaseSuspended     = "Suspended"
)
View Source
const (
	AccountSystemNamespaceEnv = "ACCOUNT_SYSTEM_NAMESPACE"
)
View Source
const DebtNamespaceAnnoStatusKey = "debt.sealos/status"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "account.sealos.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var DefaultDebtConfig = map[DebtStatusType]int64{}

Functions

func GetAccountDebtBalance

func GetAccountDebtBalance(account pkgtype.Account) float64

Types

type Account

type Account struct {
	// Using userID as Account name
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AccountSpec   `json:"spec,omitempty"`
	Status AccountStatus `json:"status,omitempty"`
}

Account is the Schema for the accounts API

func (*Account) DeepCopy

func (in *Account) DeepCopy() *Account

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Account.

func (*Account) DeepCopyInto

func (in *Account) DeepCopyInto(out *Account)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Account) DeepCopyObject

func (in *Account) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AccountList

type AccountList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Account `json:"items"`
}

AccountList contains a list of Account

func (*AccountList) DeepCopy

func (in *AccountList) DeepCopy() *AccountList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountList.

func (*AccountList) DeepCopyInto

func (in *AccountList) DeepCopyInto(out *AccountList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccountList) DeepCopyObject

func (in *AccountList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AccountSpec

type AccountSpec struct{}

AccountSpec defines the desired state of Account

func (*AccountSpec) DeepCopy

func (in *AccountSpec) DeepCopy() *AccountSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountSpec.

func (*AccountSpec) DeepCopyInto

func (in *AccountSpec) DeepCopyInto(out *AccountSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccountStatus

type AccountStatus struct {
	// EncryptBalance is to encrypt balance
	EncryptBalance *string `json:"encryptBalance,omitempty"`
	// Recharge amount
	Balance int64 `json:"balance,omitempty"`
	// ActivityBonus: for demonstration purposes only and does not participate in calculation
	ActivityBonus int64 `json:"activityBonus,omitempty"`
	//Deduction amount
	DeductionBalance int64 `json:"deductionBalance,omitempty"`
	// EncryptDeductionBalance is to encrypt DeductionBalance
	EncryptDeductionBalance *string `json:"encryptDeductionBalance,omitempty"`
	// delete in the future
	ChargeList []Charge `json:"chargeList,omitempty"`
}

AccountStatus defines the observed state of Account

func (*AccountStatus) DeepCopy

func (in *AccountStatus) DeepCopy() *AccountStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountStatus.

func (*AccountStatus) DeepCopyInto

func (in *AccountStatus) DeepCopyInto(out *AccountStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingInfoQuery

type BillingInfoQuery struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BillingInfoQuerySpec   `json:"spec,omitempty"`
	Status BillingInfoQueryStatus `json:"status,omitempty"`
}

BillingInfoQuery is the Schema for the billinginfoqueries API

func (*BillingInfoQuery) DeepCopy

func (in *BillingInfoQuery) DeepCopy() *BillingInfoQuery

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingInfoQuery.

func (*BillingInfoQuery) DeepCopyInto

func (in *BillingInfoQuery) DeepCopyInto(out *BillingInfoQuery)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BillingInfoQuery) DeepCopyObject

func (in *BillingInfoQuery) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BillingInfoQueryList

type BillingInfoQueryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BillingInfoQuery `json:"items"`
}

BillingInfoQueryList contains a list of BillingInfoQuery

func (*BillingInfoQueryList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingInfoQueryList.

func (*BillingInfoQueryList) DeepCopyInto

func (in *BillingInfoQueryList) DeepCopyInto(out *BillingInfoQueryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BillingInfoQueryList) DeepCopyObject

func (in *BillingInfoQueryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BillingInfoQuerySpec

type BillingInfoQuerySpec struct {
	QueryType string            `json:"queryType"`
	Args      map[string]string `json:"args,omitempty"`
}

BillingInfoQuerySpec defines the desired state of BillingInfoQuery

func (*BillingInfoQuerySpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingInfoQuerySpec.

func (*BillingInfoQuerySpec) DeepCopyInto

func (in *BillingInfoQuerySpec) DeepCopyInto(out *BillingInfoQuerySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingInfoQueryStatus

type BillingInfoQueryStatus struct {
	Result        string `json:"result"`
	Status        Status `json:"status"`
	StatusDetails string `json:"statusDetails"`
}

BillingInfoQueryStatus defines the observed state of BillingInfoQuery

func (*BillingInfoQueryStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingInfoQueryStatus.

func (*BillingInfoQueryStatus) DeepCopyInto

func (in *BillingInfoQueryStatus) DeepCopyInto(out *BillingInfoQueryStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingPropertiesForQuery

type BillingPropertiesForQuery struct {
}

func (*BillingPropertiesForQuery) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingPropertiesForQuery.

func (*BillingPropertiesForQuery) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingRecord

type BillingRecord struct {
	ResourceType string `json:"resourceType"`
	Price        string `json:"price"`
	DiscountType string `json:"discountType,omitempty"`
}

func (*BillingRecord) DeepCopy

func (in *BillingRecord) DeepCopy() *BillingRecord

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingRecord.

func (*BillingRecord) DeepCopyInto

func (in *BillingRecord) DeepCopyInto(out *BillingRecord)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingRecordQuery

type BillingRecordQuery struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BillingRecordQuerySpec   `json:"spec,omitempty"`
	Status BillingRecordQueryStatus `json:"status,omitempty"`
}

BillingRecordQuery is the Schema for the billingrecordqueries API

func (*BillingRecordQuery) DeepCopy

func (in *BillingRecordQuery) DeepCopy() *BillingRecordQuery

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingRecordQuery.

func (*BillingRecordQuery) DeepCopyInto

func (in *BillingRecordQuery) DeepCopyInto(out *BillingRecordQuery)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BillingRecordQuery) DeepCopyObject

func (in *BillingRecordQuery) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BillingRecordQueryItem

type BillingRecordQueryItem struct {
	Time                         metav1.Time `json:"time" bson:"time"`
	BillingRecordQueryItemInline `json:",inline"`
}

func (*BillingRecordQueryItem) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingRecordQueryItem.

func (*BillingRecordQueryItem) DeepCopyInto

func (in *BillingRecordQueryItem) DeepCopyInto(out *BillingRecordQueryItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingRecordQueryItemInline

type BillingRecordQueryItemInline struct {
	Name      string      `json:"name,omitempty" bson:"name,omitempty"`
	OrderID   string      `json:"order_id" bson:"order_id"`
	Namespace string      `json:"namespace,omitempty" bson:"namespace,omitempty"`
	Type      common.Type `json:"type" bson:"type"`
	AppType   string      `json:"appType,omitempty" bson:"appType,omitempty"`
	Costs     Costs       `json:"costs,omitempty" bson:"costs,omitempty"`
	//Amount = PaymentAmount + GiftAmount
	Amount int64 `json:"amount,omitempty" bson:"amount"`
	// when Type = Recharge, PaymentAmount is the amount of recharge
	Payment *PaymentForQuery `json:"payment,omitempty" bson:"payment,omitempty"`
}

func (*BillingRecordQueryItemInline) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingRecordQueryItemInline.

func (*BillingRecordQueryItemInline) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingRecordQueryList

type BillingRecordQueryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BillingRecordQuery `json:"items"`
}

BillingRecordQueryList contains a list of BillingRecordQuery

func (*BillingRecordQueryList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingRecordQueryList.

func (*BillingRecordQueryList) DeepCopyInto

func (in *BillingRecordQueryList) DeepCopyInto(out *BillingRecordQueryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BillingRecordQueryList) DeepCopyObject

func (in *BillingRecordQueryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BillingRecordQuerySpec

type BillingRecordQuerySpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Page      int         `json:"page"`
	PageSize  int         `json:"pageSize"`
	Namespace string      `json:"namespace,omitempty"`
	StartTime metav1.Time `json:"startTime"`
	EndTime   metav1.Time `json:"endTime"`
	OrderID   string      `json:"orderID,omitempty"`
	Type      Type        `json:"type"`
	AppType   string      `json:"appType,omitempty"`
}

BillingRecordQuerySpec defines the desired state of BillingRecordQuery

func (*BillingRecordQuerySpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingRecordQuerySpec.

func (*BillingRecordQuerySpec) DeepCopyInto

func (in *BillingRecordQuerySpec) DeepCopyInto(out *BillingRecordQuerySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BillingRecordQueryStatus

type BillingRecordQueryStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	TotalCount      int                      `json:"totalCount"`
	PageLength      int                      `json:"pageLength"`
	RechargeAmount  int64                    `json:"rechargeAmount"`
	DeductionAmount Costs                    `json:"deductionAmount,omitempty"`
	Items           []BillingRecordQueryItem `json:"item,omitempty"`
	Status          string                   `json:"status"`
}

BillingRecordQueryStatus defines the observed state of BillingRecordQuery

func (*BillingRecordQueryStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BillingRecordQueryStatus.

func (*BillingRecordQueryStatus) DeepCopyInto

func (in *BillingRecordQueryStatus) DeepCopyInto(out *BillingRecordQueryStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Charge

type Charge struct {
	Amount int64 `json:"balance,omitempty"`

	// deduction info will Record in the Charge
	DeductionAmount    int64  `json:"deductionAmount,omitempty"`
	AccountBalanceName string `json:"accountBalanceName,omitempty"`

	Time     metav1.Time `json:"time,omitempty"`
	Status   string      `json:"status,omitempty"`
	TradeNO  string      `json:"tradeNO,omitempty"`
	Describe string      `json:"describe,omitempty"`
}

func (*Charge) DeepCopy

func (in *Charge) DeepCopy() *Charge

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Charge.

func (*Charge) DeepCopyInto

func (in *Charge) DeepCopyInto(out *Charge)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Costs

type Costs map[string]int64

func (Costs) DeepCopy

func (in Costs) DeepCopy() Costs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Costs.

func (Costs) DeepCopyInto

func (in Costs) DeepCopyInto(out *Costs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Debt

type Debt struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DebtSpec   `json:"spec,omitempty"`
	Status DebtStatus `json:"status,omitempty"`
}

Debt is the Schema for the debts API

func (*Debt) DeepCopy

func (in *Debt) DeepCopy() *Debt

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Debt.

func (*Debt) DeepCopyInto

func (in *Debt) DeepCopyInto(out *Debt)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Debt) DeepCopyObject

func (in *Debt) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DebtList

type DebtList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Debt `json:"items"`
}

DebtList contains a list of Debt

func (*DebtList) DeepCopy

func (in *DebtList) DeepCopy() *DebtList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebtList.

func (*DebtList) DeepCopyInto

func (in *DebtList) DeepCopyInto(out *DebtList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DebtList) DeepCopyObject

func (in *DebtList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DebtSpec

type DebtSpec struct {
	UserName string `json:"userName,omitempty"`
}

DebtSpec defines the desired state of Debt

func (*DebtSpec) DeepCopy

func (in *DebtSpec) DeepCopy() *DebtSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebtSpec.

func (*DebtSpec) DeepCopyInto

func (in *DebtSpec) DeepCopyInto(out *DebtSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DebtStatus

type DebtStatus struct {
	LastUpdateTimestamp int64              `json:"lastUpdateTimestamp,omitempty"`
	DebtStatusRecords   []DebtStatusRecord `json:"debtStatusRecords,omitempty"`
	AccountDebtStatus   DebtStatusType     `json:"status,omitempty"`
}

DebtStatus defines the observed state of Debt

func (*DebtStatus) DeepCopy

func (in *DebtStatus) DeepCopy() *DebtStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebtStatus.

func (*DebtStatus) DeepCopyInto

func (in *DebtStatus) DeepCopyInto(out *DebtStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DebtStatusRecord

type DebtStatusRecord struct {
	LastStatus    DebtStatusType `json:"lastDebtStatus,omitempty"`
	CurrentStatus DebtStatusType `json:"currentStatus,omitempty"`
	UpdateTime    int64          `json:"updateTime,omitempty"`
}

DebtStatusRecord defines the observed state of Debt

type DebtStatusType

type DebtStatusType string
const (
	DebtStatusNormal DebtStatusType = "Normal"
	DebtStatusSmall  DebtStatusType = "Small"
	DebtStatusMedium DebtStatusType = "Medium"
	DebtStatusLarge  DebtStatusType = "Large"

	NormalPeriod              DebtStatusType = "NormalPeriod"
	WarningPeriod             DebtStatusType = "WarningPeriod"
	ApproachingDeletionPeriod DebtStatusType = "ApproachingDeletionPeriod"
	ImminentDeletionPeriod    DebtStatusType = "ImminentDeletionPeriod"
	FinalDeletionPeriod       DebtStatusType = "FinalDeletionPeriod"

	PreWarningPeriod DebtStatusType = "PreWarningPeriod"
	SuspendPeriod    DebtStatusType = "SuspendPeriod"
	RemovedPeriod    DebtStatusType = "RemovedPeriod"

	DebtPrefix = "debt-"
	DaySecond  = 24 * 60 * 60
)

type DebtValidate

type DebtValidate struct {
	Client    client.Client
	AccountV2 *cockroach.Cockroach
}

func (*DebtValidate) Handle

type NamespaceBillingHistory

type NamespaceBillingHistory struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NamespaceBillingHistorySpec   `json:"spec,omitempty"`
	Status NamespaceBillingHistoryStatus `json:"status,omitempty"`
}

NamespaceBillingHistory is the Schema for the namespacebillinghistories API

func (*NamespaceBillingHistory) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceBillingHistory.

func (*NamespaceBillingHistory) DeepCopyInto

func (in *NamespaceBillingHistory) DeepCopyInto(out *NamespaceBillingHistory)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamespaceBillingHistory) DeepCopyObject

func (in *NamespaceBillingHistory) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NamespaceBillingHistoryList

type NamespaceBillingHistoryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NamespaceBillingHistory `json:"items"`
}

NamespaceBillingHistoryList contains a list of NamespaceBillingHistory

func (*NamespaceBillingHistoryList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceBillingHistoryList.

func (*NamespaceBillingHistoryList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NamespaceBillingHistoryList) DeepCopyObject

func (in *NamespaceBillingHistoryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NamespaceBillingHistorySpec

type NamespaceBillingHistorySpec struct {
	StartTime metav1.Time `json:"startTime,omitempty"`
	EndTime   metav1.Time `json:"endTime,omitempty"`
	Type      Type        `json:"type"`
}

NamespaceBillingHistorySpec defines the desired state of NamespaceBillingHistory

func (*NamespaceBillingHistorySpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceBillingHistorySpec.

func (*NamespaceBillingHistorySpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespaceBillingHistoryStatus

type NamespaceBillingHistoryStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	NamespaceList []string `json:"namespaceList,omitempty"`
	Status        Status   `json:"status,omitempty"`
	Detail        string   `json:"detail,omitempty"`
}

NamespaceBillingHistoryStatus defines the observed state of NamespaceBillingHistory

func (*NamespaceBillingHistoryStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceBillingHistoryStatus.

func (*NamespaceBillingHistoryStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Payment

type Payment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PaymentSpec   `json:"spec,omitempty"`
	Status PaymentStatus `json:"status,omitempty"`
}

Payment is the Schema for the payments API

func (*Payment) DeepCopy

func (in *Payment) DeepCopy() *Payment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Payment.

func (*Payment) DeepCopyInto

func (in *Payment) DeepCopyInto(out *Payment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Payment) DeepCopyObject

func (in *Payment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Payment) ToJSON

func (p *Payment) ToJSON() string

type PaymentForQuery

type PaymentForQuery struct {
	Amount int64 `json:"amount,omitempty" bson:"amount,omitempty"`
}

func (*PaymentForQuery) DeepCopy

func (in *PaymentForQuery) DeepCopy() *PaymentForQuery

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PaymentForQuery.

func (*PaymentForQuery) DeepCopyInto

func (in *PaymentForQuery) DeepCopyInto(out *PaymentForQuery)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PaymentList

type PaymentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Payment `json:"items"`
}

PaymentList contains a list of Payment

func (*PaymentList) DeepCopy

func (in *PaymentList) DeepCopy() *PaymentList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PaymentList.

func (*PaymentList) DeepCopyInto

func (in *PaymentList) DeepCopyInto(out *PaymentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PaymentList) DeepCopyObject

func (in *PaymentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PaymentSpec

type PaymentSpec struct {

	// UserID is the user id who want to recharge
	UserID string `json:"userID,omitempty"`
	// Amount is the amount of recharge
	Amount int64 `json:"amount,omitempty"`
	// e.g. wechat, alipay, creditcard, etc.
	//+kubebuilder:default:=wechat
	PaymentMethod string `json:"paymentMethod,omitempty"`
}

PaymentSpec defines the desired state of Payment

func (*PaymentSpec) DeepCopy

func (in *PaymentSpec) DeepCopy() *PaymentSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PaymentSpec.

func (*PaymentSpec) DeepCopyInto

func (in *PaymentSpec) DeepCopyInto(out *PaymentSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PaymentStatus

type PaymentStatus struct {
	// TradeNO is the tradeNO of wechatpay
	TradeNO string `json:"tradeNO,omitempty"`
	// CodeURL is the codeURL of wechatpay
	CodeURL string `json:"codeURL,omitempty"`
	// Status is the status of wechatpay, charging, closed, timeout
	Status string `json:"status,omitempty"`
}

PaymentStatus defines the observed state of Payment

func (*PaymentStatus) DeepCopy

func (in *PaymentStatus) DeepCopy() *PaymentStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PaymentStatus.

func (*PaymentStatus) DeepCopyInto

func (in *PaymentStatus) DeepCopyInto(out *PaymentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PriceQuery

type PriceQuery struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PriceQuerySpec   `json:"spec,omitempty"`
	Status PriceQueryStatus `json:"status,omitempty"`
}

PriceQuery is the Schema for the pricequeries API

func (*PriceQuery) DeepCopy

func (in *PriceQuery) DeepCopy() *PriceQuery

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriceQuery.

func (*PriceQuery) DeepCopyInto

func (in *PriceQuery) DeepCopyInto(out *PriceQuery)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PriceQuery) DeepCopyObject

func (in *PriceQuery) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PriceQueryList

type PriceQueryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PriceQuery `json:"items"`
}

PriceQueryList contains a list of PriceQuery

func (*PriceQueryList) DeepCopy

func (in *PriceQueryList) DeepCopy() *PriceQueryList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriceQueryList.

func (*PriceQueryList) DeepCopyInto

func (in *PriceQueryList) DeepCopyInto(out *PriceQueryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PriceQueryList) DeepCopyObject

func (in *PriceQueryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PriceQuerySpec

type PriceQuerySpec struct {
}

PriceQuerySpec defines the desired state of PriceQuery

func (*PriceQuerySpec) DeepCopy

func (in *PriceQuerySpec) DeepCopy() *PriceQuerySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriceQuerySpec.

func (*PriceQuerySpec) DeepCopyInto

func (in *PriceQuerySpec) DeepCopyInto(out *PriceQuerySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PriceQueryStatus

type PriceQueryStatus struct {
	BillingRecords []BillingRecord `json:"billingRecords,omitempty"`
}

PriceQueryStatus defines the observed state of PriceQuery

func (*PriceQueryStatus) DeepCopy

func (in *PriceQueryStatus) DeepCopy() *PriceQueryStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriceQueryStatus.

func (*PriceQueryStatus) DeepCopyInto

func (in *PriceQueryStatus) DeepCopyInto(out *PriceQueryStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PropertyQuery

type PropertyQuery struct {
	Name      string  `json:"name" bson:"name"`
	Alias     string  `json:"alias" bson:"alias"`
	UnitPrice float64 `json:"unit_price" bson:"unit_price"`
	Unit      string  `json:"unit" bson:"unit"`
}

func (*PropertyQuery) DeepCopy

func (in *PropertyQuery) DeepCopy() *PropertyQuery

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PropertyQuery.

func (*PropertyQuery) DeepCopyInto

func (in *PropertyQuery) DeepCopyInto(out *PropertyQuery)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Status

type Status string
const (
	Completed Status = "completed"
	Create    Status = "create"
	Failed    Status = "failed"
)

type Transfer

type Transfer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TransferSpec   `json:"spec,omitempty"`
	Status TransferStatus `json:"status,omitempty"`
}

Transfer is the Schema for the transfers API

func (*Transfer) DeepCopy

func (in *Transfer) DeepCopy() *Transfer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Transfer.

func (*Transfer) DeepCopyInto

func (in *Transfer) DeepCopyInto(out *Transfer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Transfer) DeepCopyObject

func (in *Transfer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Transfer) ToJSON

func (t *Transfer) ToJSON() string

type TransferList

type TransferList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Transfer `json:"items"`
}

TransferList contains a list of Transfer

func (*TransferList) DeepCopy

func (in *TransferList) DeepCopy() *TransferList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransferList.

func (*TransferList) DeepCopyInto

func (in *TransferList) DeepCopyInto(out *TransferList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TransferList) DeepCopyObject

func (in *TransferList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TransferSpec

type TransferSpec struct {
	From string `json:"from,omitempty"`
	To   string `json:"to"`
	// +kubebuilder:validation:Minimum=1000000
	Amount int64 `json:"amount"`
}

TransferSpec defines the desired state of Transfer

func (*TransferSpec) DeepCopy

func (in *TransferSpec) DeepCopy() *TransferSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransferSpec.

func (*TransferSpec) DeepCopyInto

func (in *TransferSpec) DeepCopyInto(out *TransferSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TransferState

type TransferState int
const (
	TransferStatePending TransferState = iota
	TransferStateInProgress
	TransferStateCompleted
	TransferStateFailed
)

type TransferStatus

type TransferStatus struct {
	Reason   string        `json:"reason,omitempty"`
	Progress TransferState `json:"progress,omitempty"`
}

TransferStatus defines the observed state of Transfer

func (*TransferStatus) DeepCopy

func (in *TransferStatus) DeepCopy() *TransferStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransferStatus.

func (*TransferStatus) DeepCopyInto

func (in *TransferStatus) DeepCopyInto(out *TransferStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Type

type Type common.Type
const QueryAllType Type = -1

Jump to

Keyboard shortcuts

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