Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the resources v1 API group +kubebuilder:object:generate=true +groupName=resources.factory.sandload.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "resources.factory.sandload.com", 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 )
Functions ¶
This section is empty.
Types ¶
type Nacos ¶
type Nacos struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NacosSpec `json:"spec,omitempty"` Status NacosStatus `json:"status,omitempty"` }
Nacos is the Schema for the nacos API
func (*Nacos) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nacos.
func (*Nacos) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Nacos) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NacosList ¶
type NacosList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Nacos `json:"items"` }
NacosList contains a list of Nacos
func (*NacosList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NacosList.
func (*NacosList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NacosList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NacosSpec ¶
type NacosSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file Name string `json:"name"` VpcId string `json:"vpcId"` Subnet string `json:"subnet"` EngineVersion string `json:"engineVersion"` EngineResourceSpec string `json:"engineResourceSpec"` }
NacosSpec defines the desired state of Nacos
func (*NacosSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NacosSpec.
func (*NacosSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NacosStatus ¶
type NacosStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Id string `json:"id"` Status StatusConst `json:"status"` IntranetAddress string `json:"intranetAddress"` // 内网地址 InternetAddress string `json:"internetAddress"` // 公网地址 ExternalStatus StatusConst `json:"externalStatus"` }
NacosStatus defines the observed state of Nacos
func (*NacosStatus) DeepCopy ¶
func (in *NacosStatus) DeepCopy() *NacosStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NacosStatus.
func (*NacosStatus) DeepCopyInto ¶
func (in *NacosStatus) DeepCopyInto(out *NacosStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Redis ¶ added in v0.0.2
type Redis struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisSpec `json:"spec,omitempty"` Status RedisStatus `json:"status,omitempty"` }
Redis is the Schema for the redis API
func (*Redis) DeepCopy ¶ added in v0.0.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶ added in v0.0.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Redis) DeepCopyObject ¶ added in v0.0.2
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisInstance ¶ added in v0.0.2
type RedisInstance struct { Id string `json:"id"` Status StatusConst `json:"status"` PrivateAddress string `json:"privateAddress"` // 私网地址 WanAddress string `json:"wanAddress"` // 公网地址 Message string `json:"message"` // 信息 ExternalStatus StatusConst `json:"externalStatus"` // 公网状态 }
type RedisList ¶ added in v0.0.2
type RedisList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Redis `json:"items"` }
RedisList contains a list of Redis
func (*RedisList) DeepCopy ¶ added in v0.0.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisList.
func (*RedisList) DeepCopyInto ¶ added in v0.0.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisList) DeepCopyObject ¶ added in v0.0.2
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisSpec ¶ added in v0.0.2
type RedisSpec struct { Region string `json:"region,omitempty"` // 城市 VpcId string `json:"vpcId,omitempty"` // vpc id SubnetId string `json:"subnetId,omitempty"` // subnet id ZoneId uint64 `json:"zoneId,omitempty"` // 可用区 TypeId uint64 `json:"typeId,omitempty"` // 实例类型 InstanceName string `json:"instanceName,omitempty"` // 实例名称 MemSize uint64 `json:"memSize,omitempty"` // 内存大小,单位MB GoodsNum uint64 `json:"goodsNum,omitempty"` // 实例数量 Password string `json:"password,omitempty"` // redis密码 BillingMode int64 `json:"billingMode,omitempty"` // 计费模式, 0按量计费,1包年包月 Period uint64 `json:"period,omitempty"` // 购买时长,1,2,3,4,5,6,7,8,9,10,11,12,24,36月 VPort uint64 `json:"VPort,omitempty"` // 端口,默认6379 }
RedisSpec defines the desired state of Redis
func (*RedisSpec) DeepCopy ¶ added in v0.0.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisSpec.
func (*RedisSpec) DeepCopyInto ¶ added in v0.0.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisStatus ¶ added in v0.0.2
type RedisStatus struct { Status StatusConst `json:"status"` GoodsNum uint64 `json:"goodsNum"` Message string `json:"message"` Instances []RedisInstance `json:"instances"` }
RedisStatus defines the observed state of Redis
func (*RedisStatus) DeepCopy ¶ added in v0.0.2
func (in *RedisStatus) DeepCopy() *RedisStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisStatus.
func (*RedisStatus) DeepCopyInto ¶ added in v0.0.2
func (in *RedisStatus) DeepCopyInto(out *RedisStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatusConst ¶
type StatusConst string
const ( DefaultStatusConst StatusConst = "creating" //ProcessingStatusConst StatusConst = "processing" FailStatus StatusConst = "fail" SuccessStatus StatusConst = "success" CreatingStatus StatusConst = "creating" )