v1alpha1

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// GroupName is the group name used in this package.
	GroupName = "quota.codeflare.dev"

	// GroupVersion is the version of scheduling group
	GroupVersion = "v1alpha1"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}

SchemeGroupVersion is the group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type Child

type Child struct {
	Name      string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
	Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
	Quotas    Quota  `json:"quotas,omitempty" protobuf:"bytes,4,opt,name=quotas"`
	Path      string `json:"path,omitempty" protobuf:"bytes,5,opt,name=path"`
}

Child is the spec for a QuotaSubtree resource

func (*Child) DeepCopy

func (in *Child) DeepCopy() *Child

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

func (*Child) DeepCopyInto

func (in *Child) DeepCopyInto(out *Child)

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

type Quota

type Quota struct {
	Disabled  bool         `json:"disabled,omitempty" protobuf:"bytes,1,opt,name=disabled"`
	Requests  ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"`
	HardLimit bool         `json:"hardLimit,omitempty" protobuf:"bytes,4,opt,name=hardLimit"`
}

Quota is the spec for a QuotaSubtree resource

func (*Quota) DeepCopy

func (in *Quota) DeepCopy() *Quota

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

func (*Quota) DeepCopyInto

func (in *Quota) DeepCopyInto(out *Quota)

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

type QuotaSubtree

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

	Spec   QuotaSubtreeSpec   `json:"spec"`
	Status QuotaSubtreeStatus `json:"status,omitempty"`
}

QuotaSubtree is a specification for a quota subtree resource

func (*QuotaSubtree) DeepCopy

func (in *QuotaSubtree) DeepCopy() *QuotaSubtree

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

func (*QuotaSubtree) DeepCopyInto

func (in *QuotaSubtree) DeepCopyInto(out *QuotaSubtree)

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

func (*QuotaSubtree) DeepCopyObject

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

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

type QuotaSubtreeList

type QuotaSubtreeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []QuotaSubtree `json:"items"`
}

QuotaSubtreeList is a collection of resource plan

func (*QuotaSubtreeList) DeepCopy

func (in *QuotaSubtreeList) DeepCopy() *QuotaSubtreeList

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

func (*QuotaSubtreeList) DeepCopyInto

func (in *QuotaSubtreeList) DeepCopyInto(out *QuotaSubtreeList)

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

func (*QuotaSubtreeList) DeepCopyObject

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

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

type QuotaSubtreeSpec

type QuotaSubtreeSpec struct {
	Parent          string  `json:"parent,omitempty" protobuf:"bytes,1,opt,name=parent"`
	ParentNamespace string  `json:"parentNamespace,omitempty" protobuf:"bytes,2,opt,name=parentNamespace"`
	Children        []Child `json:"children,omitempty" protobuf:"bytes,3,opt,name=children"`
}

QuotaSubtreeSpec is the spec for a resource plan

func (*QuotaSubtreeSpec) DeepCopy

func (in *QuotaSubtreeSpec) DeepCopy() *QuotaSubtreeSpec

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

func (*QuotaSubtreeSpec) DeepCopyInto

func (in *QuotaSubtreeSpec) DeepCopyInto(out *QuotaSubtreeSpec)

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

type QuotaSubtreeStatus

type QuotaSubtreeStatus struct {
	TotalAllocation ResourceAllocation   `json:"totalAllocation,omitempty protobuf:"bytes,1,opt,name=totalAllocation"`
	Children        []ResourceAllocation `json:"children,omitempty protobuf:"bytes,2,opt,name=children"`
}

QuotaSubtreeStatus is the status for a QuotaSubtree resource

func (*QuotaSubtreeStatus) DeepCopy

func (in *QuotaSubtreeStatus) DeepCopy() *QuotaSubtreeStatus

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

func (*QuotaSubtreeStatus) DeepCopyInto

func (in *QuotaSubtreeStatus) DeepCopyInto(out *QuotaSubtreeStatus)

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

type ResourceAllocation

type ResourceAllocation struct {
	Name      string                   `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
	Namespace string                   `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"`
	Path      string                   `json:"path,omitempty" protobuf:"bytes,3,opt,name=path"`
	Allocated ResourceAllocationStatus `json:"allocated,omitempty" protobuf:"bytes,5,opt,name=allocated"`
}

ResourceAllocation is the spec for the child status

func (*ResourceAllocation) DeepCopy

func (in *ResourceAllocation) DeepCopy() *ResourceAllocation

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

func (*ResourceAllocation) DeepCopyInto

func (in *ResourceAllocation) DeepCopyInto(out *ResourceAllocation)

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

type ResourceAllocationStatus

type ResourceAllocationStatus struct {
	Requests map[string]string `json:"requests,omitempty" protobuf:"bytes,2,opt,name=requests"`
}

ResourceAllocationStatus is the spec for the child resource usage

func (*ResourceAllocationStatus) DeepCopy

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

func (*ResourceAllocationStatus) DeepCopyInto

func (in *ResourceAllocationStatus) DeepCopyInto(out *ResourceAllocationStatus)

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

type ResourceList

type ResourceList map[ResourceName]resource.Quantity

func (ResourceList) DeepCopy

func (in ResourceList) DeepCopy() ResourceList

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

func (ResourceList) DeepCopyInto

func (in ResourceList) DeepCopyInto(out *ResourceList)

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

type ResourceName

type ResourceName string

Jump to

Keyboard shortcuts

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