v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

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

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

func (in *Nacos) DeepCopy() *Nacos

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

func (*Nacos) DeepCopyInto

func (in *Nacos) DeepCopyInto(out *Nacos)

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

func (*Nacos) DeepCopyObject

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

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

func (in *NacosList) DeepCopy() *NacosList

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

func (*NacosList) DeepCopyInto

func (in *NacosList) DeepCopyInto(out *NacosList)

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

func (*NacosList) DeepCopyObject

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

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

func (in *NacosSpec) DeepCopy() *NacosSpec

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

func (*NacosSpec) DeepCopyInto

func (in *NacosSpec) DeepCopyInto(out *NacosSpec)

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

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto added in v0.0.2

func (in *Redis) DeepCopyInto(out *Redis)

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

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

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

func (in *RedisList) DeepCopy() *RedisList

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

func (*RedisList) DeepCopyInto added in v0.0.2

func (in *RedisList) DeepCopyInto(out *RedisList)

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

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

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

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto added in v0.0.2

func (in *RedisSpec) DeepCopyInto(out *RedisSpec)

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

Jump to

Keyboard shortcuts

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