v1alpha

package
v0.0.0-...-876bd9d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha is the v1alpha version of the API. +groupName=aci.erspan

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder: Register adds one or more objects to the SchemeBuilder so they can be added to a Scheme.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	// AddToScheme adds all registered types.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: erspan.GroupName, Version: "v1alpha"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ErspanDestType

type ErspanDestType struct {
	// The destination IP of the ERSPAN packet.
	DestIP string `json:"destIP"`
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=1023
	// The unique flow ID of the ERSPAN packet.
	// +optional
	// +kubebuilder:default:=1
	FlowID int `json:"flowID,omitempty"`
}

/ErspanDestType contains all the attrbutes of erspan destination.

func (*ErspanDestType) DeepCopy

func (in *ErspanDestType) DeepCopy() *ErspanDestType

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

func (*ErspanDestType) DeepCopyInto

func (in *ErspanDestType) DeepCopyInto(out *ErspanDestType)

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

type ErspanPolicy

type ErspanPolicy struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Specification of the desired behavior of the ERSPAN Object.
	Spec ErspanPolicySpec `json:"spec,omitempty"`
	// Most recently observed status of the ERSPAN Object.
	// This data may not be up to date.
	// Populated by the system. Read-only.
	Status ErspanPolicyStatus `json:"status,omitempty"`
}

ErspanPolicy is the Schema for the erspanpolicies API

func (*ErspanPolicy) DeepCopy

func (in *ErspanPolicy) DeepCopy() *ErspanPolicy

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

func (*ErspanPolicy) DeepCopyInto

func (in *ErspanPolicy) DeepCopyInto(out *ErspanPolicy)

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

func (*ErspanPolicy) DeepCopyObject

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

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

type ErspanPolicyList

type ErspanPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ErspanPolicy `json:"items"`
}

ErspanPolicyList contains a list of ErspanPolicy

func (*ErspanPolicyList) DeepCopy

func (in *ErspanPolicyList) DeepCopy() *ErspanPolicyList

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

func (*ErspanPolicyList) DeepCopyInto

func (in *ErspanPolicyList) DeepCopyInto(out *ErspanPolicyList)

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

func (*ErspanPolicyList) DeepCopyObject

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

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

type ErspanPolicySpec

type ErspanPolicySpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Selector PodSelector      `json:"selector,omitempty"`
	Source   ErspanSourceType `json:"source,omitempty"`
	Dest     ErspanDestType   `json:"destination,omitempty"`
}

ErspanPolicySpec defines the desired state of ErspanPolicy

func (*ErspanPolicySpec) DeepCopy

func (in *ErspanPolicySpec) DeepCopy() *ErspanPolicySpec

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

func (*ErspanPolicySpec) DeepCopyInto

func (in *ErspanPolicySpec) DeepCopyInto(out *ErspanPolicySpec)

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

type ErspanPolicyStatus

type ErspanPolicyStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file7
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	State PolicyState `json:"state"`
}

ErspanPolicyStatus defines the observed state of ErspanPolicy

func (*ErspanPolicyStatus) DeepCopy

func (in *ErspanPolicyStatus) DeepCopy() *ErspanPolicyStatus

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

func (*ErspanPolicyStatus) DeepCopyInto

func (in *ErspanPolicyStatus) DeepCopyInto(out *ErspanPolicyStatus)

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

type ErspanSourceType

type ErspanSourceType struct {
	// +kubebuilder:validation:Enum=start,stop
	// Administrative state.
	// +optional
	// +kubebuilder:default:=start
	AdminState string `json:"adminState,omitempty"`
	// +kubebuilder:validation:Enum=in,out,both
	// The direction of the packets to monitor.
	// +optional
	// +kubebuilder:default:=both
	Direction string `json:"direction,omitempty"`
}

ErspanSourceType contains all the attrbutes of erspan source.

func (*ErspanSourceType) DeepCopy

func (in *ErspanSourceType) DeepCopy() *ErspanSourceType

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

func (*ErspanSourceType) DeepCopyInto

func (in *ErspanSourceType) DeepCopyInto(out *ErspanSourceType)

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

type PodSelector

type PodSelector struct {
	Labels    map[string]string `json:"labels,omitempty"`
	Namespace string            `json:"namespace,omitempty"`
}

PodSelector contains namespace and map of lables.

func (*PodSelector) DeepCopy

func (in *PodSelector) DeepCopy() *PodSelector

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

func (*PodSelector) DeepCopyInto

func (in *PodSelector) DeepCopyInto(out *PodSelector)

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

type PolicyState

type PolicyState string

PolicyState defines the current state of ErspanPolicy

const (
	// Ready and Failed are PolicyState constants
	Ready  PolicyState = "Ready"
	Failed PolicyState = "Failed"
)

Jump to

Keyboard shortcuts

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