Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=aci.snat
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: snat.GroupName, Version: "v1"}
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 PodSelector ¶
type PodSelector struct { Labels map[string]string `json:"labels,omitempty"` Namespace string `json:"namespace,omitempty"` }
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
const ( Ready PolicyState = "Ready" Failed PolicyState = "Failed" IpPortsExhausted PolicyState = "IpPortsExhausted" )
type PortRange ¶
type PortRange struct { // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=65535 Start int `json:"start,omitempty"` // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=65535 End int `json:"end,omitempty"` }
+k8s:openapi-gen=true
func (*PortRange) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortRange.
func (*PortRange) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnatPolicy ¶
type SnatPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SnatPolicySpec `json:"spec,omitempty"` Status SnatPolicyStatus `json:"status,omitempty"` }
SnatPolicy is the Schema for the snatpolicies API
func (*SnatPolicy) DeepCopy ¶
func (in *SnatPolicy) DeepCopy() *SnatPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatPolicy.
func (*SnatPolicy) DeepCopyInto ¶
func (in *SnatPolicy) DeepCopyInto(out *SnatPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnatPolicy) DeepCopyObject ¶
func (in *SnatPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnatPolicyList ¶
type SnatPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SnatPolicy `json:"items"` }
SnatPolicyList contains a list of SnatPolicy
func (*SnatPolicyList) DeepCopy ¶
func (in *SnatPolicyList) DeepCopy() *SnatPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatPolicyList.
func (*SnatPolicyList) DeepCopyInto ¶
func (in *SnatPolicyList) DeepCopyInto(out *SnatPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnatPolicyList) DeepCopyObject ¶
func (in *SnatPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnatPolicySpec ¶
type SnatPolicySpec 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 SnatIp []string `json:"snatIp"` DestIp []string `json:"destIp"` Selector PodSelector `json:"selector,omitempty"` PortRange []PortRange `json:"portRange,omitempty"` // +kubebuilder:validation:Enum=tcp,udp,icmp Protocols []string `json:"protocols,omitempty"` }
SnatPolicySpec defines the desired state of SnatPolicy
func (*SnatPolicySpec) DeepCopy ¶
func (in *SnatPolicySpec) DeepCopy() *SnatPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatPolicySpec.
func (*SnatPolicySpec) DeepCopyInto ¶
func (in *SnatPolicySpec) DeepCopyInto(out *SnatPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnatPolicyStatus ¶
type SnatPolicyStatus 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"` }
SnatPolicyStatus defines the observed state of SnatPolicy
func (*SnatPolicyStatus) DeepCopy ¶
func (in *SnatPolicyStatus) DeepCopy() *SnatPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatPolicyStatus.
func (*SnatPolicyStatus) DeepCopyInto ¶
func (in *SnatPolicyStatus) DeepCopyInto(out *SnatPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.