v1

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PriorityClassBlank = (&PriorityClassDie{}).DieFeed(schedulingv1.PriorityClass{})

Functions

This section is empty.

Types

type PriorityClassDie

type PriorityClassDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*PriorityClassDie) APIVersion

func (d *PriorityClassDie) APIVersion(v string) *PriorityClassDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*PriorityClassDie) DeepCopy

func (d *PriorityClassDie) DeepCopy() *PriorityClassDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*PriorityClassDie) DeepCopyObject

func (d *PriorityClassDie) DeepCopyObject() runtime.Object

func (*PriorityClassDie) Description

func (d *PriorityClassDie) Description(v string) *PriorityClassDie

description is an arbitrary string that usually provides guidelines on

when this priority class should be used.

func (*PriorityClassDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PriorityClassDie) DieFeedJSON

func (d *PriorityClassDie) DieFeedJSON(j []byte) *PriorityClassDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*PriorityClassDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*PriorityClassDie) DieFeedRawExtension

func (d *PriorityClassDie) DieFeedRawExtension(raw runtime.RawExtension) *PriorityClassDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*PriorityClassDie) DieFeedYAML

func (d *PriorityClassDie) DieFeedYAML(y []byte) *PriorityClassDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*PriorityClassDie) DieFeedYAMLFile

func (d *PriorityClassDie) DieFeedYAMLFile(name string) *PriorityClassDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*PriorityClassDie) DieImmutable

func (d *PriorityClassDie) DieImmutable(immutable bool) *PriorityClassDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*PriorityClassDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PriorityClassDie) DieReleaseJSON

func (d *PriorityClassDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*PriorityClassDie) DieReleasePtr

func (d *PriorityClassDie) DieReleasePtr() *schedulingv1.PriorityClass

DieReleasePtr returns a pointer to the resource managed by the die.

func (*PriorityClassDie) DieReleaseRawExtension

func (d *PriorityClassDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*PriorityClassDie) DieReleaseUnstructured

func (d *PriorityClassDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*PriorityClassDie) DieReleaseYAML

func (d *PriorityClassDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*PriorityClassDie) DieStamp

func (d *PriorityClassDie) DieStamp(fn func(r *schedulingv1.PriorityClass)) *PriorityClassDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*PriorityClassDie) DieStampAt

func (d *PriorityClassDie) DieStampAt(jp string, fn interface{}) *PriorityClassDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*PriorityClassDie) DieWith

func (d *PriorityClassDie) DieWith(fns ...func(d *PriorityClassDie)) *PriorityClassDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*PriorityClassDie) GetObjectKind

func (d *PriorityClassDie) GetObjectKind() schema.ObjectKind

func (*PriorityClassDie) GlobalDefault

func (d *PriorityClassDie) GlobalDefault(v bool) *PriorityClassDie

globalDefault specifies whether this PriorityClass should be considered as

the default priority for pods that do not have any priority class.

Only one PriorityClass can be marked as `globalDefault`. However, if more than

one PriorityClasses exists with their `globalDefault` field set to true,

the smallest value of such global default PriorityClasses will be used as the default priority.

func (*PriorityClassDie) Kind

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*PriorityClassDie) MarshalJSON

func (d *PriorityClassDie) MarshalJSON() ([]byte, error)

func (*PriorityClassDie) MetadataDie

func (d *PriorityClassDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *PriorityClassDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*PriorityClassDie) PreemptionPolicy

func (d *PriorityClassDie) PreemptionPolicy(v *corev1.PreemptionPolicy) *PriorityClassDie

preemptionPolicy is the Policy for preempting pods with lower priority.

One of Never, PreemptLowerPriority.

Defaults to PreemptLowerPriority if unset.

func (*PriorityClassDie) UnmarshalJSON

func (d *PriorityClassDie) UnmarshalJSON(b []byte) error

func (*PriorityClassDie) Value

value represents the integer value of this priority class. This is the actual priority that pods

receive when they have the name of this class in their pod spec.

Jump to

Keyboard shortcuts

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