v1alpha1

package
v0.0.0-...-e5bad9c Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GroupName is the group name used in this package.
	GroupName string = "wgmesh.codybaker.com"
	// GroupVersion is the version.
	GroupVersion string = "v1alpha1"
)

Variables

View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{
		Group:   GroupName,
		Version: GroupVersion,
	}

	// SchemeBuilder ...
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme ...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type IPClaim

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

	Spec IPClaimSpec `json:"spec,omitempty"`
}

IPClaim is the Schema for the WireGuardPeers API +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IPClaim) DeepCopy

func (in *IPClaim) DeepCopy() *IPClaim

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

func (*IPClaim) DeepCopyInto

func (in *IPClaim) DeepCopyInto(out *IPClaim)

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

func (*IPClaim) DeepCopyObject

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

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

type IPClaimList

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

IPClaimList contains a list of IPClaims.

func (*IPClaimList) DeepCopy

func (in *IPClaimList) DeepCopy() *IPClaimList

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

func (*IPClaimList) DeepCopyInto

func (in *IPClaimList) DeepCopyInto(out *IPClaimList)

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

func (*IPClaimList) DeepCopyObject

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

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

type IPClaimSpec

type IPClaimSpec struct {
	IP string `json:"ip"`
}

IPClaimSpec describes the IP claim.

func (*IPClaimSpec) DeepCopy

func (in *IPClaimSpec) DeepCopy() *IPClaimSpec

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

func (*IPClaimSpec) DeepCopyInto

func (in *IPClaimSpec) DeepCopyInto(out *IPClaimSpec)

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

type IPPool

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

	Spec IPPoolSpec `json:"spec,omitempty"`
}

IPPool is the Schema for the WireGuardPeers API +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IPPool) DeepCopy

func (in *IPPool) DeepCopy() *IPPool

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

func (*IPPool) DeepCopyInto

func (in *IPPool) DeepCopyInto(out *IPPool)

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

func (*IPPool) DeepCopyObject

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

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

type IPPoolList

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

IPPoolList contains a list of IPPools.

func (*IPPoolList) DeepCopy

func (in *IPPoolList) DeepCopy() *IPPoolList

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

func (*IPPoolList) DeepCopyInto

func (in *IPPoolList) DeepCopyInto(out *IPPoolList)

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

func (*IPPoolList) DeepCopyObject

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

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

type IPPoolSpec

type IPPoolSpec struct {
	// IPRanges specifies a set of IP ranges available for allocation. If multiple ranges are
	// offered, a client will select one total address at random from any listed range. If ranges
	// overlap, IPs can be claimed by at most peer per IPPool, regardless of how many ranges they
	// appear in.
	IPRanges []IPRange `json:"ipRanges"`

	// Reserved lists addresses which should not be assigned.
	Reserved []string `json:"reserved,omitempty"`
}

IPPoolSpec describes the IP pool

func (*IPPoolSpec) DeepCopy

func (in *IPPoolSpec) DeepCopy() *IPPoolSpec

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

func (*IPPoolSpec) DeepCopyInto

func (in *IPPoolSpec) DeepCopyInto(out *IPPoolSpec)

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

type IPRange

type IPRange struct {
	CIDR string `json:"cidr"`
	// Start defines the first address in the pool available for allocation. If omitted, the start
	// address is assumed to be start of the subnet. Unless the mask is an IPv4 >= /31, the 0 address
	// is reserved as the network address.
	Start string `json:"start,omitempty"`
	// Start defines the last address in the pool available for allocation. If omitted, the start
	// address is assumed to be end of the subnet. Unless the mask is an IPv4 >= /31, the top address
	// (all ones) is reserved as the broadcast address.
	End string `json:"end,omitempty"`
}

IPRange defines a range of IP address available for allocation.

func (*IPRange) DeepCopy

func (in *IPRange) DeepCopy() *IPRange

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

func (*IPRange) DeepCopyInto

func (in *IPRange) DeepCopyInto(out *IPRange)

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

type WireGuardPeer

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

	Spec WireGuardPeerSpec `json:"spec,omitempty"`
}

WireGuardPeer describes a WG Mesh node which can be networked with. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*WireGuardPeer) DeepCopy

func (in *WireGuardPeer) DeepCopy() *WireGuardPeer

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

func (*WireGuardPeer) DeepCopyInto

func (in *WireGuardPeer) DeepCopyInto(out *WireGuardPeer)

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

func (*WireGuardPeer) DeepCopyObject

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

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

type WireGuardPeerList

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

WireGuardPeerList contains a list of WireGuardPeer(s).

func (*WireGuardPeerList) DeepCopy

func (in *WireGuardPeerList) DeepCopy() *WireGuardPeerList

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

func (*WireGuardPeerList) DeepCopyInto

func (in *WireGuardPeerList) DeepCopyInto(out *WireGuardPeerList)

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

func (*WireGuardPeerList) DeepCopyObject

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

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

type WireGuardPeerSpec

type WireGuardPeerSpec struct {
	Endpoint     string   `json:"endpoint"`
	PublicKey    string   `json:"publicKey"`
	PresharedKey string   `json:"presharedKey"`
	IPs          []string `json:"ips,omitempty"`
	Routes       []string `json:"routes,omitempty"`
	// KeepAliveSeconds is the frequency which keep-alive packets will be sent to
	// maintain connectivity between peers.
	// NOTE: For each set of peers we use the lower of the two peers.
	KeepAliveSeconds int `json:"keepalive,omitempty"`
}

WireGuardPeerSpec describes the info necessary to establish connectivity with the peer.

func (*WireGuardPeerSpec) DeepCopy

func (in *WireGuardPeerSpec) DeepCopy() *WireGuardPeerSpec

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

func (*WireGuardPeerSpec) DeepCopyInto

func (in *WireGuardPeerSpec) DeepCopyInto(out *WireGuardPeerSpec)

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