Documentation
¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the exstensions v1alpha2 API group
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type BodyType
- type CompressorAlgorithm
- type CompressorSpec
- type CustomResponseBody
- type DirectResponse
- func (in *DirectResponse) DeepCopy() *DirectResponse
- func (in *DirectResponse) DeepCopyInto(out *DirectResponse)
- func (in *DirectResponse) DeepCopyObject() runtime.Object
- func (d *DirectResponse) GetGroupVersionResource() schema.GroupVersionResource
- func (d *DirectResponse) GetObjectMeta() *metav1.ObjectMeta
- func (d *DirectResponse) GetSingularName() string
- func (d *DirectResponse) GetStatus() resource.StatusSubResource
- func (d *DirectResponse) IsStorageVersion() bool
- func (d *DirectResponse) NamespaceScoped() bool
- func (d *DirectResponse) New() runtime.Object
- func (d *DirectResponse) NewList() runtime.Object
- type DirectResponseList
- type DirectResponseSpec
- type DirectResponseStatus
- type EdgeFunction
- func (in *EdgeFunction) DeepCopy() *EdgeFunction
- func (in *EdgeFunction) DeepCopyInto(out *EdgeFunction)
- func (in *EdgeFunction) DeepCopyObject() runtime.Object
- func (r *EdgeFunction) Default()
- func (p *EdgeFunction) GetGroupVersionResource() schema.GroupVersionResource
- func (p *EdgeFunction) GetObjectMeta() *metav1.ObjectMeta
- func (p *EdgeFunction) GetSingularName() string
- func (p *EdgeFunction) GetStatus() resource.StatusSubResource
- func (p *EdgeFunction) IsStorageVersion() bool
- func (p *EdgeFunction) NamespaceScoped() bool
- func (p *EdgeFunction) New() runtime.Object
- func (p *EdgeFunction) NewList() runtime.Object
- func (r *EdgeFunction) Validate(ctx context.Context) field.ErrorList
- func (r *EdgeFunction) ValidateUpdate(ctx context.Context, obj runtime.Object) field.ErrorList
- type EdgeFunctionCodeSource
- type EdgeFunctionList
- type EdgeFunctionMode
- type EdgeFunctionRevision
- func (in *EdgeFunctionRevision) DeepCopy() *EdgeFunctionRevision
- func (in *EdgeFunctionRevision) DeepCopyInto(out *EdgeFunctionRevision)
- func (in *EdgeFunctionRevision) DeepCopyObject() runtime.Object
- func (e *EdgeFunctionRevision) GetGroupVersionResource() schema.GroupVersionResource
- func (e *EdgeFunctionRevision) GetObjectMeta() *metav1.ObjectMeta
- func (e *EdgeFunctionRevision) GetSingularName() string
- func (e *EdgeFunctionRevision) GetStatus() resource.StatusSubResource
- func (e *EdgeFunctionRevision) IsStorageVersion() bool
- func (e *EdgeFunctionRevision) NamespaceScoped() bool
- func (e *EdgeFunctionRevision) New() runtime.Object
- func (e *EdgeFunctionRevision) NewList() runtime.Object
- type EdgeFunctionRevisionList
- type EdgeFunctionRevisionSpec
- type EdgeFunctionRevisionStatus
- func (ps *EdgeFunctionRevisionStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
- func (in *EdgeFunctionRevisionStatus) DeepCopy() *EdgeFunctionRevisionStatus
- func (in *EdgeFunctionRevisionStatus) DeepCopyInto(out *EdgeFunctionRevisionStatus)
- func (ps *EdgeFunctionRevisionStatus) SubResourceName() string
- type EdgeFunctionRuntime
- type EdgeFunctionSpec
- type EdgeFunctionStatus
- type EnvVar
- type GoPluginSource
- type HTTPRouteFilter
- func (in *HTTPRouteFilter) DeepCopy() *HTTPRouteFilter
- func (in *HTTPRouteFilter) DeepCopyInto(out *HTTPRouteFilter)
- func (in *HTTPRouteFilter) DeepCopyObject() runtime.Object
- func (h *HTTPRouteFilter) GetGroupVersionResource() schema.GroupVersionResource
- func (h *HTTPRouteFilter) GetObjectMeta() *metav1.ObjectMeta
- func (h *HTTPRouteFilter) GetSingularName() string
- func (h *HTTPRouteFilter) GetStatus() resource.StatusSubResource
- func (h *HTTPRouteFilter) IsStorageVersion() bool
- func (h *HTTPRouteFilter) NamespaceScoped() bool
- func (h *HTTPRouteFilter) New() runtime.Object
- func (h *HTTPRouteFilter) NewList() runtime.Object
- func (h *HTTPRouteFilter) Validate(ctx context.Context) field.ErrorList
- func (h *HTTPRouteFilter) ValidateUpdate(ctx context.Context, obj runtime.Object) field.ErrorList
- type HTTPRouteFilterList
- type HTTPRouteFilterSpec
- type HTTPRouteFilterStatus
- type Header
- type JavaScriptAssetsSource
- type JavaScriptGitSource
- type JavaScriptNpmSource
- type JavaScriptSource
- type OCICredentials
- type OCICredentialsObjectReference
- type OCIImageRef
- type RuntimeCapabilities
- type SourceFile
- type WasmSource
Constants ¶
const ( ImageConfigMediaType = "application/vnd.apoxy.dev.image.config.v1+json" ImageLayerMediaType = "application/vnd.apoxy.dev.image.content.v1.tar+gzip" )
const DefaultCompressorMinContentLength uint32 = 128
DefaultCompressorMinContentLength is the default minimum response size (bytes) that triggers compression.
const GroupName = "extensions.apoxy.dev"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Deprecated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var DefaultCompressorAlgorithms = []CompressorAlgorithm{ CompressorAlgorithmGzip, CompressorAlgorithmBrotli, CompressorAlgorithmZstd, }
DefaultCompressorAlgorithms is the set of algorithms enabled when none are specified.
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha2"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type BodyType ¶
type BodyType string
BodyType defines how the response body is specified. +kubebuilder:validation:Enum=Inline
const ( // BodyTypeInline indicates the body is specified inline as a string. BodyTypeInline BodyType = "Inline" )
type CompressorAlgorithm ¶
type CompressorAlgorithm string
CompressorAlgorithm defines a compression algorithm. +kubebuilder:validation:Enum=gzip;brotli;zstd
const ( CompressorAlgorithmGzip CompressorAlgorithm = "gzip" CompressorAlgorithmBrotli CompressorAlgorithm = "brotli" CompressorAlgorithmZstd CompressorAlgorithm = "zstd" )
type CompressorSpec ¶
type CompressorSpec struct {
// Disabled disables compression on this route.
// When true, no other fields may be set.
// +optional
Disabled *bool `json:"disabled,omitempty"`
// Algorithms is the list of compression algorithms to enable.
// When not specified, all supported algorithms (gzip, brotli, zstd)
// are enabled.
// +optional
Algorithms []CompressorAlgorithm `json:"algorithms,omitempty"`
// MinContentLength is the minimum response body size in bytes
// that will trigger compression. Must be at least 50.
// Defaults to 128 if not specified.
// +optional
// +kubebuilder:validation:Minimum=50
MinContentLength *uint32 `json:"minContentLength,omitempty"`
// ContentType is a list of MIME types that will trigger compression.
// When not specified, a default set is used that covers common
// compressible types (application/json, text/html, text/plain, etc.).
// See https://docs.apoxy.dev/docs/guides/response-compression#default-content-types
// for the full list.
// +optional
ContentType []string `json:"contentType,omitempty"`
}
CompressorSpec configures response compression on a route.
func (*CompressorSpec) DeepCopy ¶
func (in *CompressorSpec) DeepCopy() *CompressorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompressorSpec.
func (*CompressorSpec) DeepCopyInto ¶
func (in *CompressorSpec) DeepCopyInto(out *CompressorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomResponseBody ¶
type CustomResponseBody struct {
// Type specifies how the body is provided.
// Currently only "Inline" is supported.
// +kubebuilder:validation:Required
Type BodyType `json:"type"`
// Inline is the literal body content when Type is "Inline".
// +optional
Inline *string `json:"inline,omitempty"`
}
CustomResponseBody defines the body of the direct response.
func (*CustomResponseBody) DeepCopy ¶
func (in *CustomResponseBody) DeepCopy() *CustomResponseBody
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResponseBody.
func (*CustomResponseBody) DeepCopyInto ¶
func (in *CustomResponseBody) DeepCopyInto(out *CustomResponseBody)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DirectResponse ¶
type DirectResponse struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DirectResponseSpec `json:"spec,omitempty"`
Status DirectResponseStatus `json:"status,omitempty"`
}
DirectResponse is the Schema for the directresponses API. It defines a static response that can be returned by an HTTPRoute instead of forwarding to a backend.
func (*DirectResponse) DeepCopy ¶
func (in *DirectResponse) DeepCopy() *DirectResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectResponse.
func (*DirectResponse) DeepCopyInto ¶
func (in *DirectResponse) DeepCopyInto(out *DirectResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DirectResponse) DeepCopyObject ¶
func (in *DirectResponse) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DirectResponse) GetGroupVersionResource ¶
func (d *DirectResponse) GetGroupVersionResource() schema.GroupVersionResource
func (*DirectResponse) GetObjectMeta ¶
func (d *DirectResponse) GetObjectMeta() *metav1.ObjectMeta
func (*DirectResponse) GetSingularName ¶
func (d *DirectResponse) GetSingularName() string
func (*DirectResponse) GetStatus ¶
func (d *DirectResponse) GetStatus() resource.StatusSubResource
func (*DirectResponse) IsStorageVersion ¶
func (d *DirectResponse) IsStorageVersion() bool
func (*DirectResponse) NamespaceScoped ¶
func (d *DirectResponse) NamespaceScoped() bool
func (*DirectResponse) New ¶
func (d *DirectResponse) New() runtime.Object
func (*DirectResponse) NewList ¶
func (d *DirectResponse) NewList() runtime.Object
type DirectResponseList ¶
type DirectResponseList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DirectResponse `json:"items"`
}
DirectResponseList contains a list of DirectResponse.
func (*DirectResponseList) DeepCopy ¶
func (in *DirectResponseList) DeepCopy() *DirectResponseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectResponseList.
func (*DirectResponseList) DeepCopyInto ¶
func (in *DirectResponseList) DeepCopyInto(out *DirectResponseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DirectResponseList) DeepCopyObject ¶
func (in *DirectResponseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DirectResponseList) GetListMeta ¶
func (dl *DirectResponseList) GetListMeta() *metav1.ListMeta
type DirectResponseSpec ¶
type DirectResponseSpec struct {
// StatusCode is the HTTP status code to return.
// Defaults to 200 if not specified.
// +kubebuilder:validation:Minimum=100
// +kubebuilder:validation:Maximum=599
// +kubebuilder:default=200
// +optional
StatusCode *int32 `json:"statusCode,omitempty"`
// ContentType is the Content-Type header value.
// Defaults to "text/plain" if not specified.
// +kubebuilder:default="text/plain"
// +optional
ContentType *string `json:"contentType,omitempty"`
// Headers are additional HTTP headers to include in the response.
// +optional
Headers []Header `json:"headers,omitempty"`
// Body is the response body configuration.
// +optional
Body *CustomResponseBody `json:"body,omitempty"`
}
DirectResponseSpec defines the desired state of DirectResponse.
func (*DirectResponseSpec) DeepCopy ¶
func (in *DirectResponseSpec) DeepCopy() *DirectResponseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectResponseSpec.
func (*DirectResponseSpec) DeepCopyInto ¶
func (in *DirectResponseSpec) DeepCopyInto(out *DirectResponseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DirectResponseStatus ¶
type DirectResponseStatus struct {
// Conditions describe the current conditions of the DirectResponse.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
DirectResponseStatus defines the observed state of DirectResponse.
func (*DirectResponseStatus) CopyTo ¶
func (s *DirectResponseStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
func (*DirectResponseStatus) DeepCopy ¶
func (in *DirectResponseStatus) DeepCopy() *DirectResponseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectResponseStatus.
func (*DirectResponseStatus) DeepCopyInto ¶
func (in *DirectResponseStatus) DeepCopyInto(out *DirectResponseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DirectResponseStatus) SubResourceName ¶
func (s *DirectResponseStatus) SubResourceName() string
type EdgeFunction ¶
type EdgeFunction struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec EdgeFunctionSpec `json:"spec,omitempty"`
Status EdgeFunctionStatus `json:"status,omitempty"`
}
func (*EdgeFunction) DeepCopy ¶
func (in *EdgeFunction) DeepCopy() *EdgeFunction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunction.
func (*EdgeFunction) DeepCopyInto ¶
func (in *EdgeFunction) DeepCopyInto(out *EdgeFunction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeFunction) DeepCopyObject ¶
func (in *EdgeFunction) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EdgeFunction) Default ¶
func (r *EdgeFunction) Default()
Default sets the default values for an EdgeFunction.
func (*EdgeFunction) GetGroupVersionResource ¶
func (p *EdgeFunction) GetGroupVersionResource() schema.GroupVersionResource
func (*EdgeFunction) GetObjectMeta ¶
func (p *EdgeFunction) GetObjectMeta() *metav1.ObjectMeta
func (*EdgeFunction) GetSingularName ¶
func (p *EdgeFunction) GetSingularName() string
func (*EdgeFunction) GetStatus ¶
func (p *EdgeFunction) GetStatus() resource.StatusSubResource
func (*EdgeFunction) IsStorageVersion ¶
func (p *EdgeFunction) IsStorageVersion() bool
func (*EdgeFunction) NamespaceScoped ¶
func (p *EdgeFunction) NamespaceScoped() bool
func (*EdgeFunction) New ¶
func (p *EdgeFunction) New() runtime.Object
func (*EdgeFunction) NewList ¶
func (p *EdgeFunction) NewList() runtime.Object
func (*EdgeFunction) Validate ¶
func (r *EdgeFunction) Validate(ctx context.Context) field.ErrorList
func (*EdgeFunction) ValidateUpdate ¶
type EdgeFunctionCodeSource ¶
type EdgeFunctionCodeSource struct {
// Metadata of the function source.
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// JsSource specifies sources for the JavaScript function runtime.
// If set/modified, a function will undergo a build step to compile the
// JavaScript source into a WebAssembly binary before it is deployed.
// +optional
JsSource *JavaScriptSource `json:"jsSource,omitempty"`
// WasmSource specifies sources for the WebAssembly function runtime.
// +optional
WasmSource *WasmSource `json:"wasmSource,omitempty"`
// GoSource specifies sources for the Go filter plugin.
// This option is only available for non-cloud (kubernets, unmanaged, etc)
// Proxy providers.
// +optional
GoPluginSource *GoPluginSource `json:"goPluginSource,omitempty"`
}
func (*EdgeFunctionCodeSource) DeepCopy ¶
func (in *EdgeFunctionCodeSource) DeepCopy() *EdgeFunctionCodeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionCodeSource.
func (*EdgeFunctionCodeSource) DeepCopyInto ¶
func (in *EdgeFunctionCodeSource) DeepCopyInto(out *EdgeFunctionCodeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EdgeFunctionList ¶
type EdgeFunctionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []EdgeFunction `json:"items"`
}
func (*EdgeFunctionList) DeepCopy ¶
func (in *EdgeFunctionList) DeepCopy() *EdgeFunctionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionList.
func (*EdgeFunctionList) DeepCopyInto ¶
func (in *EdgeFunctionList) DeepCopyInto(out *EdgeFunctionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeFunctionList) DeepCopyObject ¶
func (in *EdgeFunctionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EdgeFunctionList) GetListMeta ¶
func (pl *EdgeFunctionList) GetListMeta() *metav1.ListMeta
type EdgeFunctionMode ¶
type EdgeFunctionMode string
const ( // BackendEdgeFunctionMode means the function is used as a backend. BackendEdgeFunctionMode EdgeFunctionMode = "backend" // FilterEdgeFunctionMode means the function is used as a filter - a function // will be executed before the request is sent to the backend. This improves // performance by reducing the number of requests sent to the backend. FilterEdgeFunctionMode EdgeFunctionMode = "filter" )
type EdgeFunctionRevision ¶
type EdgeFunctionRevision struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec EdgeFunctionRevisionSpec `json:"spec,omitempty"`
Status EdgeFunctionRevisionStatus `json:"status,omitempty"`
}
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
EdgeFunctionRevision is a single revision of an EdgeFunction
func (*EdgeFunctionRevision) DeepCopy ¶
func (in *EdgeFunctionRevision) DeepCopy() *EdgeFunctionRevision
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionRevision.
func (*EdgeFunctionRevision) DeepCopyInto ¶
func (in *EdgeFunctionRevision) DeepCopyInto(out *EdgeFunctionRevision)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeFunctionRevision) DeepCopyObject ¶
func (in *EdgeFunctionRevision) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EdgeFunctionRevision) GetGroupVersionResource ¶
func (e *EdgeFunctionRevision) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource implements object.Object
func (*EdgeFunctionRevision) GetObjectMeta ¶
func (e *EdgeFunctionRevision) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta implements resource.Object
func (*EdgeFunctionRevision) GetSingularName ¶
func (e *EdgeFunctionRevision) GetSingularName() string
GetSingularName implements rest.SingularNameProvider
func (*EdgeFunctionRevision) GetStatus ¶
func (e *EdgeFunctionRevision) GetStatus() resource.StatusSubResource
GetStatus implements resource.ObjectWithStatusSubResource
func (*EdgeFunctionRevision) IsStorageVersion ¶
func (e *EdgeFunctionRevision) IsStorageVersion() bool
IsStorageVersion implements resource.Object
func (*EdgeFunctionRevision) NamespaceScoped ¶
func (e *EdgeFunctionRevision) NamespaceScoped() bool
NamespaceScoped implements resource.Object
func (*EdgeFunctionRevision) New ¶
func (e *EdgeFunctionRevision) New() runtime.Object
New implements resource.Object
func (*EdgeFunctionRevision) NewList ¶
func (e *EdgeFunctionRevision) NewList() runtime.Object
NewList implements resource.Object
type EdgeFunctionRevisionList ¶
type EdgeFunctionRevisionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []EdgeFunctionRevision `json:"items"`
}
func (*EdgeFunctionRevisionList) DeepCopy ¶
func (in *EdgeFunctionRevisionList) DeepCopy() *EdgeFunctionRevisionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionRevisionList.
func (*EdgeFunctionRevisionList) DeepCopyInto ¶
func (in *EdgeFunctionRevisionList) DeepCopyInto(out *EdgeFunctionRevisionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeFunctionRevisionList) DeepCopyObject ¶
func (in *EdgeFunctionRevisionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EdgeFunctionRevisionList) GetListMeta ¶
func (pl *EdgeFunctionRevisionList) GetListMeta() *metav1.ListMeta
type EdgeFunctionRevisionSpec ¶
type EdgeFunctionRevisionSpec struct {
// Mode is runtime mode of the function.
Mode EdgeFunctionMode `json:"mode"`
// Code is the source of the function code/binary.
Code EdgeFunctionCodeSource `json:"code"`
// Env is a list of environment variables to set in the function
// runtime.
// These will be available via WASIp1 environ* routines as well as Apoxy Runtime SDK APIs.
// +optional
Env []EnvVar `json:"env,omitempty"`
// Configuration for the function runtime.
// +optional
Runtime *EdgeFunctionRuntime `json:"runtime,omitempty"`
}
func (*EdgeFunctionRevisionSpec) DeepCopy ¶
func (in *EdgeFunctionRevisionSpec) DeepCopy() *EdgeFunctionRevisionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionRevisionSpec.
func (*EdgeFunctionRevisionSpec) DeepCopyInto ¶
func (in *EdgeFunctionRevisionSpec) DeepCopyInto(out *EdgeFunctionRevisionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EdgeFunctionRevisionStatus ¶
type EdgeFunctionRevisionStatus struct {
// Ref is the functions' uniquely identifying reference.
Ref string `json:"ref"`
// Conditions represent the latest available observations of an EdgeFunctionRevision's current state.
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
EdgeFunctionRevisionStatus defines the observed state of EdgeFunctionRevision
func (*EdgeFunctionRevisionStatus) CopyTo ¶
func (ps *EdgeFunctionRevisionStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
func (*EdgeFunctionRevisionStatus) DeepCopy ¶
func (in *EdgeFunctionRevisionStatus) DeepCopy() *EdgeFunctionRevisionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionRevisionStatus.
func (*EdgeFunctionRevisionStatus) DeepCopyInto ¶
func (in *EdgeFunctionRevisionStatus) DeepCopyInto(out *EdgeFunctionRevisionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeFunctionRevisionStatus) SubResourceName ¶
func (ps *EdgeFunctionRevisionStatus) SubResourceName() string
type EdgeFunctionRuntime ¶
type EdgeFunctionRuntime struct {
// Timeout is the maximum time the function is allowed to run.
// Defaults to 30 seconds but can be increased depending on your plan.
// +optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
// Capabilities is the list of capabilities granted to the function.
// +optional
Capabilities *RuntimeCapabilities `json:"capabilities,omitempty"`
// Port is the port the function listens on.
// Defaults to 8080.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=65535
// +kubebuilder:default=8080
// +optional
Port *int32 `json:"port,omitempty"`
}
func (*EdgeFunctionRuntime) DeepCopy ¶
func (in *EdgeFunctionRuntime) DeepCopy() *EdgeFunctionRuntime
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionRuntime.
func (*EdgeFunctionRuntime) DeepCopyInto ¶
func (in *EdgeFunctionRuntime) DeepCopyInto(out *EdgeFunctionRuntime)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EdgeFunctionSpec ¶
type EdgeFunctionSpec struct {
// Template is the template of the function.
Template EdgeFunctionRevisionSpec `json:"template"`
// DynamicPluginConfig is configuration passed to a Go plugin through Envoy's
// per-route configuration. Updating it does not create a new EdgeFunctionRevision
// or reload the plugin shared library.
// The value must be a JSON or YAML object encoded as a string.
// +optional
DynamicPluginConfig string `json:"dynamicPluginConfig,omitempty"`
// RevisionHistoryLimit is the number of old revisions to keep.
// Defaults to 10.
// +optional
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
}
func (*EdgeFunctionSpec) DeepCopy ¶
func (in *EdgeFunctionSpec) DeepCopy() *EdgeFunctionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionSpec.
func (*EdgeFunctionSpec) DeepCopyInto ¶
func (in *EdgeFunctionSpec) DeepCopyInto(out *EdgeFunctionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EdgeFunctionStatus ¶
type EdgeFunctionStatus struct {
// LiveRevision is the revision of the function that is currently being served
// referenced by EdgeFunctionRevision object name.
// +optional
LiveRevision string `json:"liveRevision,omitempty"`
// Conditions describe the current conditions of the EdgeFunction.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
func (*EdgeFunctionStatus) CopyTo ¶
func (ps *EdgeFunctionStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
func (*EdgeFunctionStatus) DeepCopy ¶
func (in *EdgeFunctionStatus) DeepCopy() *EdgeFunctionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeFunctionStatus.
func (*EdgeFunctionStatus) DeepCopyInto ¶
func (in *EdgeFunctionStatus) DeepCopyInto(out *EdgeFunctionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeFunctionStatus) SubResourceName ¶
func (ps *EdgeFunctionStatus) SubResourceName() string
type EnvVar ¶
type EnvVar struct {
// Name of the environment variable.
Name string `json:"name"`
// Value of the environment variable.
Value string `json:"value"`
}
func (*EnvVar) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar.
func (*EnvVar) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoPluginSource ¶
type GoPluginSource struct {
// URL is the URL to the Go plugin .so
// +optional
URL *string `json:"url,omitempty"`
// OCI is the OCI image reference to the Go plugin.
// +optional
OCI *OCIImageRef `json:"oci,omitempty"`
// PluginConfig is the configuration passed to the Go plugin as JSON-encoded
// structpb.Struct message. Plugin will receive it as anypb.Any message.
// +optional
PluginConfig string `json:"pluginConfig,omitempty"`
}
func (*GoPluginSource) DeepCopy ¶
func (in *GoPluginSource) DeepCopy() *GoPluginSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoPluginSource.
func (*GoPluginSource) DeepCopyInto ¶
func (in *GoPluginSource) DeepCopyInto(out *GoPluginSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPRouteFilter ¶
type HTTPRouteFilter struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec HTTPRouteFilterSpec `json:"spec,omitempty"`
Status HTTPRouteFilterStatus `json:"status,omitempty"`
}
HTTPRouteFilter is the Schema for the httproutefilters API. It defines per-route HTTP filter configuration that can be attached to an HTTPRoute via extensionRef.
func (*HTTPRouteFilter) DeepCopy ¶
func (in *HTTPRouteFilter) DeepCopy() *HTTPRouteFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteFilter.
func (*HTTPRouteFilter) DeepCopyInto ¶
func (in *HTTPRouteFilter) DeepCopyInto(out *HTTPRouteFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPRouteFilter) DeepCopyObject ¶
func (in *HTTPRouteFilter) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*HTTPRouteFilter) GetGroupVersionResource ¶
func (h *HTTPRouteFilter) GetGroupVersionResource() schema.GroupVersionResource
func (*HTTPRouteFilter) GetObjectMeta ¶
func (h *HTTPRouteFilter) GetObjectMeta() *metav1.ObjectMeta
func (*HTTPRouteFilter) GetSingularName ¶
func (h *HTTPRouteFilter) GetSingularName() string
func (*HTTPRouteFilter) GetStatus ¶
func (h *HTTPRouteFilter) GetStatus() resource.StatusSubResource
func (*HTTPRouteFilter) IsStorageVersion ¶
func (h *HTTPRouteFilter) IsStorageVersion() bool
func (*HTTPRouteFilter) NamespaceScoped ¶
func (h *HTTPRouteFilter) NamespaceScoped() bool
func (*HTTPRouteFilter) New ¶
func (h *HTTPRouteFilter) New() runtime.Object
func (*HTTPRouteFilter) NewList ¶
func (h *HTTPRouteFilter) NewList() runtime.Object
func (*HTTPRouteFilter) Validate ¶
func (h *HTTPRouteFilter) Validate(ctx context.Context) field.ErrorList
func (*HTTPRouteFilter) ValidateUpdate ¶
type HTTPRouteFilterList ¶
type HTTPRouteFilterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []HTTPRouteFilter `json:"items"`
}
HTTPRouteFilterList contains a list of HTTPRouteFilter.
func (*HTTPRouteFilterList) DeepCopy ¶
func (in *HTTPRouteFilterList) DeepCopy() *HTTPRouteFilterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteFilterList.
func (*HTTPRouteFilterList) DeepCopyInto ¶
func (in *HTTPRouteFilterList) DeepCopyInto(out *HTTPRouteFilterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPRouteFilterList) DeepCopyObject ¶
func (in *HTTPRouteFilterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*HTTPRouteFilterList) GetListMeta ¶
func (hl *HTTPRouteFilterList) GetListMeta() *metav1.ListMeta
type HTTPRouteFilterSpec ¶
type HTTPRouteFilterSpec struct {
// Compressor configures response compression on the route.
// +optional
Compressor *CompressorSpec `json:"compressor,omitempty"`
}
HTTPRouteFilterSpec defines the desired state of HTTPRouteFilter. This is a union type: exactly one field must be set.
func (*HTTPRouteFilterSpec) DeepCopy ¶
func (in *HTTPRouteFilterSpec) DeepCopy() *HTTPRouteFilterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteFilterSpec.
func (*HTTPRouteFilterSpec) DeepCopyInto ¶
func (in *HTTPRouteFilterSpec) DeepCopyInto(out *HTTPRouteFilterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPRouteFilterStatus ¶
type HTTPRouteFilterStatus struct {
// Conditions describe the current conditions of the HTTPRouteFilter.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
HTTPRouteFilterStatus defines the observed state of HTTPRouteFilter.
func (*HTTPRouteFilterStatus) CopyTo ¶
func (s *HTTPRouteFilterStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
func (*HTTPRouteFilterStatus) DeepCopy ¶
func (in *HTTPRouteFilterStatus) DeepCopy() *HTTPRouteFilterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteFilterStatus.
func (*HTTPRouteFilterStatus) DeepCopyInto ¶
func (in *HTTPRouteFilterStatus) DeepCopyInto(out *HTTPRouteFilterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPRouteFilterStatus) SubResourceName ¶
func (s *HTTPRouteFilterStatus) SubResourceName() string
type Header ¶
type Header struct {
// Name is the header name.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// Value is the header value.
// +kubebuilder:validation:Required
Value string `json:"value"`
}
Header defines a custom HTTP header to include in the response.
func (*Header) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Header.
func (*Header) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JavaScriptAssetsSource ¶
type JavaScriptAssetsSource struct {
Files []SourceFile `json:"files"`
}
func (*JavaScriptAssetsSource) DeepCopy ¶
func (in *JavaScriptAssetsSource) DeepCopy() *JavaScriptAssetsSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JavaScriptAssetsSource.
func (*JavaScriptAssetsSource) DeepCopyInto ¶
func (in *JavaScriptAssetsSource) DeepCopyInto(out *JavaScriptAssetsSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JavaScriptGitSource ¶
type JavaScriptGitSource struct {
// Repository is the git repository URL.
Repository string `json:"repository"`
// Branch is the git branch.
// +optional
Branch string `json:"branch,omitempty"`
// Commit is the git commit.
// +optional
Commit string `json:"commit,omitempty"`
}
func (*JavaScriptGitSource) DeepCopy ¶
func (in *JavaScriptGitSource) DeepCopy() *JavaScriptGitSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JavaScriptGitSource.
func (*JavaScriptGitSource) DeepCopyInto ¶
func (in *JavaScriptGitSource) DeepCopyInto(out *JavaScriptGitSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JavaScriptNpmSource ¶
type JavaScriptNpmSource struct {
// Package is the npm package name.
Package string `json:"package"`
// Version is the npm package version.
// +optional
Version string `json:"version,omitempty"`
}
func (*JavaScriptNpmSource) DeepCopy ¶
func (in *JavaScriptNpmSource) DeepCopy() *JavaScriptNpmSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JavaScriptNpmSource.
func (*JavaScriptNpmSource) DeepCopyInto ¶
func (in *JavaScriptNpmSource) DeepCopyInto(out *JavaScriptNpmSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JavaScriptSource ¶
type JavaScriptSource struct {
// Entrypoint is the entrypoint path to the function.
Entrypoint string `json:"entrypoint"`
// Asset accepts a list of source files to be included in the function.
// Only one of Assets, Git, or Npm may be specified.
// +optional
Assets *JavaScriptAssetsSource `json:"assets,omitempty"`
// Git is the git source for the function.
// Only one of Assets, Git, or Npm may be specified.
// +optional
Git *JavaScriptGitSource `json:"git,omitempty"`
// Npm is the npm source for the function.
// Only one of Assets, Git, or Npm may be specified.
// +optional
Npm *JavaScriptNpmSource `json:"npm,omitempty"`
}
JavaScriptSource provides sources for the JavaScript function runtime. Only one of the fields may be specified.
func (*JavaScriptSource) DeepCopy ¶
func (in *JavaScriptSource) DeepCopy() *JavaScriptSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JavaScriptSource.
func (*JavaScriptSource) DeepCopyInto ¶
func (in *JavaScriptSource) DeepCopyInto(out *JavaScriptSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCICredentials ¶
type OCICredentials struct {
// Username is the username for the OCI registry.
Username string `json:"username,omitempty"`
// Password is the password for the OCI registry. This field is write-only
// and is not returned in the response.
Password string `json:"password,omitempty"`
// PasswordData is the base64 encoded password for the OCI registry.
PasswordData []byte `json:"passwordData,omitempty"`
}
func (*OCICredentials) DeepCopy ¶
func (in *OCICredentials) DeepCopy() *OCICredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCICredentials.
func (*OCICredentials) DeepCopyInto ¶
func (in *OCICredentials) DeepCopyInto(out *OCICredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCICredentialsObjectReference ¶
type OCICredentialsObjectReference struct {
// Group is the group of the target resource.
Group corev1alpha.Group `json:"group"`
// Kind is kind of the target resource.
// Supports Secret with on-prem deploys.
Kind corev1alpha.Kind `json:"kind"`
// Name is the name of the target resource.
Name corev1alpha.ObjectName `json:"name"`
// Namespace is the namespace of the target resource.
Namespace corev1alpha.Namespace `json:"namespace"`
}
func (*OCICredentialsObjectReference) DeepCopy ¶
func (in *OCICredentialsObjectReference) DeepCopy() *OCICredentialsObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCICredentialsObjectReference.
func (*OCICredentialsObjectReference) DeepCopyInto ¶
func (in *OCICredentialsObjectReference) DeepCopyInto(out *OCICredentialsObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCIImageRef ¶
type OCIImageRef struct {
// Repo is the repository of the OCI image.
Repo string `json:"repo"`
// Tag is the tag of the OCI image.
// +optional
// +kubebuilder:default="latest"
Tag string `json:"tag"`
// Credentials is the credentials for pulling the OCI image.
// Only one of Credentials or CredentialsRef may be specified.
// +optional
Credentials *OCICredentials `json:"credentials,omitempty"`
// CredentialsRef is the reference to the secret containing the credentials for pulling the OCI image.
// Only one of Credentials or CredentialsRef may be specified.
// +optional
CredentialsRef *OCICredentialsObjectReference `json:"credentialsRef,omitempty"`
}
func (*OCIImageRef) DeepCopy ¶
func (in *OCIImageRef) DeepCopy() *OCIImageRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCIImageRef.
func (*OCIImageRef) DeepCopyInto ¶
func (in *OCIImageRef) DeepCopyInto(out *OCIImageRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuntimeCapabilities ¶
type RuntimeCapabilities struct {
// FetchAPI is the capability to fetch data from the internet.
// Defaults to true.
// +optional
FetchAPI *bool `json:"fetchAPI,omitempty"`
// K/V is the capability to access the key/value store.
// Defaults to true.
// +optional
KV *bool `json:"kv,omitempty"`
}
func (*RuntimeCapabilities) DeepCopy ¶
func (in *RuntimeCapabilities) DeepCopy() *RuntimeCapabilities
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeCapabilities.
func (*RuntimeCapabilities) DeepCopyInto ¶
func (in *RuntimeCapabilities) DeepCopyInto(out *RuntimeCapabilities)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceFile ¶
type SourceFile struct {
// Path is the path to the source file.
Path string `json:"path"`
// Content is the content of the source file.
Content string `json:"content"`
}
func (*SourceFile) DeepCopy ¶
func (in *SourceFile) DeepCopy() *SourceFile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceFile.
func (*SourceFile) DeepCopyInto ¶
func (in *SourceFile) DeepCopyInto(out *SourceFile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WasmSource ¶
type WasmSource struct {
// URL is the URL to the WebAssembly binary.
URL string `json:"url"`
}
func (*WasmSource) DeepCopy ¶
func (in *WasmSource) DeepCopy() *WasmSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WasmSource.
func (*WasmSource) DeepCopyInto ¶
func (in *WasmSource) DeepCopyInto(out *WasmSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.