v1beta1

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: 7 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the resources v1beta1 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: "v1beta1"}

	// 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) ConvertFrom

func (dst *ResourceLimiter) ConvertFrom(srcRaw conversion.Hub) error

Convert reversely for backward compatibility

func (*ResourceLimiter) ConvertTo

func (src *ResourceLimiter) ConvertTo(dstRaw conversion.Hub) error

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.

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 ResourceLimiterNamespace

type ResourceLimiterNamespace string

type ResourceLimiterQuotas

type ResourceLimiterQuotas struct {
	Namespace   string `json:"namespace"`
	CpuRequests string `json:"cpu_requests,omitempty"`
	MemRequests string `json:"mem_requests,omitempty"`
	CpuLimits   string `json:"cpu_limits,omitempty"`
	MemLimits   string `json:"mem_limits,omitempty"`
}

func (*ResourceLimiterQuotas) DeepCopy

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

func (*ResourceLimiterQuotas) DeepCopyInto

func (in *ResourceLimiterQuotas) DeepCopyInto(out *ResourceLimiterQuotas)

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

type ResourceLimiterSpec

type ResourceLimiterSpec struct {
	Targets []ResourceLimiterNamespace     `json:"targets,omitempty"`
	Types   map[ResourceLimiterType]string `json:"types,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 map[string]ResourceLimiterQuotas `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.

type ResourceLimiterType

type ResourceLimiterType string

Jump to

Keyboard shortcuts

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