Documentation
¶
Overview ¶
Package ipam is the internal version of the API.
Package ipam contains API Schema definitions for the ipam internal API group +groupName=ipam.api.onmetal.de
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "ipam.api.onmetal.de", Version: runtime.APIVersionInternal} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(name string) schema.GroupResource
Types ¶
type Prefix ¶
type Prefix struct {
metav1.TypeMeta
metav1.ObjectMeta
Spec PrefixSpec
Status PrefixStatus
}
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
metav1.ObjectMeta
Spec PrefixAllocationSpec
Status PrefixAllocationStatus
}
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
metav1.ListMeta
Items []PrefixAllocation
}
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" )
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
// Prefix is the prefix to allocate for this Prefix.
Prefix *commonv1alpha1.IPPrefix
// PrefixLength is the length of prefix to allocate for this Prefix.
PrefixLength int32
// PrefixRef references the prefix to allocate from.
PrefixRef *corev1.LocalObjectReference
// PrefixSelector selects the prefix to allocate from.
PrefixSelector *metav1.LabelSelector
}
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
// LastPhaseTransitionTime is the last time the Phase changed values.
LastPhaseTransitionTime *metav1.Time
// Phase is the phase of the PrefixAllocation.
Phase PrefixAllocationPhase
}
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 ¶
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
// Prefix is the prefix to allocate for this Prefix.
Prefix *commonv1alpha1.IPPrefix
// PrefixLength is the length of prefix to allocate for this Prefix.
PrefixLength int32
// 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
// ParentSelector is the LabelSelector to use for determining the parent for this Prefix.
ParentSelector *metav1.LabelSelector
}
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.
func (*PrefixSpec) IsRoot ¶
func (s *PrefixSpec) IsRoot() bool
type PrefixStatus ¶
type PrefixStatus struct {
// Phase is the PrefixPhase of the Prefix.
Phase PrefixPhase
// LastPhaseTransitionTime is the last time the Phase changed values.
LastPhaseTransitionTime *metav1.Time
// Used is a list of used prefixes.
Used []commonv1alpha1.IPPrefix
}
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
Spec PrefixSpec
}
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.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package v1alpha1 is the v1alpha1 version of the API.
|
Package v1alpha1 is the v1alpha1 version of the API. |