v1alpha1

package
v0.0.0-...-840f362 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the intent v1alpha1 API group +kubebuilder:object:generate=true +groupName=intent.security.nimbus.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "intent.security.nimbus.com", Version: "v1alpha1"}

	// 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 Intent

type Intent struct {
	// ID is predefined in adapter ID pool.
	// Used by security engines to generate corresponding security policies.
	//+kubebuilder:validation:Pattern:="^[a-zA-Z0-9]*$"
	ID string `json:"id"`

	// Action defines how the intent will be enforced.
	// Valid actions are "Audit" and "Enforce".
	Action string `json:"action"`

	// Tags are additional metadata for categorization and grouping of intents.
	// Facilitates searching, filtering, and management of security policies.
	Tags []string `json:"tags,omitempty"`

	// Params are key-value pairs that allows fine-tuning of intents to specific
	// requirements.
	Params map[string][]string `json:"params,omitempty"`
}

Intent defines the high-level desired intent.

func (*Intent) DeepCopy

func (in *Intent) DeepCopy() *Intent

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

func (*Intent) DeepCopyInto

func (in *Intent) DeepCopyInto(out *Intent)

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

type MatchIntent

type MatchIntent struct {
	Name string `json:"name"`
}

MatchIntent represents an intent definition.

func (*MatchIntent) DeepCopy

func (in *MatchIntent) DeepCopy() *MatchIntent

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

func (*MatchIntent) DeepCopyInto

func (in *MatchIntent) DeepCopyInto(out *MatchIntent)

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

type NimbusPolicy

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

	Spec   NimbusPolicySpec   `json:"spec,omitempty"`
	Status NimbusPolicyStatus `json:"status,omitempty"`
}

NimbusPolicy is the Schema for the nimbuspolicies API

func (*NimbusPolicy) DeepCopy

func (in *NimbusPolicy) DeepCopy() *NimbusPolicy

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

func (*NimbusPolicy) DeepCopyInto

func (in *NimbusPolicy) DeepCopyInto(out *NimbusPolicy)

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

func (*NimbusPolicy) DeepCopyObject

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

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

type NimbusPolicyList

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

NimbusPolicyList contains a list of NimbusPolicy

func (*NimbusPolicyList) DeepCopy

func (in *NimbusPolicyList) DeepCopy() *NimbusPolicyList

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

func (*NimbusPolicyList) DeepCopyInto

func (in *NimbusPolicyList) DeepCopyInto(out *NimbusPolicyList)

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

func (*NimbusPolicyList) DeepCopyObject

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

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

type NimbusPolicySpec

type NimbusPolicySpec struct {
	// NimbusRules is a list of rules that define the policy.
	NimbusRules []Rule `json:"rules"`

	// Selector specifies the workload resources that the policy applies to.
	Selector WorkloadSelector `json:"selector"`
}

NimbusPolicySpec defines the desired state of NimbusPolicy

func (*NimbusPolicySpec) DeepCopy

func (in *NimbusPolicySpec) DeepCopy() *NimbusPolicySpec

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

func (*NimbusPolicySpec) DeepCopyInto

func (in *NimbusPolicySpec) DeepCopyInto(out *NimbusPolicySpec)

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

type NimbusPolicyStatus

type NimbusPolicyStatus struct {
	Status                string   `json:"status"`
	GeneratedPoliciesName []string `json:"policiesName,omitempty"`
	CountOfPolicies       int32    `json:"policies,omitempty"`
}

NimbusPolicyStatus defines the observed state of NimbusPolicy

func (*NimbusPolicyStatus) DeepCopy

func (in *NimbusPolicyStatus) DeepCopy() *NimbusPolicyStatus

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

func (*NimbusPolicyStatus) DeepCopyInto

func (in *NimbusPolicyStatus) DeepCopyInto(out *NimbusPolicyStatus)

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

type Rule

type Rule struct {
	// ID is a unique identifier for the rule, used by security engine adapters.
	ID string `json:"id"`

	// RuleAction specifies the action to be taken when the rule matches.
	RuleAction string `json:"action"`

	// Params is an optional map of parameters associated with the rule.
	Params map[string][]string `json:"params,omitempty"`
}

Rule defines a single rule within a NimbusPolicySpec

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

type SecurityIntent

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

	Spec   SecurityIntentSpec   `json:"spec,omitempty"`
	Status SecurityIntentStatus `json:"status,omitempty"`
}

SecurityIntent is the Schema for the securityintents API

func (*SecurityIntent) DeepCopy

func (in *SecurityIntent) DeepCopy() *SecurityIntent

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

func (*SecurityIntent) DeepCopyInto

func (in *SecurityIntent) DeepCopyInto(out *SecurityIntent)

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

func (*SecurityIntent) DeepCopyObject

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

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

type SecurityIntentBinding

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

	Spec   SecurityIntentBindingSpec   `json:"spec,omitempty"`
	Status SecurityIntentBindingStatus `json:"status,omitempty"`
}

SecurityIntentBinding is the Schema for the securityintentbindings API

func (*SecurityIntentBinding) DeepCopy

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

func (*SecurityIntentBinding) DeepCopyInto

func (in *SecurityIntentBinding) DeepCopyInto(out *SecurityIntentBinding)

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

func (*SecurityIntentBinding) DeepCopyObject

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

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

type SecurityIntentBindingList

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

SecurityIntentBindingList contains a list of SecurityIntentBinding

func (*SecurityIntentBindingList) DeepCopy

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

func (*SecurityIntentBindingList) DeepCopyInto

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

func (*SecurityIntentBindingList) DeepCopyObject

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

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

type SecurityIntentBindingSpec

type SecurityIntentBindingSpec struct {
	Intents  []MatchIntent    `json:"intents"`
	Selector WorkloadSelector `json:"selector"`
}

SecurityIntentBindingSpec defines the desired state of SecurityIntentBinding

func (*SecurityIntentBindingSpec) DeepCopy

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

func (*SecurityIntentBindingSpec) DeepCopyInto

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

type SecurityIntentBindingStatus

type SecurityIntentBindingStatus struct {
	Status              string   `json:"status"`
	BoundIntents        []string `json:"boundIntents,omitempty"`
	CountOfBoundIntents int32    `json:"countOfBoundIntents"`
	NimbusPolicy        string   `json:"nimbusPolicy"`
}

SecurityIntentBindingStatus defines the observed state of SecurityIntentBinding

func (*SecurityIntentBindingStatus) DeepCopy

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

func (*SecurityIntentBindingStatus) DeepCopyInto

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

type SecurityIntentList

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

SecurityIntentList contains a list of SecurityIntent

func (*SecurityIntentList) DeepCopy

func (in *SecurityIntentList) DeepCopy() *SecurityIntentList

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

func (*SecurityIntentList) DeepCopyInto

func (in *SecurityIntentList) DeepCopyInto(out *SecurityIntentList)

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

func (*SecurityIntentList) DeepCopyObject

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

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

type SecurityIntentSpec

type SecurityIntentSpec struct {
	Intent Intent `json:"intent"`
}

SecurityIntentSpec defines the desired state of SecurityIntent

func (*SecurityIntentSpec) DeepCopy

func (in *SecurityIntentSpec) DeepCopy() *SecurityIntentSpec

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

func (*SecurityIntentSpec) DeepCopyInto

func (in *SecurityIntentSpec) DeepCopyInto(out *SecurityIntentSpec)

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

type SecurityIntentStatus

type SecurityIntentStatus struct {
	Action string `json:"action"`
	Status string `json:"status"`
}

SecurityIntentStatus defines the observed state of SecurityIntent

func (*SecurityIntentStatus) DeepCopy

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

func (*SecurityIntentStatus) DeepCopyInto

func (in *SecurityIntentStatus) DeepCopyInto(out *SecurityIntentStatus)

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

type WorkloadSelector

type WorkloadSelector struct {
	MatchLabels map[string]string `json:"matchLabels"`
}

WorkloadSelector defines a selector for workloads based on labels.

func (*WorkloadSelector) DeepCopy

func (in *WorkloadSelector) DeepCopy() *WorkloadSelector

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

func (*WorkloadSelector) DeepCopyInto

func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector)

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