Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the security v1 API group +kubebuilder:object:generate=true +groupName=security.kubearmor.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "security.kubearmor.com", 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 ¶
This section is empty.
Types ¶
type ConditionType ¶
type ConditionType struct { // +kubebuilder:validation:optional IsSamePID bool `json:"isSamePID,omitempty"` // +kubebuilder:validation:optional Occurrence OccurenceType `json:"occurrence,omitempty"` // +kubebuilder:validation:optional File FileConditionType `json:"file,omitempty"` // +kubebuilder:validation:optional Network NetworkConditionType `json:"network,omitempty"` }
type FileConditionType ¶
type KubeArmorAlertRule ¶
type KubeArmorAlertRule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubeArmorAlertRuleSpec `json:"spec,omitempty"` Status KubeArmorAlertRuleStatus `json:"status,omitempty"` }
KubeArmorAlertRule is the Schema for the kubearmoralertrules API +kubebuilder:resource:scope=Cluster,shortName=ar +genclient
func (*KubeArmorAlertRule) DeepCopy ¶
func (in *KubeArmorAlertRule) DeepCopy() *KubeArmorAlertRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeArmorAlertRule.
func (*KubeArmorAlertRule) DeepCopyInto ¶
func (in *KubeArmorAlertRule) DeepCopyInto(out *KubeArmorAlertRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeArmorAlertRule) DeepCopyObject ¶
func (in *KubeArmorAlertRule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeArmorAlertRuleList ¶
type KubeArmorAlertRuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KubeArmorAlertRule `json:"items"` }
KubeArmorAlertRuleList contains a list of KubeArmorAlertRule
func (*KubeArmorAlertRuleList) DeepCopy ¶
func (in *KubeArmorAlertRuleList) DeepCopy() *KubeArmorAlertRuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeArmorAlertRuleList.
func (*KubeArmorAlertRuleList) DeepCopyInto ¶
func (in *KubeArmorAlertRuleList) DeepCopyInto(out *KubeArmorAlertRuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeArmorAlertRuleList) DeepCopyObject ¶
func (in *KubeArmorAlertRuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeArmorAlertRuleSpec ¶
type KubeArmorAlertRuleSpec struct { // +kubebuilder:validation:optional Selector SelectorType `json:"selector,omitempty"` // +kubebuilder:validation:Enum=File;Network Operation string `json:"operation"` // +kubebuilder:validation:Minimum:=1 // +kubebuilder:validation:Maximum:=10 Severity int `json:"severity"` Message string `json:"message"` // +kubebuilder:validation:optional Condition ConditionType `json:"condition,omitempty"` }
KubeArmorAlertRuleSpec defines the desired state of KubeArmorAlertRule
func (*KubeArmorAlertRuleSpec) DeepCopy ¶
func (in *KubeArmorAlertRuleSpec) DeepCopy() *KubeArmorAlertRuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeArmorAlertRuleSpec.
func (*KubeArmorAlertRuleSpec) DeepCopyInto ¶
func (in *KubeArmorAlertRuleSpec) DeepCopyInto(out *KubeArmorAlertRuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeArmorAlertRuleStatus ¶
type KubeArmorAlertRuleStatus struct { }
KubeArmorAlertRuleStatus defines the observed state of KubeArmorAlertRule
func (*KubeArmorAlertRuleStatus) DeepCopy ¶
func (in *KubeArmorAlertRuleStatus) DeepCopy() *KubeArmorAlertRuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeArmorAlertRuleStatus.
func (*KubeArmorAlertRuleStatus) DeepCopyInto ¶
func (in *KubeArmorAlertRuleStatus) DeepCopyInto(out *KubeArmorAlertRuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkAddressType ¶
type NetworkConditionType ¶
type NetworkConditionType struct { // +kubebuilder:validation:optional // +kubebuilder:validation:Pattern=(icmp|ICMP|tcp|TCP|udp|UDP|raw|RAW)$ Protocol string `json:"protocol,omitempty"` // +kubebuilder:validation:optional SourceAddress NetworkAddressType `json:"sourceAddress,omitempty"` // +kubebuilder:validation:optional DestinationAddress NetworkAddressType `json:"destinationAddress,omitempty"` }