v1

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the wireguard v1 API group +kubebuilder:object:generate=true +groupName=wireguard.kloudlite.io

Index

Constants

This section is empty.

Variables

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

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

This section is empty.

Types

type CNameRecord

type CNameRecord struct {
	Host   string `json:"host,omitempty"`
	Target string `json:"target,omitempty"`
}

func (*CNameRecord) DeepCopy

func (in *CNameRecord) DeepCopy() *CNameRecord

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

func (*CNameRecord) DeepCopyInto

func (in *CNameRecord) DeepCopyInto(out *CNameRecord)

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

type Device

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

	Spec   DeviceSpec  `json:"spec,omitempty"`
	Status rApi.Status `json:"status,omitempty" graphql:"noinput"`
}

Device is the Schema for the devices API

func (*Device) DeepCopy

func (in *Device) DeepCopy() *Device

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

func (*Device) DeepCopyInto

func (in *Device) DeepCopyInto(out *Device)

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

func (*Device) DeepCopyObject

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

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

func (*Device) EnsureGVK

func (d *Device) EnsureGVK()

func (*Device) GetEnsuredAnnotations

func (d *Device) GetEnsuredAnnotations() map[string]string

func (*Device) GetEnsuredLabels

func (d *Device) GetEnsuredLabels() map[string]string

func (*Device) GetStatus

func (d *Device) GetStatus() *rApi.Status

type DeviceList

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

DeviceList contains a list of Device

func (*DeviceList) DeepCopy

func (in *DeviceList) DeepCopy() *DeviceList

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

func (*DeviceList) DeepCopyInto

func (in *DeviceList) DeepCopyInto(out *DeviceList)

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

func (*DeviceList) DeepCopyObject

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

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

type DeviceSpec

type DeviceSpec struct {
	Ports           []Port        `json:"ports,omitempty"`
	ActiveNamespace *string       `json:"activeNamespace,omitempty"`
	CNameRecords    []CNameRecord `json:"cnameRecords,omitempty"`

	NodeSelector      map[string]string `json:"nodeSelector,omitempty" graphql:"noinput"`
	Disabled          bool              `json:"disabled,omitempty" graphql:"noinput"`
	NoExternalService bool              `json:"noExternalService,omitempty" graphql:"noinput"`
}

DeviceSpec defines the desired state of Device

func (*DeviceSpec) DeepCopy

func (in *DeviceSpec) DeepCopy() *DeviceSpec

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

func (*DeviceSpec) DeepCopyInto

func (in *DeviceSpec) DeepCopyInto(out *DeviceSpec)

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

type GlobVPNSpec added in v1.1.0

type GlobVPNSpec struct {
	// This secret is unmarshalled into WgParams
	WgRef ct.SecretRef `json:"wg"`

	WgInterface *string `json:"wgInterface"`

	Peers []Peer `json:"peers,omitempty"`

	GatewayResources *corev1.ResourceRequirements `json:"gatewayResources,omitempty"`
	AgentsResources  *corev1.ResourceRequirements `json:"agentsResources,omitempty"`
}

ConnectionSpec defines the desired state of Connect

func (*GlobVPNSpec) DeepCopy added in v1.1.0

func (in *GlobVPNSpec) DeepCopy() *GlobVPNSpec

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

func (*GlobVPNSpec) DeepCopyInto added in v1.1.0

func (in *GlobVPNSpec) DeepCopyInto(out *GlobVPNSpec)

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

type GlobalVPN added in v1.1.0

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

	Spec   GlobVPNSpec `json:"spec,omitempty"`
	Status rApi.Status `json:"status,omitempty" graphql:"noinput"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster +kubebuilder:printcolumn:JSONPath=".status.lastReconcileTime",name=Seen,type=date +kubebuilder:printcolumn:JSONPath=".metadata.annotations.kloudlite\\.io\\/operator\\.checks",name=Checks,type=string +kubebuilder:printcolumn:JSONPath=".metadata.annotations.kloudlite\\.io\\/operator\\.resource\\.ready",name=Ready,type=string +kubebuilder:printcolumn:JSONPath=".metadata.creationTimestamp",name=Age,type=date GlobalVPN is the Schema for the connects API

func (*GlobalVPN) DeepCopy added in v1.1.0

func (in *GlobalVPN) DeepCopy() *GlobalVPN

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

func (*GlobalVPN) DeepCopyInto added in v1.1.0

func (in *GlobalVPN) DeepCopyInto(out *GlobalVPN)

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

func (*GlobalVPN) DeepCopyObject added in v1.1.0

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

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

func (*GlobalVPN) EnsureGVK added in v1.1.0

func (d *GlobalVPN) EnsureGVK()

func (*GlobalVPN) GetEnsuredAnnotations added in v1.1.0

func (d *GlobalVPN) GetEnsuredAnnotations() map[string]string

func (*GlobalVPN) GetEnsuredLabels added in v1.1.0

func (d *GlobalVPN) GetEnsuredLabels() map[string]string

func (*GlobalVPN) GetStatus added in v1.1.0

func (d *GlobalVPN) GetStatus() *rApi.Status

type GlobalVPNList added in v1.1.0

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

GlobalVPNList contains a list of Connect

func (*GlobalVPNList) DeepCopy added in v1.1.0

func (in *GlobalVPNList) DeepCopy() *GlobalVPNList

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

func (*GlobalVPNList) DeepCopyInto added in v1.1.0

func (in *GlobalVPNList) DeepCopyInto(out *GlobalVPNList)

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

func (*GlobalVPNList) DeepCopyObject added in v1.1.0

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

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

type Peer added in v1.1.0

type Peer struct {
	PublicKey string `json:"publicKey"`
	Endpoint  string `json:"endpoint"`
	IP        string `json:"ip"`
	Port      int    `json:"port"`

	ClusterName string `json:"clusterName,omitempty"`
	DeviceName  string `json:"deviceName,omitempty"`

	AllowedIPs []string `json:"allowedIPs,omitempty"`
}

func (*Peer) DeepCopy added in v1.1.0

func (in *Peer) DeepCopy() *Peer

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

func (*Peer) DeepCopyInto added in v1.1.0

func (in *Peer) DeepCopyInto(out *Peer)

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

type Port

type Port struct {
	Port       int32 `json:"port,omitempty"`
	TargetPort int32 `json:"targetPort,omitempty"`
}

func (*Port) DeepCopy

func (in *Port) DeepCopy() *Port

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

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

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

type WgParams added in v1.1.0

type WgParams struct {
	WgPrivateKey string `json:"wg_private_key"`
	WgPublicKey  string `json:"wg_public_key"`

	IP string `json:"ip"`

	DNSServer *string `json:"dnsServer"`

	PublicGatewayHosts *string `json:"publicGatewayHosts,omitempty"`
	PublicGatewayPort  *string `json:"publicGatewayPort,omitempty"`

	VirtualCidr string `json:"virtualCidr"`
}

func (*WgParams) DeepCopy added in v1.1.0

func (in *WgParams) DeepCopy() *WgParams

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

func (*WgParams) DeepCopyInto added in v1.1.0

func (in *WgParams) DeepCopyInto(out *WgParams)

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