v1alpha1

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Package v1alpha1 contains API Schema definitions for the flomesh.io v1alpha1 API group

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register API objects in the policy.flomesh.io v1alpha1 API group
	SchemeGroupVersion = schema.GroupVersion{
		Group:   "plugin.flomesh.io",
		Version: "v1alpha1",
	}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds all Resources to the Scheme
	AddToScheme = SchemeBuilder.AddToScheme
)

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 ChainPluginSpec

type ChainPluginSpec struct {
	// Name defines the name of chain.
	Name string `json:"name"`

	// Plugins defines the plugins within chain.
	Plugins []string `json:"plugins"`
}

ChainPluginSpec is the type used to represent plugins within chain.

func (*ChainPluginSpec) DeepCopy

func (in *ChainPluginSpec) DeepCopy() *ChainPluginSpec

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

func (*ChainPluginSpec) DeepCopyInto

func (in *ChainPluginSpec) DeepCopyInto(out *ChainPluginSpec)

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

type ChainSelectorSpec

type ChainSelectorSpec struct {
	// PodSelector for pods. Existing pods are selected by this will be the ones affected by this plugin chain.
	// +optional
	PodSelector *metav1.LabelSelector `json:"podSelector"`

	// NamespaceSelector for namespaces. Existing pods are selected by this will be the ones affected by this plugin chain.
	// +optional
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector"`
}

ChainSelectorSpec is the type used to represent plugins for plugin chain.

func (*ChainSelectorSpec) DeepCopy

func (in *ChainSelectorSpec) DeepCopy() *ChainSelectorSpec

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

func (*ChainSelectorSpec) DeepCopyInto

func (in *ChainSelectorSpec) DeepCopyInto(out *ChainSelectorSpec)

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

type Plugin

type Plugin struct {
	// Object's type metadata
	metav1.TypeMeta `json:",inline"`

	// Object's metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the PlugIn specification
	// +optional
	Spec PluginSpec `json:"spec,omitempty"`

	// Status is the status of the Plugin configuration.
	// +optional
	Status PluginStatus `json:"status,omitempty"`
}

Plugin is the type used to represent a Plugin policy. +genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:metadata:labels=app.kubernetes.io/name=flomesh.io +kubebuilder:resource:shortName=pi,scope=Cluster

func (*Plugin) DeepCopy

func (in *Plugin) DeepCopy() *Plugin

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

func (*Plugin) DeepCopyInto

func (in *Plugin) DeepCopyInto(out *Plugin)

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

func (*Plugin) DeepCopyObject

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

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

type PluginChain

type PluginChain struct {
	// Object's type metadata
	metav1.TypeMeta `json:",inline"`

	// Object's metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the PluginChain specification
	// +optional
	Spec PluginChainSpec `json:"spec,omitempty"`

	// Status is the status of the PluginChain configuration.
	// +optional
	Status PluginChainStatus `json:"status,omitempty"`
}

PluginChain is the type used to represent a PluginChain. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:metadata:labels=app.kubernetes.io/name=flomesh.io +kubebuilder:resource:shortName=pichn,scope=Namespaced

func (*PluginChain) DeepCopy

func (in *PluginChain) DeepCopy() *PluginChain

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

func (*PluginChain) DeepCopyInto

func (in *PluginChain) DeepCopyInto(out *PluginChain)

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

func (*PluginChain) DeepCopyObject

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

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

type PluginChainList

type PluginChainList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []PluginChain `json:"items"`
}

PluginChainList defines the list of PluginChain objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PluginChainList) DeepCopy

func (in *PluginChainList) DeepCopy() *PluginChainList

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

func (*PluginChainList) DeepCopyInto

func (in *PluginChainList) DeepCopyInto(out *PluginChainList)

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

func (*PluginChainList) DeepCopyObject

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

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

type PluginChainSpec

type PluginChainSpec struct {
	// Chains defines the plugins within chains
	Chains []ChainPluginSpec `json:"chains"`

	// Selectors defines the selectors of chains.
	Selectors ChainSelectorSpec `json:"selectors"`
}

PluginChainSpec is the type used to represent the PluginChain specification.

func (*PluginChainSpec) DeepCopy

func (in *PluginChainSpec) DeepCopy() *PluginChainSpec

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

func (*PluginChainSpec) DeepCopyInto

func (in *PluginChainSpec) DeepCopyInto(out *PluginChainSpec)

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

type PluginChainStatus

type PluginChainStatus struct {
	// CurrentStatus defines the current status of a PluginChain resource.
	// +optional
	CurrentStatus string `json:"currentStatus,omitempty"`

	// Reason defines the reason for the current status of a PluginChain resource.
	// +optional
	Reason string `json:"reason,omitempty"`
}

PluginChainStatus is the type used to represent the status of a PluginChain resource.

func (*PluginChainStatus) DeepCopy

func (in *PluginChainStatus) DeepCopy() *PluginChainStatus

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

func (*PluginChainStatus) DeepCopyInto

func (in *PluginChainStatus) DeepCopyInto(out *PluginChainStatus)

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

type PluginConfig

type PluginConfig struct {
	// Object's type metadata
	metav1.TypeMeta `json:",inline"`

	// Object's metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the PlugIn specification
	// +optional
	Spec PluginConfigSpec `json:"spec,omitempty"`

	// Status is the status of the plugin config configuration.
	// +optional
	Status PluginConfigStatus `json:"status,omitempty"`
}

PluginConfig is the type used to represent a plugin config policy. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:metadata:labels=app.kubernetes.io/name=flomesh.io +kubebuilder:resource:shortName=picfg,scope=Namespaced

func (*PluginConfig) DeepCopy

func (in *PluginConfig) DeepCopy() *PluginConfig

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

func (*PluginConfig) DeepCopyInto

func (in *PluginConfig) DeepCopyInto(out *PluginConfig)

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

func (*PluginConfig) DeepCopyObject

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

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

type PluginConfigList

type PluginConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []PluginConfig `json:"items"`
}

PluginConfigList defines the list of PluginConfig objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PluginConfigList) DeepCopy

func (in *PluginConfigList) DeepCopy() *PluginConfigList

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

func (*PluginConfigList) DeepCopyInto

func (in *PluginConfigList) DeepCopyInto(out *PluginConfigList)

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

func (*PluginConfigList) DeepCopyObject

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

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

type PluginConfigSpec

type PluginConfigSpec struct {
	// Plugin is the name of plugin.
	Plugin string `json:"plugin"`

	// DestinationRefs is the destination references of plugin.
	DestinationRefs []corev1.ObjectReference `json:"destinationRefs"`

	// Config is the config of plugin.
	Config runtime.RawExtension `json:"config"`
}

PluginConfigSpec is the type used to represent the plugin config specification.

func (*PluginConfigSpec) DeepCopy

func (in *PluginConfigSpec) DeepCopy() *PluginConfigSpec

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

func (*PluginConfigSpec) DeepCopyInto

func (in *PluginConfigSpec) DeepCopyInto(out *PluginConfigSpec)

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

type PluginConfigStatus

type PluginConfigStatus struct {
	// CurrentStatus defines the current status of a PluginConfig resource.
	// +optional
	CurrentStatus string `json:"currentStatus,omitempty"`

	// Reason defines the reason for the current status of a PluginConfig resource.
	// +optional
	Reason string `json:"reason,omitempty"`
}

PluginConfigStatus is the type used to represent the status of a PluginConfig resource.

func (*PluginConfigStatus) DeepCopy

func (in *PluginConfigStatus) DeepCopy() *PluginConfigStatus

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

func (*PluginConfigStatus) DeepCopyInto

func (in *PluginConfigStatus) DeepCopyInto(out *PluginConfigStatus)

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

type PluginList

type PluginList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Plugin `json:"items"`
}

PluginList defines the list of Plugin objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PluginList) DeepCopy

func (in *PluginList) DeepCopy() *PluginList

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

func (*PluginList) DeepCopyInto

func (in *PluginList) DeepCopyInto(out *PluginList)

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

func (*PluginList) DeepCopyObject

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

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

type PluginSpec

type PluginSpec struct {
	// priority defines the priority of the plugin.
	Priority *float32 `json:"priority,omitempty"`

	// Script defines the Script of the plugin.
	Script string `json:"pipyscript"`
}

PluginSpec is the type used to represent the Plugin policy specification.

func (*PluginSpec) DeepCopy

func (in *PluginSpec) DeepCopy() *PluginSpec

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

func (*PluginSpec) DeepCopyInto

func (in *PluginSpec) DeepCopyInto(out *PluginSpec)

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

type PluginStatus

type PluginStatus struct {
	// CurrentStatus defines the current status of a Plugin resource.
	// +optional
	CurrentStatus string `json:"currentStatus,omitempty"`

	// Reason defines the reason for the current status of a Plugin resource.
	// +optional
	Reason string `json:"reason,omitempty"`
}

PluginStatus is the type used to represent the status of a Plugin resource.

func (*PluginStatus) DeepCopy

func (in *PluginStatus) DeepCopy() *PluginStatus

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

func (*PluginStatus) DeepCopyInto

func (in *PluginStatus) DeepCopyInto(out *PluginStatus)

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

Jump to

Keyboard shortcuts

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