v1alpha1

package
v1.0.0-alpha.5 Latest Latest
Warning

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

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

Documentation

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: networking.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 VPNPeer

type VPNPeer struct {
	// TypeMeta is the metadata for the resource, like kind and apiversion
	metav1.TypeMeta `json:",inline"`
	// ObjectMeta contains the metadata for the particular object, including
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec is the vpnpeer resource spec
	Spec VPNPeerSpec `json:"spec"`
}

VPNPeer describes a WireGuard peer

func (*VPNPeer) DeepCopy

func (in *VPNPeer) DeepCopy() *VPNPeer

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

func (*VPNPeer) DeepCopyInto

func (in *VPNPeer) DeepCopyInto(out *VPNPeer)

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

func (*VPNPeer) DeepCopyObject

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

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

type VPNPeerList

type VPNPeerList struct {
	// TypeMeta is the metadata for the resource, like kind and apiversion
	metav1.TypeMeta `json:",inline"`
	// ObjectMeta contains the metadata for the particular object, including
	metav1.ListMeta `json:"metadata"`
	// VPNPeerList is a list of VPNPeer resources thus, VPNPeers are contained here.
	Items []VPNPeer `json:"items"`
}

VPNPeerList is a list of VPNPeer resources

func (*VPNPeerList) DeepCopy

func (in *VPNPeerList) DeepCopy() *VPNPeerList

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

func (*VPNPeerList) DeepCopyInto

func (in *VPNPeerList) DeepCopyInto(out *VPNPeerList)

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

func (*VPNPeerList) DeepCopyObject

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

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

type VPNPeerSpec

type VPNPeerSpec struct {
	// IPv4 address of VPN peer.
	AddressV4 string `json:"addressV4"`
	// IPv6 address of VPN peer.
	AddressV6 string `json:"addressV6"`
	// Endpoint address of the VPN tunnel.
	EndpointAddress *string `json:"endpointAddress"`
	// Endpoint port of the VPN tunnel.
	EndpointPort *int `json:"endpointPort"`
	// VPN public key of the peer.
	PublicKey string `json:"publicKey"`
}

VPNPeerSpec is the spec for a VPNPeer resource

func (*VPNPeerSpec) DeepCopy

func (in *VPNPeerSpec) DeepCopy() *VPNPeerSpec

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

func (*VPNPeerSpec) DeepCopyInto

func (in *VPNPeerSpec) DeepCopyInto(out *VPNPeerSpec)

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