Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group. +kubebuilder:object:generate=true +groupName=functions.dev
Index ¶
- Constants
- Variables
- type Function
- func (f *Function) CalculateReadyCondition()
- func (in *Function) DeepCopy() *Function
- func (in *Function) DeepCopyInto(out *Function)
- func (in *Function) DeepCopyObject() runtime.Object
- func (f *Function) InitializeConditions()
- func (f *Function) MarkDeployNotReady(reason, messageFormat string, messageA ...interface{}) bool
- func (f *Function) MarkDeployReady() bool
- func (f *Function) MarkFinalizeFailed(err error) bool
- func (f *Function) MarkMiddlewareNotUpToDate(reason, messageFormat string, messageA ...interface{}) bool
- func (f *Function) MarkMiddlewareUpToDate() bool
- func (f *Function) MarkNotReady(reason, messageFormat string, messageA ...interface{}) bool
- func (f *Function) MarkReady() bool
- func (f *Function) MarkSourceNotReady(reason, messageFormat string, messageA ...interface{}) bool
- func (f *Function) MarkSourceReady() bool
- func (f *Function) MarkTerminating() bool
- type FunctionList
- type FunctionSpec
- type FunctionSpecRegistry
- type FunctionSpecSource
- type FunctionStatus
Constants ¶
const ( // TypeReady indicates overall readiness (summary condition) TypeReady = "Ready" // TypeSourceReady indicates git source was cloned successfully TypeSourceReady = "SourceReady" // TypeDeployed indicates function is deployed TypeDeployed = "Deployed" // TypeMiddlewareUpToDate indicates middleware is current TypeMiddlewareUpToDate = "MiddlewareUpToDate" )
Condition types
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "functions.dev", 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 )
var FunctionsConditions = []string{ TypeSourceReady, TypeDeployed, TypeMiddlewareUpToDate, }
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) CalculateReadyCondition ¶
func (f *Function) CalculateReadyCondition()
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.
func (*Function) InitializeConditions ¶
func (f *Function) InitializeConditions()
InitializeConditions resets all conditions to ensure a fresh start for each reconcile. This prevents stale conditions from previous reconciles from persisting.
func (*Function) MarkDeployNotReady ¶
func (*Function) MarkDeployReady ¶
func (*Function) MarkFinalizeFailed ¶
func (*Function) MarkMiddlewareNotUpToDate ¶
func (*Function) MarkMiddlewareUpToDate ¶
func (*Function) MarkNotReady ¶
func (*Function) MarkSourceNotReady ¶
func (*Function) MarkSourceReady ¶
func (*Function) MarkTerminating ¶
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 FunctionSpec ¶
type FunctionSpec struct {
Source FunctionSpecSource `json:"source,omitempty"`
Registry FunctionSpecRegistry `json:"registry,omitempty"`
}
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 FunctionSpecRegistry ¶
type FunctionSpecRegistry struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Path string `json:"path"`
Insecure bool `json:"insecure,omitempty"`
AuthSecretRef *v1.LocalObjectReference `json:"authSecretRef,omitempty"`
}
func (*FunctionSpecRegistry) DeepCopy ¶
func (in *FunctionSpecRegistry) DeepCopy() *FunctionSpecRegistry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionSpecRegistry.
func (*FunctionSpecRegistry) DeepCopyInto ¶
func (in *FunctionSpecRegistry) DeepCopyInto(out *FunctionSpecRegistry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionSpecSource ¶
type FunctionSpecSource struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
RepositoryURL string `json:"repositoryUrl"`
// +kubebuilder:validation:Optional
Reference string `json:"reference"`
AuthSecretRef *v1.LocalObjectReference `json:"authSecretRef,omitempty"`
}
func (*FunctionSpecSource) DeepCopy ¶
func (in *FunctionSpecSource) DeepCopy() *FunctionSpecSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionSpecSource.
func (*FunctionSpecSource) DeepCopyInto ¶
func (in *FunctionSpecSource) DeepCopyInto(out *FunctionSpecSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionStatus ¶
type FunctionStatus struct {
Name string `json:"name"`
Runtime string `json:"runtime"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
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.