Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=wasm.serving.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type WasmModule
- func (in *WasmModule) DeepCopy() *WasmModule
- func (in *WasmModule) DeepCopyInto(out *WasmModule)
- func (in *WasmModule) DeepCopyObject() runtime.Object
- func (as *WasmModule) GetConditionSet() apis.ConditionSet
- func (*WasmModule) GetGroupVersionKind() schema.GroupVersionKind
- func (as *WasmModule) GetStatus() *duckv1.Status
- func (as *WasmModule) SetDefaults(ctx context.Context)
- func (as *WasmModule) Validate(ctx context.Context) *apis.FieldError
- type WasmModuleList
- type WasmModuleSpec
- type WasmModuleStatus
Constants ¶
const ( // WasmModuleConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. WasmModuleConditionReady = apis.ConditionReady )
Variables ¶
var ( // SchemeBuilder builds a scheme with the types known to the package. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types known to this package to an existing schema. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: wasm.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 WasmModule ¶
type WasmModule struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the WasmModule (from the client). // +optional Spec WasmModuleSpec `json:"spec,omitempty"` // Status communicates the observed state of the WasmModule (from the controller). // +optional Status WasmModuleStatus `json:"status,omitempty"` }
WasmModule is a Knative's WASM module that accepts HTTP.
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*WasmModule) DeepCopy ¶
func (in *WasmModule) DeepCopy() *WasmModule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WasmModule.
func (*WasmModule) DeepCopyInto ¶
func (in *WasmModule) DeepCopyInto(out *WasmModule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WasmModule) DeepCopyObject ¶
func (in *WasmModule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WasmModule) GetConditionSet ¶
func (as *WasmModule) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*WasmModule) GetGroupVersionKind ¶
func (*WasmModule) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*WasmModule) GetStatus ¶
func (as *WasmModule) GetStatus() *duckv1.Status
GetStatus retrieves the status of the resource. Implements the KRShaped interface.
func (*WasmModule) SetDefaults ¶
func (as *WasmModule) SetDefaults(ctx context.Context)
SetDefaults implements apis.Defaultable
func (*WasmModule) Validate ¶
func (as *WasmModule) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type WasmModuleList ¶
type WasmModuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []WasmModule `json:"items"` }
WasmModuleList is a list of WasmModule resources
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*WasmModuleList) DeepCopy ¶
func (in *WasmModuleList) DeepCopy() *WasmModuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WasmModuleList.
func (*WasmModuleList) DeepCopyInto ¶
func (in *WasmModuleList) DeepCopyInto(out *WasmModuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WasmModuleList) DeepCopyObject ¶
func (in *WasmModuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WasmModuleSpec ¶
type WasmModuleSpec struct { // ServiceName holds the name of the Kubernetes Service to expose as an "addressable". ServiceName string `json:"serviceName"` }
WasmModuleSpec holds the desired state of the WasmModule (from the client).
func (*WasmModuleSpec) DeepCopy ¶
func (in *WasmModuleSpec) DeepCopy() *WasmModuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WasmModuleSpec.
func (*WasmModuleSpec) DeepCopyInto ¶
func (in *WasmModuleSpec) DeepCopyInto(out *WasmModuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WasmModuleSpec) Validate ¶
func (ass *WasmModuleSpec) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type WasmModuleStatus ¶
type WasmModuleStatus struct { duckv1.Status `json:",inline"` // Address holds the information needed to connect this Addressable up to receive events. // +optional Address *duckv1.Addressable `json:"address,omitempty"` }
WasmModuleStatus communicates the observed state of the WasmModule (from the controller).
func (*WasmModuleStatus) DeepCopy ¶
func (in *WasmModuleStatus) DeepCopy() *WasmModuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WasmModuleStatus.
func (*WasmModuleStatus) DeepCopyInto ¶
func (in *WasmModuleStatus) DeepCopyInto(out *WasmModuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WasmModuleStatus) InitializeConditions ¶
func (ass *WasmModuleStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*WasmModuleStatus) MarkServiceAvailable ¶
func (ass *WasmModuleStatus) MarkServiceAvailable()
func (*WasmModuleStatus) MarkServiceUnavailable ¶
func (ass *WasmModuleStatus) MarkServiceUnavailable(name string)