Documentation ¶
Index ¶
- Variables
- type PriorityClassDie
- func (d *PriorityClassDie) APIVersion(v string) *PriorityClassDie
- func (d *PriorityClassDie) DeepCopy() *PriorityClassDie
- func (d *PriorityClassDie) DeepCopyObject() runtime.Object
- func (d *PriorityClassDie) Description(v string) *PriorityClassDie
- func (d *PriorityClassDie) DieDefaultTypeMetadata() *PriorityClassDie
- func (d *PriorityClassDie) DieDiff(opts ...cmp.Option) string
- func (d *PriorityClassDie) DieFeed(r schedulingv1.PriorityClass) *PriorityClassDie
- func (d *PriorityClassDie) DieFeedJSON(j []byte) *PriorityClassDie
- func (d *PriorityClassDie) DieFeedPtr(r *schedulingv1.PriorityClass) *PriorityClassDie
- func (d *PriorityClassDie) DieFeedRawExtension(raw runtime.RawExtension) *PriorityClassDie
- func (d *PriorityClassDie) DieFeedYAML(y []byte) *PriorityClassDie
- func (d *PriorityClassDie) DieFeedYAMLFile(name string) *PriorityClassDie
- func (d *PriorityClassDie) DieImmutable(immutable bool) *PriorityClassDie
- func (d *PriorityClassDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *PriorityClassDie) DieRelease() schedulingv1.PriorityClass
- func (d *PriorityClassDie) DieReleaseJSON() []byte
- func (d *PriorityClassDie) DieReleasePtr() *schedulingv1.PriorityClass
- func (d *PriorityClassDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *PriorityClassDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *PriorityClassDie) DieReleaseYAML() []byte
- func (d *PriorityClassDie) DieSeal() *PriorityClassDie
- func (d *PriorityClassDie) DieSealFeed(r schedulingv1.PriorityClass) *PriorityClassDie
- func (d *PriorityClassDie) DieSealFeedPtr(r *schedulingv1.PriorityClass) *PriorityClassDie
- func (d *PriorityClassDie) DieSealRelease() schedulingv1.PriorityClass
- func (d *PriorityClassDie) DieSealReleasePtr() *schedulingv1.PriorityClass
- func (d *PriorityClassDie) DieStamp(fn func(r *schedulingv1.PriorityClass)) *PriorityClassDie
- func (d *PriorityClassDie) DieStampAt(jp string, fn interface{}) *PriorityClassDie
- func (d *PriorityClassDie) DieWith(fns ...func(d *PriorityClassDie)) *PriorityClassDie
- func (d *PriorityClassDie) GetObjectKind() schema.ObjectKind
- func (d *PriorityClassDie) GlobalDefault(v bool) *PriorityClassDie
- func (d *PriorityClassDie) Kind(v string) *PriorityClassDie
- func (d *PriorityClassDie) MarshalJSON() ([]byte, error)
- func (d *PriorityClassDie) Metadata(v apismetav1.ObjectMeta) *PriorityClassDie
- func (d *PriorityClassDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *PriorityClassDie
- func (d *PriorityClassDie) PreemptionPolicy(v *corev1.PreemptionPolicy) *PriorityClassDie
- func (d *PriorityClassDie) TypeMetadata(v apismetav1.TypeMeta) *PriorityClassDie
- func (d *PriorityClassDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *PriorityClassDie
- func (d *PriorityClassDie) UnmarshalJSON(b []byte) error
- func (d *PriorityClassDie) Value(v int32) *PriorityClassDie
Constants ¶
This section is empty.
Variables ¶
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) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *PriorityClassDie) DieDefaultTypeMetadata() *PriorityClassDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "scheduling.k8s.io/v1" and "PriorityClass" respectively.
func (*PriorityClassDie) DieDiff ¶ added in v0.13.0
func (d *PriorityClassDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*PriorityClassDie) DieFeed ¶
func (d *PriorityClassDie) DieFeed(r schedulingv1.PriorityClass) *PriorityClassDie
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 ¶
func (d *PriorityClassDie) DieFeedPtr(r *schedulingv1.PriorityClass) *PriorityClassDie
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) DiePatch ¶ added in v0.13.0
func (d *PriorityClassDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*PriorityClassDie) DieRelease ¶
func (d *PriorityClassDie) DieRelease() schedulingv1.PriorityClass
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) DieSeal ¶ added in v0.13.0
func (d *PriorityClassDie) DieSeal() *PriorityClassDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*PriorityClassDie) DieSealFeed ¶ added in v0.13.0
func (d *PriorityClassDie) DieSealFeed(r schedulingv1.PriorityClass) *PriorityClassDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*PriorityClassDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *PriorityClassDie) DieSealFeedPtr(r *schedulingv1.PriorityClass) *PriorityClassDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*PriorityClassDie) DieSealRelease ¶ added in v0.13.0
func (d *PriorityClassDie) DieSealRelease() schedulingv1.PriorityClass
DieSealRelease returns the sealed resource managed by the die.
func (*PriorityClassDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *PriorityClassDie) DieSealReleasePtr() *schedulingv1.PriorityClass
DieSealReleasePtr returns the sealed resource pointer managed by the die.
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 ¶
func (d *PriorityClassDie) Kind(v string) *PriorityClassDie
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) Metadata ¶ added in v0.13.0
func (d *PriorityClassDie) Metadata(v apismetav1.ObjectMeta) *PriorityClassDie
Metadata standard object's metadata.
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) TypeMetadata ¶ added in v0.13.0
func (d *PriorityClassDie) TypeMetadata(v apismetav1.TypeMeta) *PriorityClassDie
TypeMetadata standard object's type metadata.
func (*PriorityClassDie) TypeMetadataDie ¶ added in v0.13.0
func (d *PriorityClassDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *PriorityClassDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*PriorityClassDie) UnmarshalJSON ¶
func (d *PriorityClassDie) UnmarshalJSON(b []byte) error
func (*PriorityClassDie) Value ¶
func (d *PriorityClassDie) Value(v int32) *PriorityClassDie
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.