v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: network.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Connection

type Connection struct {
	Name        string `json:"name"`
	Left        string `json:"left"`
	LeftSubnet  string `json:"leftsubnet"`
	Right       string `json:"right"`
	RightSubnet string `json:"rightsubnet"`
	PSK         string `json:"psk"`

	LeftID          string `json:"leftid,omitempty"`
	RightID         string `json:"rightid,omitempty"`
	IsServiceSubnet bool   `json:"isservicesubnet,omitempty"`
	Keyexchange     string `json:"keyexchange,omitempty"`
	IKELifetime     string `json:"ikelifetime,omitempty"`
	Lifetime        string `json:"lifetime,omitempty"`
	IKE             string `json:"ike,omitempty"`
	ESP             string `json:"esp,omitempty"`
	Also            string `json:"also,omitempty"`
}

func (*Connection) DeepCopy

func (in *Connection) DeepCopy() *Connection

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

func (*Connection) DeepCopyInto

func (in *Connection) DeepCopyInto(out *Connection)

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

type VPN

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

	Spec   VPNSpec   `json:"spec,omitempty"`
	Status VPNStatus `json:"status,omitempty"`
}

VPN is the Schema for the vpns API

func (*VPN) DeepCopy

func (in *VPN) DeepCopy() *VPN

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

func (*VPN) DeepCopyInto

func (in *VPN) DeepCopyInto(out *VPN)

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

func (*VPN) DeepCopyObject

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

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

type VPNList

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

VPNList contains a list of VPN

func (*VPNList) DeepCopy

func (in *VPNList) DeepCopy() *VPNList

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

func (*VPNList) DeepCopyInto

func (in *VPNList) DeepCopyInto(out *VPNList)

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

func (*VPNList) DeepCopyObject

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

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

type VPNSpec

type VPNSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	Connections []Connection `json:"connections"`
	NodeName    string       `json:"nodename,omitempty"`
}

VPNSpec defines the desired state of VPN

func (*VPNSpec) DeepCopy

func (in *VPNSpec) DeepCopy() *VPNSpec

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

func (*VPNSpec) DeepCopyInto

func (in *VPNSpec) DeepCopyInto(out *VPNSpec)

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

type VPNStatus

type VPNStatus struct {
}

VPNStatus defines the observed state of VPN

func (*VPNStatus) DeepCopy

func (in *VPNStatus) DeepCopy() *VPNStatus

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

func (*VPNStatus) DeepCopyInto

func (in *VPNStatus) DeepCopyInto(out *VPNStatus)

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