common_types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider string

+kubebuilder:validation:Enum=aws;do;azure;gcp

const (
	CloudProviderAWS          CloudProvider = "aws"
	CloudProviderDigitalOcean CloudProvider = "digitalocean"
	CloudProviderAzure        CloudProvider = "azure"
	CloudProviderGCP          CloudProvider = "gcp"
)

type ConfigMapRef

type ConfigMapRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type ConfigRef

type ConfigRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

type CpuT

type CpuT struct {
	// +kubebuilder:validation:Pattern=[\d]+m$
	Min string `json:"min"`
	// +kubebuilder:validation:Pattern=[\d]+m$
	Max string `json:"max"`
}

func (*CpuT) DeepCopy

func (in *CpuT) DeepCopy() *CpuT

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

func (*CpuT) DeepCopyInto

func (in *CpuT) DeepCopyInto(out *CpuT)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FsType

type FsType string
const (
	Ext4 FsType = "ext4"
	Xfs  FsType = "xfs"
)

type MemoryT

type MemoryT struct {
	// +kubebuilder:validation:Pattern=[\d]+Mi$
	Min string `json:"min"`
	// +kubebuilder:validation:Pattern=[\d]+Mi$
	Max string `json:"max"`
}

type MinMaxFloat

type MinMaxFloat struct {
	// +kubebuilder:validation:Pattern="^[0-9]+([.][0-9]{1,2})?$"
	Min string `json:"min"`
	// +kubebuilder:validation:Pattern="^[0-9]+([.][0-9]{1,2})?$"
	Max string `json:"max"`
}

type MinMaxInt

type MinMaxInt struct {
	// +kubebuilder:validation:Minimum=0
	Min int `json:"min"`
	// +kubebuilder:validation:Minimum=0
	Max int `json:"max"`
}

type MsvcRef

type MsvcRef struct {
	metav1.TypeMeta `json:",inline"`
	Name            string `json:"name"`
	Namespace       string `json:"namespace"`
}

type Output

type Output struct {
	SecretRef *SecretRef `json:"secretRef,omitempty"`
	ConfigRef *ConfigRef `json:"configRef,omitempty"`
}

func (*Output) DeepCopy

func (in *Output) DeepCopy() *Output

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

func (*Output) DeepCopyInto

func (in *Output) DeepCopyInto(out *Output)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Resources

type Resources struct {
	Cpu    CpuT    `json:"cpu"`
	Memory MemoryT `json:"memory"`

	Storage *Storage `json:"storage,omitempty"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretKeyRef

type SecretKeyRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
	Key       string `json:"key"`
}

type SecretRef

type SecretRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

type Storage

type Storage struct {
	// +kubebuilder:validation:Pattern=[\d]+(M|G)i$
	Size string `json:"size"`

	// +kubebuilder:validation:Optional
	StorageClass string `json:"storageClass,omitempty"`
}

func (Storage) ToInt

func (s Storage) ToInt() (int64, error)

Jump to

Keyboard shortcuts

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