Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the networking v1 API group +kubebuilder:object:generate=true +groupName=networking.kloudlite.io
Index ¶
- Variables
- type Gateway
- func (in *Gateway) DeepCopy() *Gateway
- func (in *Gateway) DeepCopyInto(out *Gateway)
- func (in *Gateway) DeepCopyObject() runtime.Object
- func (p *Gateway) EnsureGVK()
- func (p *Gateway) GetEnsuredAnnotations() map[string]string
- func (p *Gateway) GetEnsuredLabels() map[string]string
- func (p *Gateway) GetStatus() *rApi.Status
- type GatewayList
- type GatewayLoadBalancer
- type GatewayServiceType
- type GatewaySpec
- type LocalOverrides
- type Peer
- type PeerVisibility
- type PodBinding
- func (in *PodBinding) DeepCopy() *PodBinding
- func (in *PodBinding) DeepCopyInto(out *PodBinding)
- func (in *PodBinding) DeepCopyObject() runtime.Object
- func (p *PodBinding) EnsureGVK()
- func (p *PodBinding) GetEnsuredAnnotations() map[string]string
- func (p *PodBinding) GetEnsuredLabels() map[string]string
- func (p *PodBinding) GetStatus() *rApi.Status
- type PodBindingList
- type PodBindingSpec
- type ServiceBinding
- func (in *ServiceBinding) DeepCopy() *ServiceBinding
- func (in *ServiceBinding) DeepCopyInto(out *ServiceBinding)
- func (in *ServiceBinding) DeepCopyObject() runtime.Object
- func (sb *ServiceBinding) EnsureGVK()
- func (sb *ServiceBinding) GetEnsuredAnnotations() map[string]string
- func (sb *ServiceBinding) GetEnsuredLabels() map[string]string
- func (sb *ServiceBinding) GetStatus() *rApi.Status
- type ServiceBindingList
- type ServiceBindingSpec
- type WireguardKeys
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "networking.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 Gateway ¶
type Gateway struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GatewaySpec `json:"spec,omitempty"`
Status rApi.Status `json:"status,omitempty"`
}
Gateway is the Schema for the gateways API
func (*Gateway) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.
func (*Gateway) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Gateway) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Gateway) GetEnsuredAnnotations ¶
func (*Gateway) GetEnsuredLabels ¶
type GatewayList ¶
type GatewayList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Gateway `json:"items"`
}
GatewayList contains a list of Gateway
func (*GatewayList) DeepCopy ¶
func (in *GatewayList) DeepCopy() *GatewayList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayList.
func (*GatewayList) DeepCopyInto ¶
func (in *GatewayList) DeepCopyInto(out *GatewayList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GatewayList) DeepCopyObject ¶
func (in *GatewayList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GatewayLoadBalancer ¶
func (*GatewayLoadBalancer) DeepCopy ¶
func (in *GatewayLoadBalancer) DeepCopy() *GatewayLoadBalancer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayLoadBalancer.
func (*GatewayLoadBalancer) DeepCopyInto ¶
func (in *GatewayLoadBalancer) DeepCopyInto(out *GatewayLoadBalancer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GatewayServiceType ¶
type GatewayServiceType string
const ( GatewayServiceTypeLoadBalancer GatewayServiceType = "LoadBalancer" GatewayServiceTypeNodePort GatewayServiceType = "NodePort" )
type GatewaySpec ¶
type GatewaySpec struct {
TargetNamespace string `json:"targetNamespace,omitempty"`
GlobalIP string `json:"globalIP"`
ClusterCIDR string `json:"clusterCIDR"`
SvcCIDR string `json:"svcCIDR"`
DNSSuffix string `json:"dnsSuffix"`
Peers []Peer `json:"peers,omitempty"`
// secret's data must be serializable into LocalOverrides
LocalOverrides *ct.SecretRef `json:"localOverrides,omitempty"`
//+kubebuilder:default=LoadBalancer
ServiceType GatewayServiceType `json:"serviceType,omitempty"`
// it will be filled by resource controller
LoadBalancer *GatewayLoadBalancer `json:"loadBalancer,omitempty"`
NodePort *int32 `json:"nodePort,omitempty"`
// secret's data will be unmarshalled into WireguardKeys
WireguardKeysRef ct.LocalObjectReference `json:"wireguardKeysRef,omitempty"`
}
GatewaySpec defines the desired state of Gateway
func (*GatewaySpec) DeepCopy ¶
func (in *GatewaySpec) DeepCopy() *GatewaySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewaySpec.
func (*GatewaySpec) DeepCopyInto ¶
func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalOverrides ¶
type LocalOverrides struct {
Peers []Peer `json:"peers,omitempty"`
}
func (*LocalOverrides) DeepCopy ¶
func (in *LocalOverrides) DeepCopy() *LocalOverrides
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalOverrides.
func (*LocalOverrides) DeepCopyInto ¶
func (in *LocalOverrides) DeepCopyInto(out *LocalOverrides)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Peer ¶
type Peer struct {
DNSHostname string `json:"dnsHostname,omitempty"`
Comments string `json:"comments,omitempty"`
PublicKey string `json:"publicKey"`
PublicEndpoint *string `json:"publicEndpoint,omitempty"`
IP *string `json:"ip,omitempty"`
DNSSuffix *string `json:"dnsSuffix,omitempty"`
AllowedIPs []string `json:"allowedIPs,omitempty"`
Visibility PeerVisibility `json:"visibility,omitempty"`
}
func (*Peer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Peer.
func (*Peer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeerVisibility ¶
type PeerVisibility string
const ( PeerVisibilityPublic PeerVisibility = "public" PeerVisibilityPrivate PeerVisibility = "private" )
type PodBinding ¶
type PodBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PodBindingSpec `json:"spec,omitempty"`
Status rApi.Status `json:"status,omitempty"`
}
PodBinding is the Schema for the podbindings API
func (*PodBinding) DeepCopy ¶
func (in *PodBinding) DeepCopy() *PodBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodBinding.
func (*PodBinding) DeepCopyInto ¶
func (in *PodBinding) DeepCopyInto(out *PodBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodBinding) DeepCopyObject ¶
func (in *PodBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PodBinding) EnsureGVK ¶
func (p *PodBinding) EnsureGVK()
func (*PodBinding) GetEnsuredAnnotations ¶
func (p *PodBinding) GetEnsuredAnnotations() map[string]string
func (*PodBinding) GetEnsuredLabels ¶
func (p *PodBinding) GetEnsuredLabels() map[string]string
func (*PodBinding) GetStatus ¶
func (p *PodBinding) GetStatus() *rApi.Status
type PodBindingList ¶
type PodBindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PodBinding `json:"items"`
}
PodBindingList contains a list of PodBinding
func (*PodBindingList) DeepCopy ¶
func (in *PodBindingList) DeepCopy() *PodBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodBindingList.
func (*PodBindingList) DeepCopyInto ¶
func (in *PodBindingList) DeepCopyInto(out *PodBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodBindingList) DeepCopyObject ¶
func (in *PodBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodBindingSpec ¶
type PodBindingSpec struct {
GlobalIP string `json:"globalIP"`
WgPrivateKey string `json:"wgPrivateKey"`
WgPublicKey string `json:"wgPublicKey"`
PodRef *ct.NamespacedResourceRef `json:"podRef,omitempty"`
PodIP *string `json:"podIP,omitempty"`
AllowedIPs []string `json:"allowedIPs"`
}
PodBindingSpec defines the desired state of PodBinding
func (*PodBindingSpec) DeepCopy ¶
func (in *PodBindingSpec) DeepCopy() *PodBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodBindingSpec.
func (*PodBindingSpec) DeepCopyInto ¶
func (in *PodBindingSpec) DeepCopyInto(out *PodBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceBinding ¶
type ServiceBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceBindingSpec `json:"spec,omitempty"`
Status rApi.Status `json:"status,omitempty"`
}
ServiceBinding is the Schema for the servicebindings API
func (*ServiceBinding) DeepCopy ¶
func (in *ServiceBinding) DeepCopy() *ServiceBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBinding.
func (*ServiceBinding) DeepCopyInto ¶
func (in *ServiceBinding) DeepCopyInto(out *ServiceBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceBinding) DeepCopyObject ¶
func (in *ServiceBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceBinding) EnsureGVK ¶
func (sb *ServiceBinding) EnsureGVK()
func (*ServiceBinding) GetEnsuredAnnotations ¶
func (sb *ServiceBinding) GetEnsuredAnnotations() map[string]string
func (*ServiceBinding) GetEnsuredLabels ¶
func (sb *ServiceBinding) GetEnsuredLabels() map[string]string
func (*ServiceBinding) GetStatus ¶
func (sb *ServiceBinding) GetStatus() *rApi.Status
type ServiceBindingList ¶
type ServiceBindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceBinding `json:"items"`
}
ServiceBindingList contains a list of ServiceBinding
func (*ServiceBindingList) DeepCopy ¶
func (in *ServiceBindingList) DeepCopy() *ServiceBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingList.
func (*ServiceBindingList) DeepCopyInto ¶
func (in *ServiceBindingList) DeepCopyInto(out *ServiceBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceBindingList) DeepCopyObject ¶
func (in *ServiceBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceBindingSpec ¶
type ServiceBindingSpec struct {
GlobalIP string `json:"globalIP"`
ServiceIP *string `json:"serviceIP,omitempty"`
ServiceRef *ct.NamespacedResourceRef `json:"serviceRef,omitempty"`
Ports []corev1.ServicePort `json:"ports,omitempty"`
Hostname string `json:"hostname,omitempty"`
}
ServiceBindingSpec defines the desired state of ServiceBinding
func (*ServiceBindingSpec) DeepCopy ¶
func (in *ServiceBindingSpec) DeepCopy() *ServiceBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBindingSpec.
func (*ServiceBindingSpec) DeepCopyInto ¶
func (in *ServiceBindingSpec) DeepCopyInto(out *ServiceBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WireguardKeys ¶
type WireguardKeys struct {
PrivateKey string `json:"private_key"`
PublicKey string `json:"public_key"`
}
func (*WireguardKeys) DeepCopy ¶
func (in *WireguardKeys) DeepCopy() *WireguardKeys
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WireguardKeys.
func (*WireguardKeys) DeepCopyInto ¶
func (in *WireguardKeys) DeepCopyInto(out *WireguardKeys)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.