Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the payments v1 API group. +kubebuilder:object:generate=true +groupName=payments.shophub.local
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "payments.shophub.local", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. // //nolint:staticcheck // SA1019: scheme.Builder still scaffolded by kubebuilder; tracked upstream. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network string
Network identifies the blockchain (test)net the wallet targets. +kubebuilder:validation:Enum=ethereum;sepolia;polygon-amoy;solana
type Wallet ¶
type Wallet struct {
metav1.TypeMeta `json:",inline"`
// metadata is a standard object metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitzero"`
// spec defines the desired state of Wallet
// +required
Spec WalletSpec `json:"spec"`
// status defines the observed state of Wallet
// +optional
Status WalletStatus `json:"status,omitzero"`
}
Wallet is the Schema for the wallets API
func (*Wallet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Wallet.
func (*Wallet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Wallet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WalletList ¶
type WalletList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitzero"`
Items []Wallet `json:"items"`
}
WalletList contains a list of Wallet
func (*WalletList) DeepCopy ¶
func (in *WalletList) DeepCopy() *WalletList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WalletList.
func (*WalletList) DeepCopyInto ¶
func (in *WalletList) DeepCopyInto(out *WalletList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WalletList) DeepCopyObject ¶
func (in *WalletList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WalletSpec ¶
type WalletSpec struct {
// Network is the blockchain the wallet operates on. Testnets only for this project.
Network Network `json:"network"`
// OwnerAddress optionally pins the wallet to a pre-existing on-chain address.
// If nil, the operator generates a fresh keypair and stores the private key in a Secret.
// +optional
OwnerAddress *string `json:"ownerAddress,omitempty"`
}
WalletSpec defines the desired state of Wallet.
func (*WalletSpec) DeepCopy ¶
func (in *WalletSpec) DeepCopy() *WalletSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WalletSpec.
func (*WalletSpec) DeepCopyInto ¶
func (in *WalletSpec) DeepCopyInto(out *WalletSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WalletStatus ¶
type WalletStatus struct {
// Conditions track high-level reconcile state.
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// Address is the wallet's public address (either OwnerAddress copy or operator-generated).
// +optional
Address string `json:"address,omitempty"`
// PrivateKeySecretRef points to the Secret (key: private-key) holding the wallet's
// private key. Set only when the operator generated the keypair itself.
// +optional
PrivateKeySecretRef *corev1.SecretReference `json:"privateKeySecretRef,omitempty"`
}
WalletStatus defines the observed state of Wallet.
func (*WalletStatus) DeepCopy ¶
func (in *WalletStatus) DeepCopy() *WalletStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WalletStatus.
func (*WalletStatus) DeepCopyInto ¶
func (in *WalletStatus) DeepCopyInto(out *WalletStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.