Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the application v1 API group +kubebuilder:object:generate=true +groupName=application.laf.dev
Index ¶
Constants ¶
const ( BundleInitialized string = "BundleInitialized" RuntimeInitialized string = "RuntimeInitialized" DatabaseCreated string = "DatabaseCreated" ObjectStorageCreated string = "ObjectStorageCreated" GatewayCreated string = "GatewayCreated" DatabaseReady string = "DatabaseReady" ObjectStorageReady string = "ObjectStorageReady" GatewayReady string = "GatewayReady" Ready string = "Ready" InstanceCreated string = "InstanceCreated" InstanceDeleted string = "InstanceDeleted" DatabaseDeleted string = "DatabaseDeleted" ObjectStorageDeleted string = "ObjectStorageDeleted" GatewayDeleted string = "GatewayDeleted" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "application.laf.dev", 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 Application ¶
type Application struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSpec `json:"spec,omitempty"` Status ApplicationStatus `json:"status,omitempty"` }
Application is the Schema for the applications API
func (*Application) DeepCopy ¶
func (in *Application) DeepCopy() *Application
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
func (*Application) DeepCopyInto ¶
func (in *Application) DeepCopyInto(out *Application)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Application) DeepCopyObject ¶
func (in *Application) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationList ¶
type ApplicationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Application `json:"items"` }
ApplicationList contains a list of Application
func (*ApplicationList) DeepCopy ¶
func (in *ApplicationList) DeepCopy() *ApplicationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationList.
func (*ApplicationList) DeepCopyInto ¶
func (in *ApplicationList) DeepCopyInto(out *ApplicationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationList) DeepCopyObject ¶
func (in *ApplicationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationSpec ¶
type ApplicationSpec struct { // AppId //+kubebuilder:validation:MinLength=3 //+kubebuilder:validation:MaxLength=24 //+kubebuilder:validation:Required AppId string `json:"appid"` // Region //+kubebuilder:validation:Required //+kubebuilder:validation:MinLength=3 //+kubebuilder:validation:MaxLength=24 Region string `json:"region"` // State of the application //+kubebuilder:validation:Enum=Running;Stopped; //+kubebuilder:validation:Required //+kubebuilder:default:=Running State ApplicationState `json:"state,omitempty"` // Bundle Name for the application //+kubebuilder:validation:Required BundleName string `json:"bundleName"` // Runtime Name of the application //+kubebuilder:validation:Required RuntimeName string `json:"runtimeName"` }
ApplicationSpec defines the desired state of Application
func (*ApplicationSpec) DeepCopy ¶
func (in *ApplicationSpec) DeepCopy() *ApplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec.
func (*ApplicationSpec) DeepCopyInto ¶
func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationState ¶
type ApplicationState string
ApplicationState defines the state of the application
const ( ApplicationStateInitializing ApplicationState = "Initializing" ApplicationStateInitialized ApplicationState = "Initialized" ApplicationStateStarting ApplicationState = "Starting" ApplicationStateRunning ApplicationState = "Running" ApplicationStateStopping ApplicationState = "Stopping" ApplicationStateStopped ApplicationState = "Stopped" )
type ApplicationStatus ¶
type ApplicationStatus struct { // Bundle Name for the application BundleName string `json:"bundleName"` // BundleSpec of the application BundleSpec BundleSpec `json:"bundleSpec"` // Runtime Name for the application RuntimeName string `json:"runtimeName"` // RuntimeSpec of the application RuntimeSpec runtimev1.RuntimeSpec `json:"runtimeSpec,omitempty"` // State of the application Phase ApplicationState `json:"state,omitempty"` // Conditions: Conditions []metav1.Condition `json:"conditions,omitempty"` }
ApplicationStatus defines the observed state of Application
func (*ApplicationStatus) DeepCopy ¶
func (in *ApplicationStatus) DeepCopy() *ApplicationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationStatus.
func (*ApplicationStatus) DeepCopyInto ¶
func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Bundle ¶
type Bundle struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BundleSpec `json:"spec,omitempty"` Status BundleStatus `json:"status,omitempty"` }
Bundle is the Schema for the bundles API
func (*Bundle) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bundle.
func (*Bundle) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Bundle) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BundleList ¶
type BundleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Bundle `json:"items"` }
BundleList contains a list of Bundle
func (*BundleList) DeepCopy ¶
func (in *BundleList) DeepCopy() *BundleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleList.
func (*BundleList) DeepCopyInto ¶
func (in *BundleList) DeepCopyInto(out *BundleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BundleList) DeepCopyObject ¶
func (in *BundleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BundleSpec ¶
type BundleSpec struct { // DisplayName for the bundle DisplayName string `json:"displayName"` // Request CPU for the bundle RequestCPU resource.Quantity `json:"requestCPU"` // Request Memory for the bundle RequestMemory resource.Quantity `json:"requestMemory"` // Limit CPU for the bundle LimitCPU resource.Quantity `json:"limitCPU"` // Limit Memory for the bundle LimitMemory resource.Quantity `json:"limitMemory"` // Database capacity for the bundle DatabaseCapacity resource.Quantity `json:"databaseCapacity"` // Storage capacity for the bundle StorageCapacity resource.Quantity `json:"storageCapacity"` // Network Bandwidth Outbound for the bundle NetworkBandwidthOutbound resource.Quantity `json:"networkBandwidthOutbound,omitempty"` // Network Bandwidth Inbound for the bundle NetworkBandwidthInbound resource.Quantity `json:"networkBandwidthInbound,omitempty"` // Network Traffic Outbound for the bundle NetworkTrafficOutbound resource.Quantity `json:"networkTrafficOutbound"` // Priority for the bundle. // The default value is 0, which means that the bundle is not currently available for creating new applications. //+kubebuilder:validation:Minimum=0 //+kubebuilder:validation:Maximum=1000 //+kubebuilder:validation:Default=10 Priority int32 `json:"priority"` }
BundleSpec defines the desired state of Bundle
func (*BundleSpec) DeepCopy ¶
func (in *BundleSpec) DeepCopy() *BundleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleSpec.
func (*BundleSpec) DeepCopyInto ¶
func (in *BundleSpec) DeepCopyInto(out *BundleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BundleStatus ¶
type BundleStatus struct { }
BundleStatus defines the observed state of Bundle
func (*BundleStatus) DeepCopy ¶
func (in *BundleStatus) DeepCopy() *BundleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleStatus.
func (*BundleStatus) DeepCopyInto ¶
func (in *BundleStatus) DeepCopyInto(out *BundleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreationForm ¶
type CreationForm struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CreationFormSpec `json:"spec,omitempty"` Status CreationFormStatus `json:"status,omitempty"` }
CreationForm is the Schema for the creationforms API
func (*CreationForm) DeepCopy ¶
func (in *CreationForm) DeepCopy() *CreationForm
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreationForm.
func (*CreationForm) DeepCopyInto ¶
func (in *CreationForm) DeepCopyInto(out *CreationForm)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CreationForm) DeepCopyObject ¶
func (in *CreationForm) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CreationFormList ¶
type CreationFormList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CreationForm `json:"items"` }
CreationFormList contains a list of CreationForm
func (*CreationFormList) DeepCopy ¶
func (in *CreationFormList) DeepCopy() *CreationFormList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreationFormList.
func (*CreationFormList) DeepCopyInto ¶
func (in *CreationFormList) DeepCopyInto(out *CreationFormList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CreationFormList) DeepCopyObject ¶
func (in *CreationFormList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CreationFormSpec ¶
type CreationFormSpec struct { // Region //+kubebuilder:validation:Required //+kubebuilder:validation:MinLength=3 //+kubebuilder:validation:MaxLength=24 Region string `json:"region"` // DisplayName for the application //+kubebuilder:validation:MinLength=3 //+kubebuilder:validation:MaxLength=63 //+kubebuilder:validation:Required DisplayName string `json:"displayName"` // Bundle Name for the application //+kubebuilder:validation:Required BundleName string `json:"bundleName"` // RuntimeSpec Name of the application //+kubebuilder:validation:Required RuntimeName string `json:"runtimeName"` }
CreationFormSpec defines the desired state of CreationForm
func (*CreationFormSpec) DeepCopy ¶
func (in *CreationFormSpec) DeepCopy() *CreationFormSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreationFormSpec.
func (*CreationFormSpec) DeepCopyInto ¶
func (in *CreationFormSpec) DeepCopyInto(out *CreationFormSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreationFormStatus ¶
type CreationFormStatus struct { AppId string `json:"appid,omitempty"` Namespace string `json:"namespace,omitempty"` Created bool `json:"created,omitempty"` // Conditions // - Type: Validated // - Type: ValidRuntime // - Type: ValidBundle // - Type: Created Conditions []metav1.Condition `json:"conditions,omitempty"` }
CreationFormStatus defines the observed state of CreationForm
func (*CreationFormStatus) DeepCopy ¶
func (in *CreationFormStatus) DeepCopy() *CreationFormStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreationFormStatus.
func (*CreationFormStatus) DeepCopyInto ¶
func (in *CreationFormStatus) DeepCopyInto(out *CreationFormStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.