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.netflow

Index

Constants

This section is empty.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: netflow.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 NetflowPolicy

type NetflowPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NetflowPolicySpec   `json:"spec,omitempty"`
	Status NetflowPolicyStatus `json:"status,omitempty"`
}

NetflowPolicy is the Schema for the netflowpolicies API

func (*NetflowPolicy) DeepCopy

func (in *NetflowPolicy) DeepCopy() *NetflowPolicy

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

func (*NetflowPolicy) DeepCopyInto

func (in *NetflowPolicy) DeepCopyInto(out *NetflowPolicy)

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

func (*NetflowPolicy) DeepCopyObject

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

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

type NetflowPolicyList

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

NetflowPolicyList contains a list of NetflowPolicy

func (*NetflowPolicyList) DeepCopy

func (in *NetflowPolicyList) DeepCopy() *NetflowPolicyList

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

func (*NetflowPolicyList) DeepCopyInto

func (in *NetflowPolicyList) DeepCopyInto(out *NetflowPolicyList)

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

func (*NetflowPolicyList) DeepCopyObject

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

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

type NetflowPolicySpec

type NetflowPolicySpec struct {
	FlowSamplingPolicy NetflowType `json:"flowSamplingPolicy,omitempty"`
}

NetflowPolicySpec defines the desired state of NetflowPolicy

func (*NetflowPolicySpec) DeepCopy

func (in *NetflowPolicySpec) DeepCopy() *NetflowPolicySpec

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

func (*NetflowPolicySpec) DeepCopyInto

func (in *NetflowPolicySpec) DeepCopyInto(out *NetflowPolicySpec)

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

type NetflowPolicyStatus

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

NetflowPolicyStatus defines the observed state of NetflowPolicy

func (*NetflowPolicyStatus) DeepCopy

func (in *NetflowPolicyStatus) DeepCopy() *NetflowPolicyStatus

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

func (*NetflowPolicyStatus) DeepCopyInto

func (in *NetflowPolicyStatus) DeepCopyInto(out *NetflowPolicyStatus)

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

type NetflowType

type NetflowType struct {
	// Remote node destination IP address.
	DstAddr string `json:"destIp"`
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:default:=2055
	DstPort int `json:"destPort"`
	// +kubebuilder:validation:Enum=netflow,ipfix
	// +optional
	// +kubebuilder:default:=netflow
	FlowType string `json:"flowType,omitempty"`
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=3600
	// Specifies the timeout for an active flow.
	// +optional
	// +kubebuilder:default:=60
	ActiveFlowTimeOut int `json:"activeFlowTimeOut,omitempty"`
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=600
	// Specifies the timeout for an idle flow.
	// +optional
	// +kubebuilder:default:=15
	IdleFlowTimeOut int `json:"idleFlowTimeOut,omitempty"`
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=1000
	// +optional
	// +kubebuilder:default:=0
	SamplingRate int `json:"samplingRate,omitempty"`
}

NetflowType contains all the attrbutes of Netflow Policy.

func (*NetflowType) DeepCopy

func (in *NetflowType) DeepCopy() *NetflowType

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

func (*NetflowType) DeepCopyInto

func (in *NetflowType) DeepCopyInto(out *NetflowType)

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

type PolicyState

type PolicyState string
const (
	Ready  PolicyState = "Ready"
	Failed PolicyState = "Failed"
)

Jump to

Keyboard shortcuts

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