v1alpha1

package
v0.0.0-...-81108a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=wasm.serving.knative.dev

Index

Constants

View Source
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

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: wasm.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL