Documentation
¶
Overview ¶
Package v1 is the OpenFaaS v1alpha2 version of the API. +groupName=openfaas.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: controller.GroupName, Version: "v1"}
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"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FunctionSpec `json:"spec"` }
Function describes an OpenFaaS function
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"` Items []Function `json:"items"` }
FunctionList is a list of Function resources
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 FunctionResources ¶
type FunctionResources struct { Memory string `json:"memory,omitempty"` CPU string `json:"cpu,omitempty"` }
FunctionResources is used to set CPU and memory limits and requests
func (*FunctionResources) DeepCopy ¶
func (in *FunctionResources) DeepCopy() *FunctionResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionResources.
func (*FunctionResources) DeepCopyInto ¶
func (in *FunctionResources) DeepCopyInto(out *FunctionResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionSpec ¶
type FunctionSpec struct { Name string `json:"name"` Image string `json:"image"` // +optional Handler string `json:"handler,omitempty"` // +optional Annotations *map[string]string `json:"annotations,omitempty"` // +optional Labels *map[string]string `json:"labels,omitempty"` // +optional Environment *map[string]string `json:"environment,omitempty"` // +optional Constraints []string `json:"constraints,omitempty"` // +optional Secrets []string `json:"secrets,omitempty"` // +optional Limits *FunctionResources `json:"limits,omitempty"` // +optional Requests *FunctionResources `json:"requests,omitempty"` // +optional ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem"` }
FunctionSpec is the spec for a Function resource
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.