Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=htnn.mosn.io
Copyright The HTNN Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func NormalizeIstioProtocol(protocol string) string
- func NormalizeK8sGatewayProtocol(protocol gwapiv1.ProtocolType) string
- func ValidateConsumer(c *Consumer) error
- func ValidateDynamicConfig(c *DynamicConfig) error
- func ValidateEmbeddedFilterPolicy(policy *FilterPolicy, gk schema.GroupKind) error
- func ValidateEmbeddedFilterPolicyStrictly(policy *FilterPolicy, gk schema.GroupKind) error
- func ValidateFilterPolicy(policy *FilterPolicy) error
- func ValidateFilterPolicyStrictly(policy *FilterPolicy) error
- func ValidateGateway(gw *istiov1a3.Gateway) error
- func ValidateHTTPFilterPolicy(policy *HTTPFilterPolicy) error
- func ValidateHTTPFilterPolicyStrictly(policy *HTTPFilterPolicy) error
- func ValidateServiceRegistry(sr *ServiceRegistry) error
- func ValidateVirtualService(vs *istiov1a3.VirtualService) error
- type ChangeDetector
- type ConditionReason
- type ConditionType
- type Consumer
- func (in *Consumer) DeepCopy() *Consumer
- func (in *Consumer) DeepCopyInto(out *Consumer)
- func (in *Consumer) DeepCopyObject() runtime.Object
- func (c *Consumer) IsSpecChanged() bool
- func (c *Consumer) IsValid() bool
- func (c *Consumer) Marshal() string
- func (c *Consumer) SetAccepted(reason ConditionReason, msg ...string)
- type ConsumerList
- type ConsumerPlugin
- type ConsumerSpec
- type ConsumerStatus
- type DynamicConfig
- func (in *DynamicConfig) DeepCopy() *DynamicConfig
- func (in *DynamicConfig) DeepCopyInto(out *DynamicConfig)
- func (in *DynamicConfig) DeepCopyObject() runtime.Object
- func (c *DynamicConfig) IsSpecChanged() bool
- func (c *DynamicConfig) IsValid() bool
- func (c *DynamicConfig) SetAccepted(reason ConditionReason, msg ...string)
- type DynamicConfigList
- type DynamicConfigSpec
- type DynamicConfigStatus
- type FilterPolicy
- func (in *FilterPolicy) DeepCopy() *FilterPolicy
- func (in *FilterPolicy) DeepCopyInto(out *FilterPolicy)
- func (in *FilterPolicy) DeepCopyObject() runtime.Object
- func (p *FilterPolicy) FromHTTPFilterPolicy() bool
- func (p *FilterPolicy) IsSpecChanged() bool
- func (p *FilterPolicy) IsValid() bool
- func (p *FilterPolicy) SetAccepted(reason gwapiv1a2.PolicyConditionReason, msg ...string)
- type FilterPolicyList
- type FilterPolicySpec
- type FilterPolicyStatus
- type FilterSubPolicy
- type HTTPFilterPolicy
- type HTTPFilterPolicyList
- type HTTPFilterPolicySpec
- type HTTPFilterPolicyStatus
- type HTTPFilterSubPolicy
- type Plugin
- type ServiceRegistry
- type ServiceRegistryList
- type ServiceRegistrySpec
- type ServiceRegistryStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "htnn.mosn.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme // SchemeGroupVersion is group version used to register these objects // Deprecated: use GroupVersion instead. // Here we keep it for compatibility with client-gen. SchemeGroupVersion = GroupVersion )
Functions ¶
func NormalizeIstioProtocol ¶ added in v0.2.2
func NormalizeK8sGatewayProtocol ¶ added in v0.2.2
func NormalizeK8sGatewayProtocol(protocol gwapiv1.ProtocolType) string
func ValidateConsumer ¶
func ValidateDynamicConfig ¶ added in v0.4.0
func ValidateDynamicConfig(c *DynamicConfig) error
func ValidateEmbeddedFilterPolicy ¶ added in v0.2.2
func ValidateEmbeddedFilterPolicy(policy *FilterPolicy, gk schema.GroupKind) error
ValidateEmbeddedFilterPolicy is similar to ValidateFilterPolicy, but it's used for embedded FilterPolicy. This function requires an extra parameter to specify the GroupKind of the object that contains the embedded FilterPolicy, for example, `ValidateEmbeddedFilterPolicy(policy, schema.GroupKind{Group: "networking.istio.io", Kind: "VirtualService"})`.
func ValidateEmbeddedFilterPolicyStrictly ¶ added in v0.2.2
func ValidateEmbeddedFilterPolicyStrictly(policy *FilterPolicy, gk schema.GroupKind) error
ValidateEmbeddedFilterPolicyStrictly is similar to ValidateFilterPolicyStrictly, but it's used for embedded FilterPolicy. This function requires an extra parameter to specify the GroupKind of the object that contains the embedded FilterPolicy, for example, `ValidateEmbeddedFilterPolicy(policy, schema.GroupKind{Group: "networking.istio.io", Kind: "VirtualService"})`.
func ValidateFilterPolicy ¶ added in v0.2.2
func ValidateFilterPolicy(policy *FilterPolicy) error
ValidateFilterPolicy validates FilterPolicy. It only validate the part it knows, so unknown plugins or fields will be skipped. It's recommended to use this function in the controller.
func ValidateFilterPolicyStrictly ¶ added in v0.2.2
func ValidateFilterPolicyStrictly(policy *FilterPolicy) error
ValidateFilterPolicyStrictly validates FilterPolicy strictly. Unknown plugins or fields will be rejected. It's recommended to use this function before writing the configuration to persistent storage, for example, in the dashboard or webhook.
func ValidateGateway ¶
func ValidateHTTPFilterPolicy ¶
func ValidateHTTPFilterPolicy(policy *HTTPFilterPolicy) error
func ValidateHTTPFilterPolicyStrictly ¶
func ValidateHTTPFilterPolicyStrictly(policy *HTTPFilterPolicy) error
func ValidateServiceRegistry ¶
func ValidateServiceRegistry(sr *ServiceRegistry) error
func ValidateVirtualService ¶
func ValidateVirtualService(vs *istiov1a3.VirtualService) error
Types ¶
type ChangeDetector ¶ added in v0.2.2
type ChangeDetector struct {
// contains filtered or unexported fields
}
func (*ChangeDetector) DeepCopy ¶ added in v0.2.2
func (in *ChangeDetector) DeepCopy() *ChangeDetector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChangeDetector.
func (*ChangeDetector) DeepCopyInto ¶ added in v0.2.2
func (in *ChangeDetector) DeepCopyInto(out *ChangeDetector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChangeDetector) IsChanged ¶ added in v0.2.2
func (s *ChangeDetector) IsChanged() bool
func (*ChangeDetector) MarkAsChanged ¶ added in v0.2.2
func (s *ChangeDetector) MarkAsChanged()
func (*ChangeDetector) Reset ¶ added in v0.2.2
func (s *ChangeDetector) Reset()
type ConditionReason ¶
type ConditionReason string
const ( ReasonAccepted ConditionReason = "Accepted" ReasonInvalid ConditionReason = "Invalid" )
type ConditionType ¶
type ConditionType string
const (
ConditionAccepted ConditionType = "Accepted"
)
type Consumer ¶
type Consumer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConsumerSpec `json:"spec,omitempty"` Status ConsumerStatus `json:"status,omitempty"` }
Consumer is the Schema for the consumers API
func (*Consumer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Consumer.
func (*Consumer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Consumer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Consumer) IsSpecChanged ¶
func (*Consumer) SetAccepted ¶
func (c *Consumer) SetAccepted(reason ConditionReason, msg ...string)
type ConsumerList ¶
type ConsumerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Consumer `json:"items"` }
ConsumerList contains a list of Consumer
func (*ConsumerList) DeepCopy ¶
func (in *ConsumerList) DeepCopy() *ConsumerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerList.
func (*ConsumerList) DeepCopyInto ¶
func (in *ConsumerList) DeepCopyInto(out *ConsumerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConsumerList) DeepCopyObject ¶
func (in *ConsumerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConsumerPlugin ¶
type ConsumerPlugin struct {
Config runtime.RawExtension `json:"config"`
}
ConsumerPlugin defines the authentication plugin configuration used in the consumer
func (*ConsumerPlugin) DeepCopy ¶
func (in *ConsumerPlugin) DeepCopy() *ConsumerPlugin
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerPlugin.
func (*ConsumerPlugin) DeepCopyInto ¶
func (in *ConsumerPlugin) DeepCopyInto(out *ConsumerPlugin)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConsumerSpec ¶
type ConsumerSpec struct { // Auth is a map of authentication plugin names to plugin configurations. // // +kubebuilder:validation:MinProperties=1 Auth map[string]ConsumerPlugin `json:"auth"` // Filters is a map of filter names to filter configurations. // // +optional Filters map[string]Plugin `json:"filters,omitempty"` // Name is the name of consumer, which is used in the data plane matching. // If this field is not set, the name of the consumer CustomResource will be used. // // +optional Name string `json:"name,omitempty"` }
ConsumerSpec defines the desired state of Consumer
func (*ConsumerSpec) DeepCopy ¶
func (in *ConsumerSpec) DeepCopy() *ConsumerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerSpec.
func (*ConsumerSpec) DeepCopyInto ¶
func (in *ConsumerSpec) DeepCopyInto(out *ConsumerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConsumerStatus ¶
type ConsumerStatus struct { // Conditions describe the current conditions. // // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` ChangeDetector `json:",inline"` }
ConsumerStatus defines the observed state of Consumer
func (*ConsumerStatus) DeepCopy ¶
func (in *ConsumerStatus) DeepCopy() *ConsumerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerStatus.
func (*ConsumerStatus) DeepCopyInto ¶
func (in *ConsumerStatus) DeepCopyInto(out *ConsumerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicConfig ¶ added in v0.4.0
type DynamicConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DynamicConfigSpec `json:"spec,omitempty"` Status DynamicConfigStatus `json:"status,omitempty"` }
DynamicConfig is the Schema for the dynamicconfigs API
func (*DynamicConfig) DeepCopy ¶ added in v0.4.0
func (in *DynamicConfig) DeepCopy() *DynamicConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfig.
func (*DynamicConfig) DeepCopyInto ¶ added in v0.4.0
func (in *DynamicConfig) DeepCopyInto(out *DynamicConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicConfig) DeepCopyObject ¶ added in v0.4.0
func (in *DynamicConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DynamicConfig) IsSpecChanged ¶ added in v0.4.0
func (c *DynamicConfig) IsSpecChanged() bool
func (*DynamicConfig) IsValid ¶ added in v0.4.0
func (c *DynamicConfig) IsValid() bool
func (*DynamicConfig) SetAccepted ¶ added in v0.4.0
func (c *DynamicConfig) SetAccepted(reason ConditionReason, msg ...string)
type DynamicConfigList ¶ added in v0.4.0
type DynamicConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DynamicConfig `json:"items"` }
DynamicConfigList contains a list of DynamicConfig
func (*DynamicConfigList) DeepCopy ¶ added in v0.4.0
func (in *DynamicConfigList) DeepCopy() *DynamicConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfigList.
func (*DynamicConfigList) DeepCopyInto ¶ added in v0.4.0
func (in *DynamicConfigList) DeepCopyInto(out *DynamicConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicConfigList) DeepCopyObject ¶ added in v0.4.0
func (in *DynamicConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DynamicConfigSpec ¶ added in v0.4.0
type DynamicConfigSpec struct { Type string `json:"type"` Config runtime.RawExtension `json:"config"` }
DynamicConfigSpec defines the desired state of DynamicConfig
func (*DynamicConfigSpec) DeepCopy ¶ added in v0.4.0
func (in *DynamicConfigSpec) DeepCopy() *DynamicConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfigSpec.
func (*DynamicConfigSpec) DeepCopyInto ¶ added in v0.4.0
func (in *DynamicConfigSpec) DeepCopyInto(out *DynamicConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicConfigStatus ¶ added in v0.4.0
type DynamicConfigStatus struct { // Conditions describe the current conditions. // // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` ChangeDetector `json:",inline"` }
DynamicConfigStatus defines the observed state of DynamicConfig
func (*DynamicConfigStatus) DeepCopy ¶ added in v0.4.0
func (in *DynamicConfigStatus) DeepCopy() *DynamicConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfigStatus.
func (*DynamicConfigStatus) DeepCopyInto ¶ added in v0.4.0
func (in *DynamicConfigStatus) DeepCopyInto(out *DynamicConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterPolicy ¶ added in v0.2.2
type FilterPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FilterPolicySpec `json:"spec,omitempty"` Status FilterPolicyStatus `json:"status,omitempty"` // contains filtered or unexported fields }
FilterPolicy is the Schema for the filterpolicies API
func ConvertHTTPFilterPolicyToFilterPolicy ¶ added in v0.2.2
func ConvertHTTPFilterPolicyToFilterPolicy(hp *HTTPFilterPolicy) FilterPolicy
func (*FilterPolicy) DeepCopy ¶ added in v0.2.2
func (in *FilterPolicy) DeepCopy() *FilterPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterPolicy.
func (*FilterPolicy) DeepCopyInto ¶ added in v0.2.2
func (in *FilterPolicy) DeepCopyInto(out *FilterPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FilterPolicy) DeepCopyObject ¶ added in v0.2.2
func (in *FilterPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FilterPolicy) FromHTTPFilterPolicy ¶ added in v0.2.2
func (p *FilterPolicy) FromHTTPFilterPolicy() bool
func (*FilterPolicy) IsSpecChanged ¶ added in v0.2.2
func (p *FilterPolicy) IsSpecChanged() bool
func (*FilterPolicy) IsValid ¶ added in v0.2.2
func (p *FilterPolicy) IsValid() bool
func (*FilterPolicy) SetAccepted ¶ added in v0.2.2
func (p *FilterPolicy) SetAccepted(reason gwapiv1a2.PolicyConditionReason, msg ...string)
type FilterPolicyList ¶ added in v0.2.2
type FilterPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FilterPolicy `json:"items"` }
FilterPolicyList contains a list of FilterPolicy
func (*FilterPolicyList) DeepCopy ¶ added in v0.2.2
func (in *FilterPolicyList) DeepCopy() *FilterPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterPolicyList.
func (*FilterPolicyList) DeepCopyInto ¶ added in v0.2.2
func (in *FilterPolicyList) DeepCopyInto(out *FilterPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FilterPolicyList) DeepCopyObject ¶ added in v0.2.2
func (in *FilterPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FilterPolicySpec ¶ added in v0.2.2
type FilterPolicySpec struct { // TargetRef is the name of the resource this policy is being attached to. // This Policy and the TargetRef MUST be in the same namespace. // FilterPolicy in embedded mode can have no targetRef. // // +optional TargetRef *gwapiv1a2.PolicyTargetReferenceWithSectionName `json:"targetRef"` // Filters is a map of filter names to filter configurations. Filters map[string]Plugin `json:"filters,omitempty"` // SubPolicies is an array of sub-policies to specific section name. // If the specific section name is not found, the FilterPolicy will still be // treated as accepted. // If the SectionName field in TargetRef is given, the SubPolicies won't take effect. // // +listType=map // +listMapKey=sectionName SubPolicies []FilterSubPolicy `json:"subPolicies,omitempty"` }
FilterPolicySpec defines the desired state of FilterPolicy
func (*FilterPolicySpec) DeepCopy ¶ added in v0.2.2
func (in *FilterPolicySpec) DeepCopy() *FilterPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterPolicySpec.
func (*FilterPolicySpec) DeepCopyInto ¶ added in v0.2.2
func (in *FilterPolicySpec) DeepCopyInto(out *FilterPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterPolicyStatus ¶ added in v0.2.2
type FilterPolicyStatus struct { // Conditions describe the current conditions. // // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` ChangeDetector `json:",inline"` }
FilterPolicyStatus defines the observed state of FilterPolicy
func (*FilterPolicyStatus) DeepCopy ¶ added in v0.2.2
func (in *FilterPolicyStatus) DeepCopy() *FilterPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterPolicyStatus.
func (*FilterPolicyStatus) DeepCopyInto ¶ added in v0.2.2
func (in *FilterPolicyStatus) DeepCopyInto(out *FilterPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FilterSubPolicy ¶ added in v0.2.2
type FilterSubPolicy struct { // SectionName is the name of a section within the target resource. SectionName gwapiv1.SectionName `json:"sectionName"` // Filters is a map of filter names to filter configurations. Filters map[string]Plugin `json:"filters,omitempty"` }
FilterSubPolicy defines the sub-policy
func (*FilterSubPolicy) DeepCopy ¶ added in v0.2.2
func (in *FilterSubPolicy) DeepCopy() *FilterSubPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterSubPolicy.
func (*FilterSubPolicy) DeepCopyInto ¶ added in v0.2.2
func (in *FilterSubPolicy) DeepCopyInto(out *FilterSubPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPFilterPolicy ¶
type HTTPFilterPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HTTPFilterPolicySpec `json:"spec,omitempty"` Status HTTPFilterPolicyStatus `json:"status,omitempty"` }
HTTPFilterPolicy is the Schema for the httpfilterpolicies API. It is deprecated and should use FilterPolicy instead.
func ConvertFilterPolicyToHTTPFilterPolicy ¶ added in v0.2.2
func ConvertFilterPolicyToHTTPFilterPolicy(p *FilterPolicy) HTTPFilterPolicy
func (*HTTPFilterPolicy) DeepCopy ¶
func (in *HTTPFilterPolicy) DeepCopy() *HTTPFilterPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFilterPolicy.
func (*HTTPFilterPolicy) DeepCopyInto ¶
func (in *HTTPFilterPolicy) DeepCopyInto(out *HTTPFilterPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPFilterPolicy) DeepCopyObject ¶
func (in *HTTPFilterPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HTTPFilterPolicyList ¶
type HTTPFilterPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HTTPFilterPolicy `json:"items"` }
HTTPFilterPolicyList contains a list of HTTPFilterPolicy
func (*HTTPFilterPolicyList) DeepCopy ¶
func (in *HTTPFilterPolicyList) DeepCopy() *HTTPFilterPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFilterPolicyList.
func (*HTTPFilterPolicyList) DeepCopyInto ¶
func (in *HTTPFilterPolicyList) DeepCopyInto(out *HTTPFilterPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPFilterPolicyList) DeepCopyObject ¶
func (in *HTTPFilterPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HTTPFilterPolicySpec ¶
type HTTPFilterPolicySpec struct { // TargetRef is the name of the resource this policy is being attached to. // This Policy and the TargetRef MUST be in the same namespace. // HTTPFilterPolicy in embedded mode can have no targetRef. // // +optional TargetRef *gwapiv1a2.PolicyTargetReferenceWithSectionName `json:"targetRef"` // Filters is a map of filter names to filter configurations. Filters map[string]Plugin `json:"filters,omitempty"` // SubPolicies is an array of sub-policies to specific section name. // If the specific section name is not found, the HTTPFilterPolicy will still be // treated as accepted. // If the SectionName field in TargetRef is given, the SubPolicies won't take effect. // // +listType=map // +listMapKey=sectionName SubPolicies []HTTPFilterSubPolicy `json:"subPolicies,omitempty"` }
HTTPFilterPolicySpec defines the desired state of HTTPFilterPolicy
func (*HTTPFilterPolicySpec) DeepCopy ¶
func (in *HTTPFilterPolicySpec) DeepCopy() *HTTPFilterPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFilterPolicySpec.
func (*HTTPFilterPolicySpec) DeepCopyInto ¶
func (in *HTTPFilterPolicySpec) DeepCopyInto(out *HTTPFilterPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPFilterPolicyStatus ¶
type HTTPFilterPolicyStatus struct { // Conditions describe the current conditions. // // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` }
HTTPFilterPolicyStatus defines the observed state of HTTPFilterPolicy
func (*HTTPFilterPolicyStatus) DeepCopy ¶
func (in *HTTPFilterPolicyStatus) DeepCopy() *HTTPFilterPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFilterPolicyStatus.
func (*HTTPFilterPolicyStatus) DeepCopyInto ¶
func (in *HTTPFilterPolicyStatus) DeepCopyInto(out *HTTPFilterPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPFilterSubPolicy ¶ added in v0.2.2
type HTTPFilterSubPolicy struct { // SectionName is the name of a section within the target resource. SectionName gwapiv1.SectionName `json:"sectionName"` // Filters is a map of filter names to filter configurations. Filters map[string]Plugin `json:"filters,omitempty"` }
HTTPFilterSubPolicy defines the sub-policy
func (*HTTPFilterSubPolicy) DeepCopy ¶ added in v0.2.2
func (in *HTTPFilterSubPolicy) DeepCopy() *HTTPFilterSubPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFilterSubPolicy.
func (*HTTPFilterSubPolicy) DeepCopyInto ¶ added in v0.2.2
func (in *HTTPFilterSubPolicy) DeepCopyInto(out *HTTPFilterSubPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Plugin ¶ added in v0.2.2
type Plugin struct {
Config runtime.RawExtension `json:"config"`
}
Plugin defines the plugin configuration
func (*Plugin) DeepCopy ¶ added in v0.2.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plugin.
func (*Plugin) DeepCopyInto ¶ added in v0.2.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceRegistry ¶
type ServiceRegistry struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceRegistrySpec `json:"spec,omitempty"` Status ServiceRegistryStatus `json:"status,omitempty"` }
ServiceRegistry is the Schema for the serviceregistries API
func (*ServiceRegistry) DeepCopy ¶
func (in *ServiceRegistry) DeepCopy() *ServiceRegistry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRegistry.
func (*ServiceRegistry) DeepCopyInto ¶
func (in *ServiceRegistry) DeepCopyInto(out *ServiceRegistry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceRegistry) DeepCopyObject ¶
func (in *ServiceRegistry) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceRegistry) SetAccepted ¶
func (r *ServiceRegistry) SetAccepted(reason ConditionReason, msg ...string)
type ServiceRegistryList ¶
type ServiceRegistryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServiceRegistry `json:"items"` }
ServiceRegistryList contains a list of ServiceRegistry
func (*ServiceRegistryList) DeepCopy ¶
func (in *ServiceRegistryList) DeepCopy() *ServiceRegistryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRegistryList.
func (*ServiceRegistryList) DeepCopyInto ¶
func (in *ServiceRegistryList) DeepCopyInto(out *ServiceRegistryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceRegistryList) DeepCopyObject ¶
func (in *ServiceRegistryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceRegistrySpec ¶
type ServiceRegistrySpec struct { // Type is the type of the service registry. Type string `json:"type,omitempty"` // Config is the configuration of the corresponding service registry. Config runtime.RawExtension `json:"config,omitempty"` }
ServiceRegistrySpec defines the desired state of ServiceRegistry
func (*ServiceRegistrySpec) DeepCopy ¶
func (in *ServiceRegistrySpec) DeepCopy() *ServiceRegistrySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRegistrySpec.
func (*ServiceRegistrySpec) DeepCopyInto ¶
func (in *ServiceRegistrySpec) DeepCopyInto(out *ServiceRegistrySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceRegistryStatus ¶
type ServiceRegistryStatus struct { // Conditions describe the current conditions. // // +optional // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` ChangeDetector `json:""` }
ServiceRegistryStatus defines the observed state of ServiceRegistry
func (*ServiceRegistryStatus) DeepCopy ¶
func (in *ServiceRegistryStatus) DeepCopy() *ServiceRegistryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRegistryStatus.
func (*ServiceRegistryStatus) DeepCopyInto ¶
func (in *ServiceRegistryStatus) DeepCopyInto(out *ServiceRegistryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.