v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=mosn.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "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
)

Functions

func RegisterVirtualServiceWebhook

func RegisterVirtualServiceWebhook(mgr ctrl.Manager)

func ValidateConsumer

func ValidateConsumer(c *Consumer) error

func ValidateGateway

func ValidateGateway(gw *istiov1b1.Gateway) error

func ValidateHTTPFilterPolicy

func ValidateHTTPFilterPolicy(policy *HTTPFilterPolicy) error

func ValidateServiceRegistry

func ValidateServiceRegistry(sr *ServiceRegistry) error

func ValidateVirtualService

func ValidateVirtualService(vs *istiov1b1.VirtualService) error

Types

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

func (in *Consumer) DeepCopy() *Consumer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Consumer.

func (*Consumer) DeepCopyInto

func (in *Consumer) DeepCopyInto(out *Consumer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Consumer) DeepCopyObject

func (in *Consumer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Consumer) Default

func (r *Consumer) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Consumer) IsSpecChanged

func (c *Consumer) IsSpecChanged() bool

func (*Consumer) IsValid

func (c *Consumer) IsValid() bool

func (*Consumer) Marshal

func (c *Consumer) Marshal() string

func (*Consumer) SetAccepted

func (consumer *Consumer) SetAccepted(reason ConditionReason, msg ...string)

func (*Consumer) SetupWebhookWithManager

func (r *Consumer) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*Consumer) ValidateCreate

func (r *Consumer) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Consumer) ValidateDelete

func (r *Consumer) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Consumer) ValidateUpdate

func (r *Consumer) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

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]HTTPPlugin `json:"filters,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"`
	// contains filtered or unexported fields
}

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.

func (*ConsumerStatus) IsChanged

func (s *ConsumerStatus) IsChanged() bool

func (*ConsumerStatus) Reset

func (s *ConsumerStatus) Reset()

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

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.

func (*HTTPFilterPolicy) Default

func (r *HTTPFilterPolicy) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*HTTPFilterPolicy) IsSpecChanged

func (p *HTTPFilterPolicy) IsSpecChanged() bool

func (*HTTPFilterPolicy) IsValid

func (p *HTTPFilterPolicy) IsValid() bool

func (*HTTPFilterPolicy) SetAccepted

func (p *HTTPFilterPolicy) SetAccepted(reason gwapiv1a2.PolicyConditionReason, msg ...string)

func (*HTTPFilterPolicy) SetupWebhookWithManager

func (r *HTTPFilterPolicy) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*HTTPFilterPolicy) ValidateCreate

func (r *HTTPFilterPolicy) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*HTTPFilterPolicy) ValidateDelete

func (r *HTTPFilterPolicy) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*HTTPFilterPolicy) ValidateUpdate

func (r *HTTPFilterPolicy) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

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

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.
	TargetRef gwapiv1a2.PolicyTargetReferenceWithSectionName `json:"targetRef"`

	// Filters is a map of filter names to filter configurations.
	Filters map[string]HTTPPlugin `json:"filters,omitempty"`
}

HTTPFilterPolicySpec defines the desired state of HTTPFilterPolicy

func (*HTTPFilterPolicySpec) DeepCopy

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"`
	// contains filtered or unexported fields
}

HTTPFilterPolicyStatus defines the observed state of HTTPFilterPolicy

func (*HTTPFilterPolicyStatus) DeepCopy

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.

func (*HTTPFilterPolicyStatus) IsChanged

func (s *HTTPFilterPolicyStatus) IsChanged() bool

func (*HTTPFilterPolicyStatus) Reset

func (s *HTTPFilterPolicyStatus) Reset()

type HTTPPlugin

type HTTPPlugin struct {
	Config runtime.RawExtension `json:"config"`
}

HTTPPlugin defines the plugin configuration used in the HTTP layer

func (*HTTPPlugin) DeepCopy

func (in *HTTPPlugin) DeepCopy() *HTTPPlugin

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPPlugin.

func (*HTTPPlugin) DeepCopyInto

func (in *HTTPPlugin) DeepCopyInto(out *HTTPPlugin)

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) Default

func (r *ServiceRegistry) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ServiceRegistry) SetAccepted

func (r *ServiceRegistry) SetAccepted(reason ConditionReason, msg ...string)

func (*ServiceRegistry) SetupWebhookWithManager

func (r *ServiceRegistry) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*ServiceRegistry) ValidateCreate

func (r *ServiceRegistry) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ServiceRegistry) ValidateDelete

func (r *ServiceRegistry) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ServiceRegistry) ValidateUpdate

func (r *ServiceRegistry) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

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"`
}

ServiceRegistryStatus defines the observed state of ServiceRegistry

func (*ServiceRegistryStatus) DeepCopy

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.

type VirtualServiceWebhook

type VirtualServiceWebhook struct {
	*istiov1b1.VirtualService
}

func (*VirtualServiceWebhook) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServiceWebhook.

func (*VirtualServiceWebhook) DeepCopyInto

func (in *VirtualServiceWebhook) DeepCopyInto(out *VirtualServiceWebhook)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualServiceWebhook) DeepCopyObject

func (r *VirtualServiceWebhook) DeepCopyObject() runtime.Object

func (*VirtualServiceWebhook) Default

func (r *VirtualServiceWebhook) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*VirtualServiceWebhook) SetupWebhookWithManager

func (r *VirtualServiceWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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