Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUResource ¶
type CPUResource struct { // +kubebuilder:validation:Pattern=[\d]+m$ Min string `json:"min"` // +kubebuilder:validation:Pattern=[\d]+m$ Max string `json:"max"` }
+kubebuilder:object:generate=true
func (*CPUResource) DeepCopy ¶
func (in *CPUResource) DeepCopy() *CPUResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CPUResource.
func (*CPUResource) DeepCopyInto ¶
func (in *CPUResource) DeepCopyInto(out *CPUResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemoryResource ¶
type MemoryResource struct { // +kubebuilder:validation:Pattern=[\d]+Mi$ Min string `json:"min"` // +kubebuilder:validation:Pattern=[\d]+Mi$ Max string `json:"max"` }
+kubebuilder:object:generate=true
func (*MemoryResource) DeepCopy ¶
func (in *MemoryResource) DeepCopy() *MemoryResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryResource.
func (*MemoryResource) DeepCopyInto ¶
func (in *MemoryResource) DeepCopyInto(out *MemoryResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Resource ¶
type Resource struct { Cpu *CPUResource `json:"cpu,omitempty"` Memory *MemoryResource `json:"memory,omitempty"` }
+kubebuilder:object:generate=true
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceWithStorage ¶
type ResourceWithStorage struct { Cpu *CPUResource `json:"cpu,omitempty"` Memory *MemoryResource `json:"memory,omitempty"` Storage *Storage `json:"storage,omitempty"` }
+kubebuilder:object:generate=true
func (*ResourceWithStorage) DeepCopy ¶
func (in *ResourceWithStorage) DeepCopy() *ResourceWithStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceWithStorage.
func (*ResourceWithStorage) DeepCopyInto ¶
func (in *ResourceWithStorage) DeepCopyInto(out *ResourceWithStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Storage ¶
type Storage struct { Size StorageSize `json:"size"` // +kubebuilder:validation:Optional StorageClass string `json:"storageClass,omitempty"` }
type StorageSize ¶
type StorageSize string
+kubebuilder:validation:Pattern=[\d]+(M|G)i$
func (StorageSize) ToInt ¶
func (s StorageSize) ToInt() (int64, error)