Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the runtime v1 API group +kubebuilder:object:generate=true +groupName=runtime.laf.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "runtime.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 Function ¶
type Function struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FunctionSpec `json:"spec,omitempty"` Status FunctionStatus `json:"status,omitempty"` }
Function is the Schema for the functions API
func (*Function) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Function.
func (*Function) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Function) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FunctionList ¶
type FunctionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Function `json:"items"` }
FunctionList contains a list of Function
func (*FunctionList) DeepCopy ¶
func (in *FunctionList) DeepCopy() *FunctionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionList.
func (*FunctionList) DeepCopyInto ¶
func (in *FunctionList) DeepCopyInto(out *FunctionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FunctionList) DeepCopyObject ¶
func (in *FunctionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FunctionSource ¶
type FunctionSource struct { // Source codes of the function Codes string `json:"codes,omitempty"` // Codes uri of the function URI string `json:"uri,omitempty"` // Version of the function //+kubebuilder:default:=0 Version int64 `json:"version"` }
FunctionSource supports three storage methods: inline, Git repository, and database. The latter two are specified by URI.
func (*FunctionSource) DeepCopy ¶
func (in *FunctionSource) DeepCopy() *FunctionSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionSource.
func (*FunctionSource) DeepCopyInto ¶
func (in *FunctionSource) DeepCopyInto(out *FunctionSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionSpec ¶
type FunctionSpec struct { // Description of function Description string `json:"description"` // Websocket enabled, defaults to false //+kubebuilder:default:=false Websocket bool `json:"websocket"` // Allowed HTTP methods. If empty, http access is disabled. // The value of this field can be any one or a combination of the following: // GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, CONNECT, TRACE. // The default values are: ["GET", "POST", "PUT", "DELETE"]. If the value is "*", all methods are allowed. Methods []string `json:"methods"` // Function source Source FunctionSource `json:"source"` }
FunctionSpec defines the desired state of Function
func (*FunctionSpec) DeepCopy ¶
func (in *FunctionSpec) DeepCopy() *FunctionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionSpec.
func (*FunctionSpec) DeepCopyInto ¶
func (in *FunctionSpec) DeepCopyInto(out *FunctionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionState ¶
type FunctionState string
FunctionState Enum
const (
FunctionStateDeployed FunctionState = "Deployed"
)
type FunctionStatus ¶
type FunctionStatus struct { // State of the function //+kubebuilder:validation:Enum=Deployed //+kubebuilder:validation:Required //+kubebuilder:default:=Deployed State FunctionState `json:"state"` }
FunctionStatus defines the observed state of Function
func (*FunctionStatus) DeepCopy ¶
func (in *FunctionStatus) DeepCopy() *FunctionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionStatus.
func (*FunctionStatus) DeepCopyInto ¶
func (in *FunctionStatus) DeepCopyInto(out *FunctionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Package ¶
type Package struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PackageSpec `json:"spec,omitempty"` Status PackageStatus `json:"status,omitempty"` }
Package is the Schema for the packages API
func (*Package) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Package.
func (*Package) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Package) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PackageList ¶
type PackageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Package `json:"items"` }
PackageList contains a list of Package
func (*PackageList) DeepCopy ¶
func (in *PackageList) DeepCopy() *PackageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageList.
func (*PackageList) DeepCopyInto ¶
func (in *PackageList) DeepCopyInto(out *PackageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PackageList) DeepCopyObject ¶
func (in *PackageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PackageSpec ¶
type PackageSpec struct { // Type of the package. eg. npm, pip, go, composer, etc. Type string `json:"type"` // Name of package. Name string `json:"name"` // Version of package. default is latest. //+kubebuilder:default:=latest Version string `json:"version,omitempty"` // Registry of package. //+optional Registry string `json:"registry"` }
PackageSpec defines the desired state of Package
func (*PackageSpec) DeepCopy ¶
func (in *PackageSpec) DeepCopy() *PackageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageSpec.
func (*PackageSpec) DeepCopyInto ¶
func (in *PackageSpec) DeepCopyInto(out *PackageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PackageStatus ¶
type PackageStatus struct { // Actual version of package. ActualVersion string `json:"actualVersion,omitempty"` }
PackageStatus defines the observed state of Package
func (*PackageStatus) DeepCopy ¶
func (in *PackageStatus) DeepCopy() *PackageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageStatus.
func (*PackageStatus) DeepCopyInto ¶
func (in *PackageStatus) DeepCopyInto(out *PackageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Runtime ¶
type Runtime struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RuntimeSpec `json:"spec,omitempty"` Status RuntimeStatus `json:"status,omitempty"` }
Runtime is the Schema for the runtimes API
func (*Runtime) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runtime.
func (*Runtime) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Runtime) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuntimeImageGroup ¶
type RuntimeImageGroup struct { // Main image (e.g. docker.io/lafyun/app-service:latest) Main string `json:"main"` // Sidecar image Sidecar string `json:"sidecar,omitempty"` // Init image (e.g. docker.io/lafyun/app-service-init:latest) // - install the dependencies (e.g. npm install) // - prepare the functions (deploy & compile) Init string `json:"init,omitempty"` }
func (*RuntimeImageGroup) DeepCopy ¶
func (in *RuntimeImageGroup) DeepCopy() *RuntimeImageGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeImageGroup.
func (*RuntimeImageGroup) DeepCopyInto ¶
func (in *RuntimeImageGroup) DeepCopyInto(out *RuntimeImageGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuntimeList ¶
type RuntimeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Runtime `json:"items"` }
RuntimeList contains a list of Runtime
func (*RuntimeList) DeepCopy ¶
func (in *RuntimeList) DeepCopy() *RuntimeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeList.
func (*RuntimeList) DeepCopyInto ¶
func (in *RuntimeList) DeepCopyInto(out *RuntimeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuntimeList) DeepCopyObject ¶
func (in *RuntimeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuntimeSpec ¶
type RuntimeSpec struct { // Type of the runtime. eg. node:laf, node:tcb, go:laf, python:laf, php:laf, etc. Type string `json:"type"` // Images of the runtime Image RuntimeImageGroup `json:"image"` // Version of the runtime Version RuntimeVersion `json:"version"` // Deprecated Deprecated bool `json:"deprecated,omitempty"` }
RuntimeSpec defines the desired state of Runtime
func (*RuntimeSpec) DeepCopy ¶
func (in *RuntimeSpec) DeepCopy() *RuntimeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeSpec.
func (*RuntimeSpec) DeepCopyInto ¶
func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuntimeStatus ¶
type RuntimeStatus struct { // App count of the runtime AppCount int `json:"appCount,omitempty"` }
RuntimeStatus defines the observed state of Runtime
func (*RuntimeStatus) DeepCopy ¶
func (in *RuntimeStatus) DeepCopy() *RuntimeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeStatus.
func (*RuntimeStatus) DeepCopyInto ¶
func (in *RuntimeStatus) DeepCopyInto(out *RuntimeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuntimeVersion ¶
type RuntimeVersion struct { // Version is the version of the runtime Version string `json:"version,omitempty"` // Version that is breaking from BreakBefore string `json:"breakBefore,omitempty"` // Versions that suggested to upgrade from UpgradeFrom []string `json:"upgradeFrom,omitempty"` // Versions that should auto upgrade from AutoUpgradeFrom []string `json:"autoUpgradeFrom,omitempty"` // Versions that must upgrade from MustUpgradeFrom []string `json:"mustUpgradeFrom,omitempty"` }
func (*RuntimeVersion) DeepCopy ¶
func (in *RuntimeVersion) DeepCopy() *RuntimeVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeVersion.
func (*RuntimeVersion) DeepCopyInto ¶
func (in *RuntimeVersion) DeepCopyInto(out *RuntimeVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.