Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Application
- func (in *Application) DeepCopy() *Application
- func (in *Application) DeepCopyInto(out *Application)
- func (in *Application) DeepCopyObject() runtime.Object
- func (*Application) GetGroupVersionKind() schema.GroupVersionKind
- func (a *Application) SetDefaults()
- func (a *Application) Validate() *apis.FieldError
- type ApplicationBuild
- type ApplicationList
- type ApplicationRun
- type ApplicationSpec
- type ApplicationStatus
- func (in *ApplicationStatus) DeepCopy() *ApplicationStatus
- func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)
- func (as *ApplicationStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
- func (as *ApplicationStatus) InitializeConditions()
- func (as *ApplicationStatus) IsReady() bool
- func (as *ApplicationStatus) MarkBuildCacheNotOwned(name string)
- func (as *ApplicationStatus) MarkServiceNotOwned(name string)
- func (as *ApplicationStatus) PropagateBuildCacheStatus(pvc *corev1.PersistentVolumeClaim)
- func (as *ApplicationStatus) PropagateServiceStatus(ss *servingv1alpha1.ServiceStatus)
- type BuildArgument
- type Function
- type FunctionBuild
- type FunctionList
- type FunctionRun
- type FunctionSpec
- type FunctionStatus
- func (in *FunctionStatus) DeepCopy() *FunctionStatus
- func (in *FunctionStatus) DeepCopyInto(out *FunctionStatus)
- func (fs *FunctionStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
- func (fs *FunctionStatus) InitializeConditions()
- func (fs *FunctionStatus) IsReady() bool
- func (fs *FunctionStatus) MarkApplicationNotOwned(name string)
- func (fs *FunctionStatus) PropagateApplicationStatus(as *ApplicationStatus)
- type GitSource
- type Source
Constants ¶
const ( ApplicationConditionReady = duckv1alpha1.ConditionReady ApplicationConditionServiceReady duckv1alpha1.ConditionType = "ServiceReady" ApplicationConditionBuildCacheReady duckv1alpha1.ConditionType = "BuildCacheReady" )
const ( FunctionConditionReady = duckv1alpha1.ConditionReady FunctionConditionApplicationReady duckv1alpha1.ConditionType = "ApplicationReady" )
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: projectriff.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 Application ¶
type Application struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSpec `json:"spec"` Status ApplicationStatus `json:"status"` }
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.
func (*Application) GetGroupVersionKind ¶
func (*Application) GetGroupVersionKind() schema.GroupVersionKind
func (*Application) SetDefaults ¶
func (a *Application) SetDefaults()
func (*Application) Validate ¶
func (a *Application) Validate() *apis.FieldError
type ApplicationBuild ¶
type ApplicationBuild struct { Template string `json:"template"` CacheSize *resource.Quantity `json:"cacheSize,omitempty"` Arguments []BuildArgument `json:"arguments,omitempty"` Source *Source `json:"source,omitempty"` }
func (*ApplicationBuild) DeepCopy ¶
func (in *ApplicationBuild) DeepCopy() *ApplicationBuild
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBuild.
func (*ApplicationBuild) DeepCopyInto ¶
func (in *ApplicationBuild) DeepCopyInto(out *ApplicationBuild)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationList ¶
type ApplicationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Application `json:"items"` }
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 ApplicationRun ¶
type ApplicationRun struct { EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"` Env []corev1.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` }
func (*ApplicationRun) DeepCopy ¶
func (in *ApplicationRun) DeepCopy() *ApplicationRun
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRun.
func (*ApplicationRun) DeepCopyInto ¶
func (in *ApplicationRun) DeepCopyInto(out *ApplicationRun)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationSpec ¶
type ApplicationSpec struct { Image string `json:"image"` Build ApplicationBuild `json:"build"` Run ApplicationRun `json:"run"` }
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.
func (*ApplicationSpec) SetDefaults ¶
func (as *ApplicationSpec) SetDefaults()
type ApplicationStatus ¶
type ApplicationStatus struct { Conditions duckv1alpha1.Conditions `json:"conditions,omitempty"` Address *duckv1alpha1.Addressable `json:"address,omitempty"` BuildCacheName string `json:"cacheVolumeName"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
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.
func (*ApplicationStatus) GetCondition ¶
func (as *ApplicationStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
func (*ApplicationStatus) InitializeConditions ¶
func (as *ApplicationStatus) InitializeConditions()
func (*ApplicationStatus) IsReady ¶
func (as *ApplicationStatus) IsReady() bool
func (*ApplicationStatus) MarkBuildCacheNotOwned ¶
func (as *ApplicationStatus) MarkBuildCacheNotOwned(name string)
TODO move into application reconciler
func (*ApplicationStatus) MarkServiceNotOwned ¶
func (as *ApplicationStatus) MarkServiceNotOwned(name string)
TODO move into application reconciler
func (*ApplicationStatus) PropagateBuildCacheStatus ¶
func (as *ApplicationStatus) PropagateBuildCacheStatus(pvc *corev1.PersistentVolumeClaim)
TODO move into application reconciler
func (*ApplicationStatus) PropagateServiceStatus ¶
func (as *ApplicationStatus) PropagateServiceStatus(ss *servingv1alpha1.ServiceStatus)
TODO move into application reconciler
type BuildArgument ¶
func (*BuildArgument) DeepCopy ¶
func (in *BuildArgument) DeepCopy() *BuildArgument
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildArgument.
func (*BuildArgument) DeepCopyInto ¶
func (in *BuildArgument) DeepCopyInto(out *BuildArgument)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Function ¶
type Function struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FunctionSpec `json:"spec"` Status FunctionStatus `json:"status"` }
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) GetGroupVersionKind ¶
func (*Function) GetGroupVersionKind() schema.GroupVersionKind
func (*Function) SetDefaults ¶
func (f *Function) SetDefaults()
func (*Function) Validate ¶
func (f *Function) Validate() *apis.FieldError
type FunctionBuild ¶
type FunctionBuild struct { Artifact string `json:"artifact,omitempty"` Handler string `json:"handler,omitempty"` Invoker string `json:"invoker,omitempty"` CacheSize *resource.Quantity `json:"cacheSize,omitempty"` Source *Source `json:"source,omitempty"` }
func (*FunctionBuild) DeepCopy ¶
func (in *FunctionBuild) DeepCopy() *FunctionBuild
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionBuild.
func (*FunctionBuild) DeepCopyInto ¶
func (in *FunctionBuild) DeepCopyInto(out *FunctionBuild)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionList ¶
type FunctionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Function `json:"items"` }
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 FunctionRun ¶
type FunctionRun ApplicationRun
func (*FunctionRun) DeepCopy ¶
func (in *FunctionRun) DeepCopy() *FunctionRun
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionRun.
func (*FunctionRun) DeepCopyInto ¶
func (in *FunctionRun) DeepCopyInto(out *FunctionRun)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FunctionSpec ¶
type FunctionSpec struct { Image string `json:"image"` Build FunctionBuild `json:"build"` Run FunctionRun `json:"run"` }
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.
func (*FunctionSpec) SetDefaults ¶
func (fs *FunctionSpec) SetDefaults()
type FunctionStatus ¶
type FunctionStatus struct { Conditions duckv1alpha1.Conditions `json:"conditions,omitempty"` Address *duckv1alpha1.Addressable `json:"address,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
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.
func (*FunctionStatus) GetCondition ¶
func (fs *FunctionStatus) GetCondition(t duckv1alpha1.ConditionType) *duckv1alpha1.Condition
func (*FunctionStatus) InitializeConditions ¶
func (fs *FunctionStatus) InitializeConditions()
func (*FunctionStatus) IsReady ¶
func (fs *FunctionStatus) IsReady() bool
func (*FunctionStatus) MarkApplicationNotOwned ¶
func (fs *FunctionStatus) MarkApplicationNotOwned(name string)
TODO move into function reconciler
func (*FunctionStatus) PropagateApplicationStatus ¶
func (fs *FunctionStatus) PropagateApplicationStatus(as *ApplicationStatus)
TODO move into function reconciler
type GitSource ¶
func (*GitSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.
func (*GitSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.