Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cloud v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloud.kubexcloud.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cloud.kubexcloud.com", Version: "v1alpha1"} // 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 App ¶
type App struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AppSpec `json:"spec,omitempty"` Status AppStatus `json:"status,omitempty"` }
App is the Schema for the apps API
func (*App) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.
func (*App) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*App) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppList ¶
type AppList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []App `json:"items"` }
AppList contains a list of App
func (*AppList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.
func (*AppList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppSpec ¶
type AppSpec struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=0 Replicas int32 `json:"replicas"` // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Containers []Container `json:"containers"` }
AppSpec defines the desired state of App
func (*AppSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec.
func (*AppSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppStatus ¶
type AppStatus struct { ExternalURL string `json:"externalUrl,omitempty"` AvailableReplicas int32 `json:"availableReplicas,omitempty"` }
AppStatus defines the observed state of App
func (*AppStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatus.
func (*AppStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Container ¶
type Container struct { // +kubebuilder:validation:Required Image string `json:"image"` // +kubebuilder:validation:Required Name string `json:"name"` Command []string `json:"command,omitempty"` Ports []Port `json:"ports,omitempty"` }
Container object
func (*Container) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Container.
func (*Container) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Port ¶
type Port struct { // +kubebuilder:validation:Required // +kubebuilder:validation:Minimum=1 Number int32 `json:"number"` // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=TCP;UDP Protocol corev1.Protocol `json:"protocol"` // only valid for http (through TCP protocol) ExposeExternally bool `json:"exposeExternally"` }
Port object
func (*Port) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.
func (*Port) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶
type Project struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProjectSpec `json:"spec,omitempty"` Status ProjectStatus `json:"status,omitempty"` }
Project is the Schema for the projects API
func (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Project) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectList ¶
type ProjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Project `json:"items"` }
ProjectList contains a list of Project
func (*ProjectList) DeepCopy ¶
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectList) DeepCopyObject ¶
func (in *ProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectSpec ¶
type ProjectSpec struct { }
ProjectSpec defines the desired state of Project
func (*ProjectSpec) DeepCopy ¶
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectStatus ¶
type ProjectStatus struct { }
ProjectStatus defines the observed state of Project
func (*ProjectStatus) DeepCopy ¶
func (in *ProjectStatus) DeepCopy() *ProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus.
func (*ProjectStatus) DeepCopyInto ¶
func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserAccount ¶
type UserAccount struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec UserAccountSpec `json:"spec,omitempty"` Status UserAccountStatus `json:"status,omitempty"` }
UserAccount is the Schema for the useraccounts API
func (*UserAccount) DeepCopy ¶
func (in *UserAccount) DeepCopy() *UserAccount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccount.
func (*UserAccount) DeepCopyInto ¶
func (in *UserAccount) DeepCopyInto(out *UserAccount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserAccount) DeepCopyObject ¶
func (in *UserAccount) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserAccountList ¶
type UserAccountList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []UserAccount `json:"items"` }
UserAccountList contains a list of UserAccount
func (*UserAccountList) DeepCopy ¶
func (in *UserAccountList) DeepCopy() *UserAccountList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccountList.
func (*UserAccountList) DeepCopyInto ¶
func (in *UserAccountList) DeepCopyInto(out *UserAccountList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserAccountList) DeepCopyObject ¶
func (in *UserAccountList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UserAccountSpec ¶
type UserAccountSpec struct { Password string `json:"password"` // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=regular;admin Role string `json:"role"` }
UserAccountSpec defines the desired state of UserAccount
func (*UserAccountSpec) DeepCopy ¶
func (in *UserAccountSpec) DeepCopy() *UserAccountSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccountSpec.
func (*UserAccountSpec) DeepCopyInto ¶
func (in *UserAccountSpec) DeepCopyInto(out *UserAccountSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserAccountStatus ¶
type UserAccountStatus struct { }
UserAccountStatus defines the observed state of UserAccount
func (*UserAccountStatus) DeepCopy ¶
func (in *UserAccountStatus) DeepCopy() *UserAccountStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccountStatus.
func (*UserAccountStatus) DeepCopyInto ¶
func (in *UserAccountStatus) DeepCopyInto(out *UserAccountStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.