v1

package
v0.0.0-...-6771aaf Latest Latest
Warning

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

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

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=aci.snat

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: 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 LocalInfo

type LocalInfo struct {
	PodName      string       `json:"podName"`
	PodNamespace string       `json:"podNamespace"`
	PodUid       string       `json:"podUid"`
	SnatPolicies []SnatPolicy `json:"snatPolicies"`
}

func (*LocalInfo) DeepCopy

func (in *LocalInfo) DeepCopy() *LocalInfo

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

func (*LocalInfo) DeepCopyInto

func (in *LocalInfo) DeepCopyInto(out *LocalInfo)

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

type SnatLocalInfo

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

	Spec SnatLocalInfoSpec `json:"spec,omitempty"`
}

+genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SnatLocalInfo) DeepCopy

func (in *SnatLocalInfo) DeepCopy() *SnatLocalInfo

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

func (*SnatLocalInfo) DeepCopyInto

func (in *SnatLocalInfo) DeepCopyInto(out *SnatLocalInfo)

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

func (*SnatLocalInfo) DeepCopyObject

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

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

type SnatLocalInfoList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object snatLocalinfon list

func (*SnatLocalInfoList) DeepCopy

func (in *SnatLocalInfoList) DeepCopy() *SnatLocalInfoList

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

func (*SnatLocalInfoList) DeepCopyInto

func (in *SnatLocalInfoList) DeepCopyInto(out *SnatLocalInfoList)

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

func (*SnatLocalInfoList) DeepCopyObject

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

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

type SnatLocalInfoSpec

type SnatLocalInfoSpec 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
	LocalInfos []LocalInfo `json:"localInfos"`
}

SnatLocalInfoSpec defines the desired state of SnatLocalInfo

func (*SnatLocalInfoSpec) DeepCopy

func (in *SnatLocalInfoSpec) DeepCopy() *SnatLocalInfoSpec

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

func (*SnatLocalInfoSpec) DeepCopyInto

func (in *SnatLocalInfoSpec) DeepCopyInto(out *SnatLocalInfoSpec)

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

type SnatPolicy

type SnatPolicy struct {
	Name   string   `json:"name"`
	SnatIp string   `json:"snatIp"`
	DestIp []string `json:"destIp"`
}

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.

Jump to

Keyboard shortcuts

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