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 GlobalInfo ¶
type GlobalInfo struct { MacAddress string `json:"macAddress"` PortRanges []PortRange `json:"portRanges"` SnatIp string `json:"snatIp"` SnatIpUid string `json:"snatIpUid"` SnatPolicyName string `json:"snatPolicyName"` }
func (*GlobalInfo) DeepCopy ¶
func (in *GlobalInfo) DeepCopy() *GlobalInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalInfo.
func (*GlobalInfo) DeepCopyInto ¶
func (in *GlobalInfo) DeepCopyInto(out *GlobalInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GlobalInfoList ¶
type GlobalInfoList []GlobalInfo
func (GlobalInfoList) DeepCopy ¶
func (in GlobalInfoList) DeepCopy() GlobalInfoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalInfoList.
func (GlobalInfoList) DeepCopyInto ¶
func (in GlobalInfoList) DeepCopyInto(out *GlobalInfoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 SnatGlobalInfo ¶
type SnatGlobalInfo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SnatGlobalInfoSpec `json:"spec,omitempty"` Status SnatGlobalInfoStatus `json:"status,omitempty"` }
SnatGlobalInfo is the Schema for the snatglobalinfos API +genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SnatGlobalInfo) DeepCopy ¶
func (in *SnatGlobalInfo) DeepCopy() *SnatGlobalInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatGlobalInfo.
func (*SnatGlobalInfo) DeepCopyInto ¶
func (in *SnatGlobalInfo) DeepCopyInto(out *SnatGlobalInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnatGlobalInfo) DeepCopyObject ¶
func (in *SnatGlobalInfo) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnatGlobalInfoList ¶
type SnatGlobalInfoList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SnatGlobalInfo `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object SnatGlobalInfoList contains a list of SnatGlobalInfo
func (*SnatGlobalInfoList) DeepCopy ¶
func (in *SnatGlobalInfoList) DeepCopy() *SnatGlobalInfoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatGlobalInfoList.
func (*SnatGlobalInfoList) DeepCopyInto ¶
func (in *SnatGlobalInfoList) DeepCopyInto(out *SnatGlobalInfoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnatGlobalInfoList) DeepCopyObject ¶
func (in *SnatGlobalInfoList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnatGlobalInfoSpec ¶
type SnatGlobalInfoSpec 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 // +kubebuilder:validation:Enum=selector, node GlobalInfos map[string]GlobalInfoList `json:"globalInfos"` }
func (*SnatGlobalInfoSpec) DeepCopy ¶
func (in *SnatGlobalInfoSpec) DeepCopy() *SnatGlobalInfoSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatGlobalInfoSpec.
func (*SnatGlobalInfoSpec) DeepCopyInto ¶
func (in *SnatGlobalInfoSpec) DeepCopyInto(out *SnatGlobalInfoSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnatGlobalInfoStatus ¶
type SnatGlobalInfoStatus struct { }
SnatGlobalInfoStatus defines the observed state of SnatGlobalInfo +k8s:openapi-gen=true
func (*SnatGlobalInfoStatus) DeepCopy ¶
func (in *SnatGlobalInfoStatus) DeepCopy() *SnatGlobalInfoStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatGlobalInfoStatus.
func (*SnatGlobalInfoStatus) DeepCopyInto ¶
func (in *SnatGlobalInfoStatus) DeepCopyInto(out *SnatGlobalInfoStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.