v1

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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 StatusConst

type StatusConst string
const (
	DefaultStatusConst    StatusConst = "creating"
	ProcessingStatusConst StatusConst = "processing"
	FailStatusConst       StatusConst = "fail"
	SuccessStatusConst    StatusConst = "success"
)

Jump to

Keyboard shortcuts

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