Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: function.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Function ¶
type Function struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of the Deployment. // +optional Spec FunctionSpec `json:"spec"` // Most recently observed status of the Deployment. // +optional Status FunctionStatus `json:"status"` }
Function is a specification for a Function resource
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 FunctionCondition ¶
type FunctionCondition struct { // Type of function condition. Type FunctionConditionType // Status of the condition, one of True, False, Unknown. Status api.ConditionStatus // The last time this condition was updated. LastTransitionTime metav1.Time // The reason for the condition's last transition. Reason string // A human readable message indicating details about the transition. Message string }
func (*FunctionCondition) DeepCopy ¶
func (in *FunctionCondition) DeepCopy() *FunctionCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionCondition.
func (*FunctionCondition) DeepCopyInto ¶
func (in *FunctionCondition) DeepCopyInto(out *FunctionCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionConditionType ¶
type FunctionConditionType string
const ( // Progressing means the function is progressing. Progress for a function is // considered when a new deployment set is created or adopted FunctionProgressing FunctionConditionType = "Progressing" // Ready means the function is ready for requests. FunctionReady FunctionConditionType = "Ready" )
type FunctionList ¶
type FunctionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` // Items is the list of functions Items []Function `json:"items"` }
FunctionList defines multiple functions.
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 { // The code of this function served for. Code string `json:"code"` // TODO: configmapName as code. // The runtime for this function. Runtime string `json:"runtime"` }
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 FunctionStatus ¶
type FunctionStatus struct { // Total number of non-terminated pods targeted by this function (their labels match the selector). // +optional Replicas int32 `json:"replicas"` }
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.