v1beta2

package
v1.0.0-beta.2-patch Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1beta2 contains API Schema definitions for the resources v1beta2 API group +kubebuilder:object:generate=true +groupName=resources.resourcelimiter.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "resources.resourcelimiter.io", Version: "v1beta2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ResourceLimiter

type ResourceLimiter struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ResourceLimiterSpec   `json:"spec,omitempty"`
	Status ResourceLimiterStatus `json:"status,omitempty"`
}

ResourceLimiter is the Schema for the resourcelimiters API

func (*ResourceLimiter) DeepCopy

func (in *ResourceLimiter) DeepCopy() *ResourceLimiter

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

func (*ResourceLimiter) DeepCopyInto

func (in *ResourceLimiter) DeepCopyInto(out *ResourceLimiter)

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

func (*ResourceLimiter) DeepCopyObject

func (in *ResourceLimiter) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ResourceLimiter) Hub

func (*ResourceLimiter) Hub()

Hub marks this type as a conversion hub.

type ResourceLimiterList

type ResourceLimiterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceLimiter `json:"items"`
}

ResourceLimiterList contains a list of ResourceLimiter

func (*ResourceLimiterList) DeepCopy

func (in *ResourceLimiterList) DeepCopy() *ResourceLimiterList

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

func (*ResourceLimiterList) DeepCopyInto

func (in *ResourceLimiterList) DeepCopyInto(out *ResourceLimiterList)

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

func (*ResourceLimiterList) DeepCopyObject

func (in *ResourceLimiterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceLimiterQuota

type ResourceLimiterQuota struct {
	NamespaceName string `json:"name"`
	CpuRequest    string `json:"cpu_requests,omitempty"`
	MemRequest    string `json:"mem_requests,omitempty"`
	CpuLimit      string `json:"cpu_limits,omitempty"`
	MemLimit      string `json:"mem_limits,omitempty"`
}

func (*ResourceLimiterQuota) DeepCopy

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

func (*ResourceLimiterQuota) DeepCopyInto

func (in *ResourceLimiterQuota) DeepCopyInto(out *ResourceLimiterQuota)

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

type ResourceLimiterSpec

type ResourceLimiterSpec struct {
	Quotas  []ResourceLimiterQuota `json:"targets,omitempty"`
	Applied bool                   `json:"applied,omitempty"`
}

ResourceLimiterSpec defines the desired state of ResourceLimiter

func (*ResourceLimiterSpec) DeepCopy

func (in *ResourceLimiterSpec) DeepCopy() *ResourceLimiterSpec

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

func (*ResourceLimiterSpec) DeepCopyInto

func (in *ResourceLimiterSpec) DeepCopyInto(out *ResourceLimiterSpec)

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

type ResourceLimiterStatus

type ResourceLimiterStatus struct {
	State  string                 `json:"state"`
	Quotas []ResourceLimiterQuota `json:"quotas"`
}

ResourceLimiterStatus defines the observed state of ResourceLimiter

func (*ResourceLimiterStatus) DeepCopy

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

func (*ResourceLimiterStatus) DeepCopyInto

func (in *ResourceLimiterStatus) DeepCopyInto(out *ResourceLimiterStatus)

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

Jump to

Keyboard shortcuts

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