types

package
v0.0.0-...-3effe52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 2 Imported by: 2

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

func (in *Resource) DeepCopy() *Resource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL