Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the controlplane v1alpha1 API group +kubebuilder:object:generate=true +groupName=controlplane.miscord.win
Index ¶
- Variables
- type Attributes
- type CIDRBlock
- type CIDRBlockList
- type CIDRBlockSpec
- type CIDRBlockStatus
- type CIDRClaim
- type CIDRClaimList
- type CIDRClaimSpec
- type CIDRClaimStatus
- type CIDRClaimStatusState
- type CIDRClaimTemplate
- type CIDRClaimTemplateList
- type CIDRClaimTemplateSpec
- type CIDRClaimTemplateStatus
- type PeerNode
- type PeerNodeList
- type PeerNodeSpec
- type PeerNodeStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "controlplane.miscord.win", Version: "v1alpha1"} // 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 Attributes ¶
type Attributes struct { // HostName is a host name of the node HostName string `json:"hostName"` // OS is the OS name OS string `json:"os,omitempty"` // Arch is the CPU architecture Arch string `json:"arch,omitempty"` }
func (*Attributes) DeepCopy ¶
func (in *Attributes) DeepCopy() *Attributes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Attributes.
func (*Attributes) DeepCopyInto ¶
func (in *Attributes) DeepCopyInto(out *Attributes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRBlock ¶
type CIDRBlock struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CIDRBlockSpec `json:"spec,omitempty"` Status CIDRBlockStatus `json:"status,omitempty"` }
CIDRBlock is the Schema for the cidrblocks API
func (*CIDRBlock) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRBlock.
func (*CIDRBlock) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDRBlock) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDRBlockList ¶
type CIDRBlockList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CIDRBlock `json:"items"` }
CIDRBlockList contains a list of CIDRBlock
func (*CIDRBlockList) DeepCopy ¶
func (in *CIDRBlockList) DeepCopy() *CIDRBlockList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRBlockList.
func (*CIDRBlockList) DeepCopyInto ¶
func (in *CIDRBlockList) DeepCopyInto(out *CIDRBlockList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDRBlockList) DeepCopyObject ¶
func (in *CIDRBlockList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDRBlockSpec ¶
type CIDRBlockSpec struct { // CIDR represents the block of asiggned addresses like 192.168.1.0/24, [fe80::]/32 CIDR string `json:"cidr"` }
CIDRBlockSpec defines the desired state of CIDRBlock
func (*CIDRBlockSpec) DeepCopy ¶
func (in *CIDRBlockSpec) DeepCopy() *CIDRBlockSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRBlockSpec.
func (*CIDRBlockSpec) DeepCopyInto ¶
func (in *CIDRBlockSpec) DeepCopyInto(out *CIDRBlockSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRBlockStatus ¶
type CIDRBlockStatus struct { }
CIDRBlockStatus defines the observed state of CIDRBlock
func (*CIDRBlockStatus) DeepCopy ¶
func (in *CIDRBlockStatus) DeepCopy() *CIDRBlockStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRBlockStatus.
func (*CIDRBlockStatus) DeepCopyInto ¶
func (in *CIDRBlockStatus) DeepCopyInto(out *CIDRBlockStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRClaim ¶
type CIDRClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CIDRClaimSpec `json:"spec,omitempty"` Status CIDRClaimStatus `json:"status,omitempty"` }
CIDRClaim is the Schema for the cidrclaims API
func (*CIDRClaim) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaim.
func (*CIDRClaim) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDRClaim) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDRClaimList ¶
type CIDRClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CIDRClaim `json:"items"` }
CIDRClaimList contains a list of CIDRClaim
func (*CIDRClaimList) DeepCopy ¶
func (in *CIDRClaimList) DeepCopy() *CIDRClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaimList.
func (*CIDRClaimList) DeepCopyInto ¶
func (in *CIDRClaimList) DeepCopyInto(out *CIDRClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDRClaimList) DeepCopyObject ¶
func (in *CIDRClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDRClaimSpec ¶
type CIDRClaimSpec struct { // Selector is a labal selector of CIDRBlock Selector metav1.LabelSelector `json:"selector"` // SizeBit is log2(the number of requested addresses) // +kubebuilder:default=0 SizeBit int `json:"sizeBit"` }
CIDRClaimSpec defines the desired state of CIDRClaim
func (*CIDRClaimSpec) DeepCopy ¶
func (in *CIDRClaimSpec) DeepCopy() *CIDRClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaimSpec.
func (*CIDRClaimSpec) DeepCopyInto ¶
func (in *CIDRClaimSpec) DeepCopyInto(out *CIDRClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRClaimStatus ¶
type CIDRClaimStatus struct { // ObservedGeneration is the observed generation ObservedGeneration int64 `json:"observedGeneration"` // State represents the current state State CIDRClaimStatusState `json:"state"` // Message is the error message Message string `json:"message,omitempty"` // Name of the CIDRBlock CIDRBlockName string `json:"name,omitempty"` // CIDR represents the block of asiggned addresses like 192.168.1.0/24, [fe80::]/32 CIDR string `json:"cidr,omitempty"` // SizeBit is log2(the number of requested addresses) SizeBit int `json:"sizeBit,omitempty"` }
CIDRClaimStatus defines the observed state of CIDRClaim
func (*CIDRClaimStatus) DeepCopy ¶
func (in *CIDRClaimStatus) DeepCopy() *CIDRClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaimStatus.
func (*CIDRClaimStatus) DeepCopyInto ¶
func (in *CIDRClaimStatus) DeepCopyInto(out *CIDRClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRClaimStatusState ¶
type CIDRClaimStatusState string
const ( // CIDRClaimStatusStateUnknown represents the unknown state CIDRClaimStatusStateUnknown CIDRClaimStatusState = "" // CIDRClaimStatusStateReady represents the ready state CIDRClaimStatusStateReady CIDRClaimStatusState = "ready" // CIDRClaimStatusStateBindingError represents the updating state CIDRClaimStatusStateBindingError CIDRClaimStatusState = "bindingError" )
type CIDRClaimTemplate ¶
type CIDRClaimTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CIDRClaimTemplateSpec `json:"spec,omitempty"` Status CIDRClaimTemplateStatus `json:"status,omitempty"` }
CIDRClaimTemplate is the Schema for the cidrclaimtemplates API
func (*CIDRClaimTemplate) DeepCopy ¶
func (in *CIDRClaimTemplate) DeepCopy() *CIDRClaimTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaimTemplate.
func (*CIDRClaimTemplate) DeepCopyInto ¶
func (in *CIDRClaimTemplate) DeepCopyInto(out *CIDRClaimTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDRClaimTemplate) DeepCopyObject ¶
func (in *CIDRClaimTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDRClaimTemplateList ¶
type CIDRClaimTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CIDRClaimTemplate `json:"items"` }
CIDRClaimTemplateList contains a list of CIDRClaimTemplate
func (*CIDRClaimTemplateList) DeepCopy ¶
func (in *CIDRClaimTemplateList) DeepCopy() *CIDRClaimTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaimTemplateList.
func (*CIDRClaimTemplateList) DeepCopyInto ¶
func (in *CIDRClaimTemplateList) DeepCopyInto(out *CIDRClaimTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CIDRClaimTemplateList) DeepCopyObject ¶
func (in *CIDRClaimTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CIDRClaimTemplateSpec ¶
type CIDRClaimTemplateSpec struct { // Selector is a labal selector of CIDRBlock Selector metav1.LabelSelector `json:"selector"` // SizeBit is log2(the number of requested addresses) // +kubebuilder:default=0 SizeBit int `json:"sizeBit"` }
CIDRClaimTemplateSpec defines the desired state of CIDRClaimTemplate
func (*CIDRClaimTemplateSpec) DeepCopy ¶
func (in *CIDRClaimTemplateSpec) DeepCopy() *CIDRClaimTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaimTemplateSpec.
func (*CIDRClaimTemplateSpec) DeepCopyInto ¶
func (in *CIDRClaimTemplateSpec) DeepCopyInto(out *CIDRClaimTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CIDRClaimTemplateStatus ¶
type CIDRClaimTemplateStatus struct { }
CIDRClaimTemplateStatus defines the observed state of CIDRClaimTemplate
func (*CIDRClaimTemplateStatus) DeepCopy ¶
func (in *CIDRClaimTemplateStatus) DeepCopy() *CIDRClaimTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CIDRClaimTemplateStatus.
func (*CIDRClaimTemplateStatus) DeepCopyInto ¶
func (in *CIDRClaimTemplateStatus) DeepCopyInto(out *CIDRClaimTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeerNode ¶
type PeerNode struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PeerNodeSpec `json:"spec,omitempty"` Status PeerNodeStatus `json:"status,omitempty"` }
PeerNode is the Schema for the peernodes API
func (*PeerNode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerNode.
func (*PeerNode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PeerNode) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PeerNodeList ¶
type PeerNodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PeerNode `json:"items"` }
PeerNodeList contains a list of PeerNode
func (*PeerNodeList) DeepCopy ¶
func (in *PeerNodeList) DeepCopy() *PeerNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerNodeList.
func (*PeerNodeList) DeepCopyInto ¶
func (in *PeerNodeList) DeepCopyInto(out *PeerNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PeerNodeList) DeepCopyObject ¶
func (in *PeerNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PeerNodeSpec ¶
type PeerNodeSpec struct { // PublicKey is a Wireguard public key PublicKey string `json:"publicKey,omitempty"` // PublicDiscoKey is a public key for Disco PublicDiscoKey string `json:"publicDiscoKey,omitempty"` // Attributes is a metadata of the node Attributes Attributes `json:"attributes,omitempty"` // Endpoints are public endpoints for other peers connect to Endpoints []string `json:"endpoints"` // StaticRoutes are the CIDRs to be routed StaticRoutes []string `json:"staticRoutes,omitempty"` // ClaimsSelector is a selector of CIDRClaims for this node ClaimsSelector metav1.LabelSelector `json:"claimsSelector"` // AddressesSelector is a selector of CIDRClaims for this node which are assigned to the wireguard interface AddressesSelector metav1.LabelSelector `json:"addressesSelector"` }
PeerNodeSpec defines the desired state of PeerNode
func (*PeerNodeSpec) DeepCopy ¶
func (in *PeerNodeSpec) DeepCopy() *PeerNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerNodeSpec.
func (*PeerNodeSpec) DeepCopyInto ¶
func (in *PeerNodeSpec) DeepCopyInto(out *PeerNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeerNodeStatus ¶
type PeerNodeStatus struct { // ObservedGeneration is the observed generation ObservedGeneration int64 `json:"observedGeneration"` // Message is the error message Message string `json:"message,omitempty"` }
PeerNodeStatus defines the observed state of PeerNode
func (*PeerNodeStatus) DeepCopy ¶
func (in *PeerNodeStatus) DeepCopy() *PeerNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerNodeStatus.
func (*PeerNodeStatus) DeepCopyInto ¶
func (in *PeerNodeStatus) DeepCopyInto(out *PeerNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.