Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 contains API Schema definitions for the network v1alpha1 API group +kubebuilder:object:generate=true +groupName=ipam.api.onmetal.de
Index ¶
- Constants
- Variables
- func Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in *ipam.PrefixAllocationList, out *PrefixAllocationList, s conversion.Scope) error
- func Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in *ipam.PrefixAllocationSpec, out *PrefixAllocationSpec, s conversion.Scope) error
- func Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(in *ipam.PrefixAllocationStatus, out *PrefixAllocationStatus, ...) error
- func Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in *ipam.PrefixAllocation, out *PrefixAllocation, s conversion.Scope) error
- func Convert_ipam_PrefixList_To_v1alpha1_PrefixList(in *ipam.PrefixList, out *PrefixList, s conversion.Scope) error
- func Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in *ipam.PrefixSpec, out *PrefixSpec, s conversion.Scope) error
- func Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(in *ipam.PrefixStatus, out *PrefixStatus, s conversion.Scope) error
- func Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in *ipam.PrefixTemplateSpec, out *PrefixTemplateSpec, s conversion.Scope) error
- func Convert_ipam_Prefix_To_v1alpha1_Prefix(in *ipam.Prefix, out *Prefix, s conversion.Scope) error
- func Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in *PrefixAllocationList, out *ipam.PrefixAllocationList, s conversion.Scope) error
- func Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in *PrefixAllocationSpec, out *ipam.PrefixAllocationSpec, s conversion.Scope) error
- func Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(in *PrefixAllocationStatus, out *ipam.PrefixAllocationStatus, ...) error
- func Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in *PrefixAllocation, out *ipam.PrefixAllocation, s conversion.Scope) error
- func Convert_v1alpha1_PrefixList_To_ipam_PrefixList(in *PrefixList, out *ipam.PrefixList, s conversion.Scope) error
- func Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in *PrefixSpec, out *ipam.PrefixSpec, s conversion.Scope) error
- func Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in *PrefixStatus, out *ipam.PrefixStatus, s conversion.Scope) error
- func Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in *PrefixTemplateSpec, out *ipam.PrefixTemplateSpec, s conversion.Scope) error
- func Convert_v1alpha1_Prefix_To_ipam_Prefix(in *Prefix, out *ipam.Prefix, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_PrefixAllocationSpec(spec *PrefixAllocationSpec)
- func SetDefaults_PrefixSpec(spec *PrefixSpec)
- func SetObjectDefaults_Prefix(in *Prefix)
- func SetObjectDefaults_PrefixAllocation(in *PrefixAllocation)
- func SetObjectDefaults_PrefixAllocationList(in *PrefixAllocationList)
- func SetObjectDefaults_PrefixList(in *PrefixList)
- type Prefix
- type PrefixAllocation
- type PrefixAllocationList
- type PrefixAllocationPhase
- type PrefixAllocationSpec
- type PrefixAllocationStatus
- type PrefixList
- type PrefixPhase
- type PrefixSpec
- type PrefixStatus
- type PrefixTemplateSpec
Constants ¶
const (
PrefixKind = "Prefix"
)
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "ipam.api.onmetal.de", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList ¶
func Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList(in *ipam.PrefixAllocationList, out *PrefixAllocationList, s conversion.Scope) error
Convert_ipam_PrefixAllocationList_To_v1alpha1_PrefixAllocationList is an autogenerated conversion function.
func Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec ¶
func Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec(in *ipam.PrefixAllocationSpec, out *PrefixAllocationSpec, s conversion.Scope) error
Convert_ipam_PrefixAllocationSpec_To_v1alpha1_PrefixAllocationSpec is an autogenerated conversion function.
func Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus ¶
func Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus(in *ipam.PrefixAllocationStatus, out *PrefixAllocationStatus, s conversion.Scope) error
Convert_ipam_PrefixAllocationStatus_To_v1alpha1_PrefixAllocationStatus is an autogenerated conversion function.
func Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation ¶
func Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation(in *ipam.PrefixAllocation, out *PrefixAllocation, s conversion.Scope) error
Convert_ipam_PrefixAllocation_To_v1alpha1_PrefixAllocation is an autogenerated conversion function.
func Convert_ipam_PrefixList_To_v1alpha1_PrefixList ¶
func Convert_ipam_PrefixList_To_v1alpha1_PrefixList(in *ipam.PrefixList, out *PrefixList, s conversion.Scope) error
Convert_ipam_PrefixList_To_v1alpha1_PrefixList is an autogenerated conversion function.
func Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec ¶
func Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec(in *ipam.PrefixSpec, out *PrefixSpec, s conversion.Scope) error
Convert_ipam_PrefixSpec_To_v1alpha1_PrefixSpec is an autogenerated conversion function.
func Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus ¶
func Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus(in *ipam.PrefixStatus, out *PrefixStatus, s conversion.Scope) error
Convert_ipam_PrefixStatus_To_v1alpha1_PrefixStatus is an autogenerated conversion function.
func Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec ¶
func Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec(in *ipam.PrefixTemplateSpec, out *PrefixTemplateSpec, s conversion.Scope) error
Convert_ipam_PrefixTemplateSpec_To_v1alpha1_PrefixTemplateSpec is an autogenerated conversion function.
func Convert_ipam_Prefix_To_v1alpha1_Prefix ¶
Convert_ipam_Prefix_To_v1alpha1_Prefix is an autogenerated conversion function.
func Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList ¶
func Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList(in *PrefixAllocationList, out *ipam.PrefixAllocationList, s conversion.Scope) error
Convert_v1alpha1_PrefixAllocationList_To_ipam_PrefixAllocationList is an autogenerated conversion function.
func Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec ¶
func Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec(in *PrefixAllocationSpec, out *ipam.PrefixAllocationSpec, s conversion.Scope) error
Convert_v1alpha1_PrefixAllocationSpec_To_ipam_PrefixAllocationSpec is an autogenerated conversion function.
func Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus ¶
func Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus(in *PrefixAllocationStatus, out *ipam.PrefixAllocationStatus, s conversion.Scope) error
Convert_v1alpha1_PrefixAllocationStatus_To_ipam_PrefixAllocationStatus is an autogenerated conversion function.
func Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation ¶
func Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation(in *PrefixAllocation, out *ipam.PrefixAllocation, s conversion.Scope) error
Convert_v1alpha1_PrefixAllocation_To_ipam_PrefixAllocation is an autogenerated conversion function.
func Convert_v1alpha1_PrefixList_To_ipam_PrefixList ¶
func Convert_v1alpha1_PrefixList_To_ipam_PrefixList(in *PrefixList, out *ipam.PrefixList, s conversion.Scope) error
Convert_v1alpha1_PrefixList_To_ipam_PrefixList is an autogenerated conversion function.
func Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec ¶
func Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec(in *PrefixSpec, out *ipam.PrefixSpec, s conversion.Scope) error
Convert_v1alpha1_PrefixSpec_To_ipam_PrefixSpec is an autogenerated conversion function.
func Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus ¶
func Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus(in *PrefixStatus, out *ipam.PrefixStatus, s conversion.Scope) error
Convert_v1alpha1_PrefixStatus_To_ipam_PrefixStatus is an autogenerated conversion function.
func Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec ¶
func Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec(in *PrefixTemplateSpec, out *ipam.PrefixTemplateSpec, s conversion.Scope) error
Convert_v1alpha1_PrefixTemplateSpec_To_ipam_PrefixTemplateSpec is an autogenerated conversion function.
func Convert_v1alpha1_Prefix_To_ipam_Prefix ¶
Convert_v1alpha1_Prefix_To_ipam_Prefix is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
func SetDefaults_PrefixAllocationSpec ¶
func SetDefaults_PrefixAllocationSpec(spec *PrefixAllocationSpec)
func SetDefaults_PrefixSpec ¶
func SetDefaults_PrefixSpec(spec *PrefixSpec)
func SetObjectDefaults_Prefix ¶
func SetObjectDefaults_Prefix(in *Prefix)
func SetObjectDefaults_PrefixAllocation ¶
func SetObjectDefaults_PrefixAllocation(in *PrefixAllocation)
func SetObjectDefaults_PrefixAllocationList ¶
func SetObjectDefaults_PrefixAllocationList(in *PrefixAllocationList)
func SetObjectDefaults_PrefixList ¶
func SetObjectDefaults_PrefixList(in *PrefixList)
Types ¶
type Prefix ¶
type Prefix struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PrefixSpec `json:"spec,omitempty"` Status PrefixStatus `json:"status,omitempty"` }
Prefix is the Schema for the prefixes API
func (*Prefix) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prefix.
func (*Prefix) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Prefix) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PrefixAllocation ¶
type PrefixAllocation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PrefixAllocationSpec `json:"spec,omitempty"` Status PrefixAllocationStatus `json:"status,omitempty"` }
PrefixAllocation is the Schema for the prefixallocations API
func (*PrefixAllocation) DeepCopy ¶
func (in *PrefixAllocation) DeepCopy() *PrefixAllocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixAllocation.
func (*PrefixAllocation) DeepCopyInto ¶
func (in *PrefixAllocation) DeepCopyInto(out *PrefixAllocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrefixAllocation) DeepCopyObject ¶
func (in *PrefixAllocation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PrefixAllocationList ¶
type PrefixAllocationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PrefixAllocation `json:"items"` }
PrefixAllocationList contains a list of PrefixAllocation
func (*PrefixAllocationList) DeepCopy ¶
func (in *PrefixAllocationList) DeepCopy() *PrefixAllocationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixAllocationList.
func (*PrefixAllocationList) DeepCopyInto ¶
func (in *PrefixAllocationList) DeepCopyInto(out *PrefixAllocationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrefixAllocationList) DeepCopyObject ¶
func (in *PrefixAllocationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PrefixAllocationPhase ¶
type PrefixAllocationPhase string
PrefixAllocationPhase is a phase a PrefixAllocation can be in.
const ( // PrefixAllocationPhasePending marks a PrefixAllocation as waiting for allocation. PrefixAllocationPhasePending PrefixAllocationPhase = "Pending" // PrefixAllocationPhaseAllocated marks a PrefixAllocation as allocated by a Prefix. PrefixAllocationPhaseAllocated PrefixAllocationPhase = "Allocated" // PrefixAllocationPhaseFailed marks a PrefixAllocation as failed. PrefixAllocationPhaseFailed PrefixAllocationPhase = "Failed" )
func (PrefixAllocationPhase) IsTerminal ¶
func (p PrefixAllocationPhase) IsTerminal() bool
type PrefixAllocationSpec ¶
type PrefixAllocationSpec struct { // IPFamily is the IPFamily of the prefix. // If unset but Prefix is set, this can be inferred. IPFamily corev1.IPFamily `json:"ipFamily,omitempty"` // Prefix is the prefix to allocate for this Prefix. Prefix *commonv1alpha1.IPPrefix `json:"prefix,omitempty"` // PrefixLength is the length of prefix to allocate for this Prefix. PrefixLength int32 `json:"prefixLength,omitempty"` // PrefixRef references the prefix to allocate from. PrefixRef *corev1.LocalObjectReference `json:"prefixRef,omitempty"` // PrefixSelector selects the prefix to allocate from. PrefixSelector *metav1.LabelSelector `json:"prefixSelector,omitempty"` }
PrefixAllocationSpec defines the desired state of PrefixAllocation
func (*PrefixAllocationSpec) DeepCopy ¶
func (in *PrefixAllocationSpec) DeepCopy() *PrefixAllocationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixAllocationSpec.
func (*PrefixAllocationSpec) DeepCopyInto ¶
func (in *PrefixAllocationSpec) DeepCopyInto(out *PrefixAllocationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrefixAllocationStatus ¶
type PrefixAllocationStatus struct { // Prefix is the allocated prefix, if any Prefix *commonv1alpha1.IPPrefix `json:"prefix,omitempty"` // Phase is the phase of the PrefixAllocation. Phase PrefixAllocationPhase `json:"phase,omitempty"` // LastPhaseTransitionTime is the last time the Phase changed values. LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty"` }
PrefixAllocationStatus is the status of a PrefixAllocation.
func (*PrefixAllocationStatus) DeepCopy ¶
func (in *PrefixAllocationStatus) DeepCopy() *PrefixAllocationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixAllocationStatus.
func (*PrefixAllocationStatus) DeepCopyInto ¶
func (in *PrefixAllocationStatus) DeepCopyInto(out *PrefixAllocationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrefixList ¶
type PrefixList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Prefix `json:"items"` }
PrefixList contains a list of Prefix
func (*PrefixList) DeepCopy ¶
func (in *PrefixList) DeepCopy() *PrefixList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixList.
func (*PrefixList) DeepCopyInto ¶
func (in *PrefixList) DeepCopyInto(out *PrefixList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrefixList) DeepCopyObject ¶
func (in *PrefixList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PrefixPhase ¶
type PrefixPhase string
PrefixPhase is a phase a Prefix can be in.
const ( // PrefixPhasePending marks a prefix as waiting for allocation. PrefixPhasePending PrefixPhase = "Pending" // PrefixPhaseAllocated marks a prefix as allocated. PrefixPhaseAllocated PrefixPhase = "Allocated" )
type PrefixSpec ¶
type PrefixSpec struct { // IPFamily is the IPFamily of the prefix. // If unset but Prefix is set, this can be inferred. IPFamily corev1.IPFamily `json:"ipFamily,omitempty"` // Prefix is the prefix to allocate for this Prefix. Prefix *commonv1alpha1.IPPrefix `json:"prefix,omitempty"` // PrefixLength is the length of prefix to allocate for this Prefix. PrefixLength int32 `json:"prefixLength,omitempty"` // ParentRef references the parent to allocate the Prefix from. // If ParentRef and ParentSelector is empty, the Prefix is considered a root prefix and thus // allocated by itself. ParentRef *corev1.LocalObjectReference `json:"parentRef,omitempty"` // ParentSelector is the LabelSelector to use for determining the parent for this Prefix. ParentSelector *metav1.LabelSelector `json:"parentSelector,omitempty"` }
PrefixSpec defines the desired state of Prefix
func (*PrefixSpec) DeepCopy ¶
func (in *PrefixSpec) DeepCopy() *PrefixSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixSpec.
func (*PrefixSpec) DeepCopyInto ¶
func (in *PrefixSpec) DeepCopyInto(out *PrefixSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrefixStatus ¶
type PrefixStatus struct { // Phase is the PrefixPhase of the Prefix. Phase PrefixPhase `json:"phase,omitempty"` // LastPhaseTransitionTime is the last time the Phase changed values. LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty"` // Used is a list of used prefixes. Used []commonv1alpha1.IPPrefix `json:"used,omitempty"` }
PrefixStatus defines the observed state of Prefix
func (*PrefixStatus) DeepCopy ¶
func (in *PrefixStatus) DeepCopy() *PrefixStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixStatus.
func (*PrefixStatus) DeepCopyInto ¶
func (in *PrefixStatus) DeepCopyInto(out *PrefixStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrefixTemplateSpec ¶
type PrefixTemplateSpec struct { metav1.ObjectMeta `json:"metadata,omitempty"` Spec PrefixSpec `json:"spec,omitempty"` }
func (*PrefixTemplateSpec) DeepCopy ¶
func (in *PrefixTemplateSpec) DeepCopy() *PrefixTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrefixTemplateSpec.
func (*PrefixTemplateSpec) DeepCopyInto ¶
func (in *PrefixTemplateSpec) DeepCopyInto(out *PrefixTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.