v1alpha1

package
v0.0.0-...-5a253b8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the liqonetliqoio v1alpha1 API group +kubebuilder:object:generate=true +groupName=net.liqo.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "net.liqo.io", Version: "v1alpha1"}

	GroupResource = schema.GroupResource{Group: GroupVersion.Group, Resource: "tunnelendpoints"}

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

func CreateTunnelEndpointClient

func CreateTunnelEndpointClient(kubeconfig string) (*crdClient.CRDClient, error)

create a client for TunnelEndpoint CR using a provided kubeconfig

func Keyer

func Keyer(obj runtime.Object) (string, error)

Types

type NetworkConfig

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

	Spec   NetworkConfigSpec   `json:"spec,omitempty"`
	Status NetworkConfigStatus `json:"status,omitempty"`
}

NetworkConfig is the Schema for the networkconfigs API

func (*NetworkConfig) DeepCopy

func (in *NetworkConfig) DeepCopy() *NetworkConfig

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

func (*NetworkConfig) DeepCopyInto

func (in *NetworkConfig) DeepCopyInto(out *NetworkConfig)

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

func (*NetworkConfig) DeepCopyObject

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

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

type NetworkConfigList

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

NetworkConfigList contains a list of NetworkConfig

func (*NetworkConfigList) DeepCopy

func (in *NetworkConfigList) DeepCopy() *NetworkConfigList

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

func (*NetworkConfigList) DeepCopyInto

func (in *NetworkConfigList) DeepCopyInto(out *NetworkConfigList)

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

func (*NetworkConfigList) DeepCopyObject

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

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

type NetworkConfigSpec

type NetworkConfigSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	//the ID of the remote cluster that will receive this CRD
	ClusterID string `json:"clusterID"`
	//network subnet used in the local cluster for the pod IPs
	PodCIDR string `json:"podCIDR"`
	//public IP of the node where the VPN tunnel is created
	TunnelPublicIP string `json:"tunnelPublicIP"`
}

NetworkConfigSpec defines the desired state of NetworkConfig

func (*NetworkConfigSpec) DeepCopy

func (in *NetworkConfigSpec) DeepCopy() *NetworkConfigSpec

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

func (*NetworkConfigSpec) DeepCopyInto

func (in *NetworkConfigSpec) DeepCopyInto(out *NetworkConfigSpec)

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

type NetworkConfigStatus

type NetworkConfigStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	//indicates if the NAT is enabled for the remote cluster
	NATEnabled string `json:"natEnabled,omitempty"`
	//the new subnet used to NAT the pods' subnet of the remote cluster
	PodCIDRNAT string `json:"podCIDRNAT,omitempty"`
}

NetworkConfigStatus defines the observed state of NetworkConfig

func (*NetworkConfigStatus) DeepCopy

func (in *NetworkConfigStatus) DeepCopy() *NetworkConfigStatus

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

func (*NetworkConfigStatus) DeepCopyInto

func (in *NetworkConfigStatus) DeepCopyInto(out *NetworkConfigStatus)

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

type TunnelEndpoint

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

	Spec   TunnelEndpointSpec   `json:"spec,omitempty"`
	Status TunnelEndpointStatus `json:"status,omitempty"`
}

TunnelEndpoint is the Schema for the endpoints API

func (*TunnelEndpoint) DeepCopy

func (in *TunnelEndpoint) DeepCopy() *TunnelEndpoint

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

func (*TunnelEndpoint) DeepCopyInto

func (in *TunnelEndpoint) DeepCopyInto(out *TunnelEndpoint)

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

func (*TunnelEndpoint) DeepCopyObject

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

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

type TunnelEndpointList

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

TunnelEndpointList contains a list of TunnelEndpoint

func (*TunnelEndpointList) DeepCopy

func (in *TunnelEndpointList) DeepCopy() *TunnelEndpointList

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

func (*TunnelEndpointList) DeepCopyInto

func (in *TunnelEndpointList) DeepCopyInto(out *TunnelEndpointList)

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

func (*TunnelEndpointList) DeepCopyObject

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

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

type TunnelEndpointSpec

type TunnelEndpointSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	ClusterID      string `json:"clusterID"`
	PodCIDR        string `json:"podCIDR"`
	TunnelPublicIP string `json:"tunnelPublicIP"`
}

TunnelEndpointSpec defines the desired state of TunnelEndpoint

func (*TunnelEndpointSpec) DeepCopy

func (in *TunnelEndpointSpec) DeepCopy() *TunnelEndpointSpec

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

func (*TunnelEndpointSpec) DeepCopyInto

func (in *TunnelEndpointSpec) DeepCopyInto(out *TunnelEndpointSpec)

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

type TunnelEndpointStatus

type TunnelEndpointStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file\
	Phase                 string `json:"phase,omitempty"` //two phases: New, Processed
	LocalRemappedPodCIDR  string `json:"localRemappedPodCIDR,omitempty"`
	RemoteRemappedPodCIDR string `json:"remoteRemappedPodCIDR,omitempty"`
	NATEnabled            bool   `json:"NAT,omitempty"`
	RemoteTunnelPublicIP  string `json:"remoteTunnelPublicIP,omitempty"`
	LocalTunnelPublicIP   string `json:"localTunnelPublicIP,omitempty"`
	TunnelIFaceIndex      int    `json:"tunnelIFaceIndex,omitempty"`
	TunnelIFaceName       string `json:"tunnelIFaceName,omitempty"`
}

TunnelEndpointStatus defines the observed state of TunnelEndpoint

func (*TunnelEndpointStatus) DeepCopy

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

func (*TunnelEndpointStatus) DeepCopyInto

func (in *TunnelEndpointStatus) DeepCopyInto(out *TunnelEndpointStatus)

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