Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the apinet v1alpha1 API group +kubebuilder:object:generate=true +groupName=apinet.api.onmetal.de
Index ¶
- Constants
- Variables
- func APINetletCommonName(name string) string
- func NetworkConditionIndex(conditions []NetworkCondition, conditionType NetworkConditionType) int
- func PublicIPConditionIndex(conditions []PublicIPCondition, conditionType PublicIPConditionType) int
- func SetNetworkCondition(conditions *[]NetworkCondition, condition NetworkCondition)
- func SetPublicIPCondition(conditions *[]PublicIPCondition, condition PublicIPCondition)
- type IP
- func (in *IP) DeepCopy() *IP
- func (in *IP) DeepCopyInto(out *IP)
- func (i IP) Family() corev1.IPFamily
- func (i IP) GomegaString() string
- func (i *IP) IsValid() bool
- func (i *IP) IsZero() bool
- func (i IP) MarshalJSON() ([]byte, error)
- func (_ IP) OpenAPISchemaFormat() string
- func (_ IP) OpenAPISchemaType() []string
- func (i IP) ToUnstructured() interface{}
- func (i *IP) UnmarshalJSON(b []byte) error
- type Network
- type NetworkCondition
- type NetworkConditionType
- type NetworkList
- type NetworkSpec
- type NetworkStatus
- type PublicIP
- type PublicIPCondition
- type PublicIPConditionType
- type PublicIPList
- type PublicIPSpec
- type PublicIPStatus
Constants ¶
const ( ReconcileRequestAnnotation = "reconcile.apinet.api.onmetal.de/requestedAt" // APINetletsGroup is the system rbac group all apinetlets are in. APINetletsGroup = "apinet.api.onmetal.de:system:apinetlets" // APINetletUserNamePrefix is the prefix all apinetlet users should have. APINetletUserNamePrefix = "apinet.api.onmetal.de:system:apinetlet:" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "apinet.api.onmetal.de", 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 ¶
func APINetletCommonName ¶
APINetletCommonName constructs the common name for a certificate of an apinetlet user.
func NetworkConditionIndex ¶
func NetworkConditionIndex(conditions []NetworkCondition, conditionType NetworkConditionType) int
func PublicIPConditionIndex ¶
func PublicIPConditionIndex(conditions []PublicIPCondition, conditionType PublicIPConditionType) int
func SetNetworkCondition ¶
func SetNetworkCondition(conditions *[]NetworkCondition, condition NetworkCondition)
func SetPublicIPCondition ¶
func SetPublicIPCondition(conditions *[]PublicIPCondition, condition PublicIPCondition)
Types ¶
type IP ¶
IP is an IP address. +kubebuilder:validation:Type=string
func MustParseIP ¶
func MustParseNewIP ¶
func ParseNewIP ¶
func (*IP) DeepCopyInto ¶
func (IP) GomegaString ¶
func (IP) MarshalJSON ¶
func (IP) OpenAPISchemaFormat ¶
func (IP) OpenAPISchemaType ¶
func (IP) ToUnstructured ¶
func (i IP) ToUnstructured() interface{}
func (*IP) UnmarshalJSON ¶
type Network ¶
type Network struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkSpec `json:"spec,omitempty"` Status NetworkStatus `json:"status,omitempty"` }
Network is the schema for the publicips API.
func (*Network) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.
func (*Network) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Network) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkCondition ¶
type NetworkCondition struct { Type NetworkConditionType `json:"type"` Status corev1.ConditionStatus `json:"status"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
func (*NetworkCondition) DeepCopy ¶
func (in *NetworkCondition) DeepCopy() *NetworkCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkCondition.
func (*NetworkCondition) DeepCopyInto ¶
func (in *NetworkCondition) DeepCopyInto(out *NetworkCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkConditionType ¶
type NetworkConditionType string
const (
NetworkAllocated NetworkConditionType = "Allocated"
)
type NetworkList ¶
type NetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Network `json:"items"` }
NetworkList contains a list of Network.
func (*NetworkList) DeepCopy ¶
func (in *NetworkList) DeepCopy() *NetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkList.
func (*NetworkList) DeepCopyInto ¶
func (in *NetworkList) DeepCopyInto(out *NetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkList) DeepCopyObject ¶
func (in *NetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkSpec ¶
type NetworkSpec struct { // +kubebuilder:validation:Maximum=16777215 // +kubebuilder:validation:Minimum=0 // VNI is the requested network vni. // Pointer to distinguish between explicitly set and unset. VNI *int32 `json:"vni,omitempty"` // PeerVNIs are VNIs to peer with. PeerVNIs []int32 `json:"peerVNIs,omitempty"` }
func (*NetworkSpec) DeepCopy ¶
func (in *NetworkSpec) DeepCopy() *NetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSpec.
func (*NetworkSpec) DeepCopyInto ¶
func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkStatus ¶
type NetworkStatus struct { // Conditions are the conditions of a network. Conditions []NetworkCondition `json:"conditions,omitempty"` }
func (*NetworkStatus) DeepCopy ¶
func (in *NetworkStatus) DeepCopy() *NetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkStatus.
func (*NetworkStatus) DeepCopyInto ¶
func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PublicIP ¶
type PublicIP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PublicIPSpec `json:"spec,omitempty"` Status PublicIPStatus `json:"status,omitempty"` }
PublicIP is the schema for the publicips API.
func (*PublicIP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicIP.
func (*PublicIP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PublicIP) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PublicIP) IsAllocated ¶
type PublicIPCondition ¶
type PublicIPCondition struct { Type PublicIPConditionType `json:"type"` Status corev1.ConditionStatus `json:"status"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
func (*PublicIPCondition) DeepCopy ¶
func (in *PublicIPCondition) DeepCopy() *PublicIPCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicIPCondition.
func (*PublicIPCondition) DeepCopyInto ¶
func (in *PublicIPCondition) DeepCopyInto(out *PublicIPCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PublicIPConditionType ¶
type PublicIPConditionType string
const (
PublicIPAllocated PublicIPConditionType = "Allocated"
)
type PublicIPList ¶
type PublicIPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PublicIP `json:"items"` }
PublicIPList contains a list of PublicIP.
func (*PublicIPList) DeepCopy ¶
func (in *PublicIPList) DeepCopy() *PublicIPList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicIPList.
func (*PublicIPList) DeepCopyInto ¶
func (in *PublicIPList) DeepCopyInto(out *PublicIPList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PublicIPList) DeepCopyObject ¶
func (in *PublicIPList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PublicIPSpec ¶
type PublicIPSpec struct { // IPFamily is the ip family of the public ip. IPFamily corev1.IPFamily `json:"ipFamily"` // IP is the ip of the public IP. // Pointer to distinguish between unset and explicit zero. IP *IP `json:"ip,omitempty"` }
func (*PublicIPSpec) DeepCopy ¶
func (in *PublicIPSpec) DeepCopy() *PublicIPSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicIPSpec.
func (*PublicIPSpec) DeepCopyInto ¶
func (in *PublicIPSpec) DeepCopyInto(out *PublicIPSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PublicIPStatus ¶
type PublicIPStatus struct { // Conditions are the conditions of a PublicIP. Conditions []PublicIPCondition `json:"conditions,omitempty"` }
func (*PublicIPStatus) DeepCopy ¶
func (in *PublicIPStatus) DeepCopy() *PublicIPStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicIPStatus.
func (*PublicIPStatus) DeepCopyInto ¶
func (in *PublicIPStatus) DeepCopyInto(out *PublicIPStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.