Documentation ¶
Index ¶
- Variables
- type ClusterPodConventionDie
- func (d *ClusterPodConventionDie) APIVersion(v string) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DeepCopy() *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DeepCopyObject() runtime.Object
- func (d *ClusterPodConventionDie) DieFeed(r conventionsv1alpha1.ClusterPodConvention) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieFeedJSON(j []byte) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConvention) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieFeedYAML(y []byte) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieFeedYAMLFile(name string) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieImmutable(immutable bool) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieRelease() conventionsv1alpha1.ClusterPodConvention
- func (d *ClusterPodConventionDie) DieReleaseJSON() []byte
- func (d *ClusterPodConventionDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConvention
- func (d *ClusterPodConventionDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ClusterPodConventionDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *ClusterPodConventionDie) DieReleaseYAML() []byte
- func (d *ClusterPodConventionDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConvention)) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) DieWith(fns ...func(d *ClusterPodConventionDie)) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) GetObjectKind() schema.ObjectKind
- func (d *ClusterPodConventionDie) Kind(v string) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) MarshalJSON() ([]byte, error)
- func (d *ClusterPodConventionDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) Spec(v conventionsv1alpha1.ClusterPodConventionSpec) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) SpecDie(fn func(d *ClusterPodConventionSpecDie)) *ClusterPodConventionDie
- func (d *ClusterPodConventionDie) UnmarshalJSON(b []byte) error
- type ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DeepCopy() *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieFeed(r conventionsv1alpha1.ClusterPodConventionSpec) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieFeedJSON(j []byte) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConventionSpec) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieFeedYAML(y []byte) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieFeedYAMLFile(name string) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieImmutable(immutable bool) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieRelease() conventionsv1alpha1.ClusterPodConventionSpec
- func (d *ClusterPodConventionSpecDie) DieReleaseJSON() []byte
- func (d *ClusterPodConventionSpecDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConventionSpec
- func (d *ClusterPodConventionSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ClusterPodConventionSpecDie) DieReleaseYAML() []byte
- func (d *ClusterPodConventionSpecDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConventionSpec)) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) DieWith(fns ...func(d *ClusterPodConventionSpecDie)) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) Priority(v conventionsv1alpha1.PriorityLevel) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) SelectorTarget(v conventionsv1alpha1.SelectorTargetSource) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) Selectors(v ...metav1.LabelSelector) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) SelectorsDie(selectors ...*diemetav1.LabelSelectorDie) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) Webhook(v *conventionsv1alpha1.ClusterPodConventionWebhook) *ClusterPodConventionSpecDie
- func (d *ClusterPodConventionSpecDie) WebookDie(fn func(d *ClusterPodConventionWebhookDie)) *ClusterPodConventionSpecDie
- type ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DeepCopy() *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieFeed(r conventionsv1alpha1.ClusterPodConventionWebhookCertificate) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieFeedJSON(j []byte) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConventionWebhookCertificate) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieFeedYAML(y []byte) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieFeedYAMLFile(name string) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieImmutable(immutable bool) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieRelease() conventionsv1alpha1.ClusterPodConventionWebhookCertificate
- func (d *ClusterPodConventionWebhookCertificateDie) DieReleaseJSON() []byte
- func (d *ClusterPodConventionWebhookCertificateDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConventionWebhookCertificate
- func (d *ClusterPodConventionWebhookCertificateDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ClusterPodConventionWebhookCertificateDie) DieReleaseYAML() []byte
- func (d *ClusterPodConventionWebhookCertificateDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConventionWebhookCertificate)) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) DieWith(fns ...func(d *ClusterPodConventionWebhookCertificateDie)) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) Name(v string) *ClusterPodConventionWebhookCertificateDie
- func (d *ClusterPodConventionWebhookCertificateDie) Namespace(v string) *ClusterPodConventionWebhookCertificateDie
- type ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) Certificate(v *conventionsv1alpha1.ClusterPodConventionWebhookCertificate) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) CertificateDie(fn func(d *ClusterPodConventionWebhookCertificateDie)) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) ClientConfig(v admissionregistrationv1.WebhookClientConfig) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) ClientConfigDie(fn func(d *dieadmissionregistrationv1.WebhookClientConfigDie)) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DeepCopy() *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieFeed(r conventionsv1alpha1.ClusterPodConventionWebhook) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieFeedJSON(j []byte) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConventionWebhook) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieFeedYAML(y []byte) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieFeedYAMLFile(name string) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieImmutable(immutable bool) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieRelease() conventionsv1alpha1.ClusterPodConventionWebhook
- func (d *ClusterPodConventionWebhookDie) DieReleaseJSON() []byte
- func (d *ClusterPodConventionWebhookDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConventionWebhook
- func (d *ClusterPodConventionWebhookDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ClusterPodConventionWebhookDie) DieReleaseYAML() []byte
- func (d *ClusterPodConventionWebhookDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConventionWebhook)) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionWebhookDie
- func (d *ClusterPodConventionWebhookDie) DieWith(fns ...func(d *ClusterPodConventionWebhookDie)) *ClusterPodConventionWebhookDie
- type PodIntentDie
- func (d *PodIntentDie) APIVersion(v string) *PodIntentDie
- func (d *PodIntentDie) DeepCopy() *PodIntentDie
- func (d *PodIntentDie) DeepCopyObject() runtime.Object
- func (d *PodIntentDie) DieFeed(r conventionsv1alpha1.PodIntent) *PodIntentDie
- func (d *PodIntentDie) DieFeedJSON(j []byte) *PodIntentDie
- func (d *PodIntentDie) DieFeedPtr(r *conventionsv1alpha1.PodIntent) *PodIntentDie
- func (d *PodIntentDie) DieFeedRawExtension(raw runtime.RawExtension) *PodIntentDie
- func (d *PodIntentDie) DieFeedYAML(y []byte) *PodIntentDie
- func (d *PodIntentDie) DieFeedYAMLFile(name string) *PodIntentDie
- func (d *PodIntentDie) DieImmutable(immutable bool) *PodIntentDie
- func (d *PodIntentDie) DieRelease() conventionsv1alpha1.PodIntent
- func (d *PodIntentDie) DieReleaseJSON() []byte
- func (d *PodIntentDie) DieReleasePtr() *conventionsv1alpha1.PodIntent
- func (d *PodIntentDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *PodIntentDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *PodIntentDie) DieReleaseYAML() []byte
- func (d *PodIntentDie) DieStamp(fn func(r *conventionsv1alpha1.PodIntent)) *PodIntentDie
- func (d *PodIntentDie) DieStampAt(jp string, fn interface{}) *PodIntentDie
- func (d *PodIntentDie) DieWith(fns ...func(d *PodIntentDie)) *PodIntentDie
- func (d *PodIntentDie) GetObjectKind() schema.ObjectKind
- func (d *PodIntentDie) Kind(v string) *PodIntentDie
- func (d *PodIntentDie) MarshalJSON() ([]byte, error)
- func (d *PodIntentDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *PodIntentDie
- func (d *PodIntentDie) Spec(v conventionsv1alpha1.PodIntentSpec) *PodIntentDie
- func (d *PodIntentDie) SpecDie(fn func(d *PodIntentSpecDie)) *PodIntentDie
- func (d *PodIntentDie) Status(v conventionsv1alpha1.PodIntentStatus) *PodIntentDie
- func (d *PodIntentDie) StatusDie(fn func(d *PodIntentStatusDie)) *PodIntentDie
- func (d *PodIntentDie) UnmarshalJSON(b []byte) error
- type PodIntentSpecDie
- func (d *PodIntentSpecDie) DeepCopy() *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieFeed(r conventionsv1alpha1.PodIntentSpec) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieFeedJSON(j []byte) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieFeedPtr(r *conventionsv1alpha1.PodIntentSpec) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieFeedYAML(y []byte) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieFeedYAMLFile(name string) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieImmutable(immutable bool) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieRelease() conventionsv1alpha1.PodIntentSpec
- func (d *PodIntentSpecDie) DieReleaseJSON() []byte
- func (d *PodIntentSpecDie) DieReleasePtr() *conventionsv1alpha1.PodIntentSpec
- func (d *PodIntentSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *PodIntentSpecDie) DieReleaseYAML() []byte
- func (d *PodIntentSpecDie) DieStamp(fn func(r *conventionsv1alpha1.PodIntentSpec)) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieStampAt(jp string, fn interface{}) *PodIntentSpecDie
- func (d *PodIntentSpecDie) DieWith(fns ...func(d *PodIntentSpecDie)) *PodIntentSpecDie
- func (d *PodIntentSpecDie) ImagePullSecrets(v ...corev1.LocalObjectReference) *PodIntentSpecDie
- func (d *PodIntentSpecDie) ImagePullSecretsDie(pullSecrets ...*diecorev1.LocalObjectReferenceDie) *PodIntentSpecDie
- func (d *PodIntentSpecDie) ServiceAccountName(v string) *PodIntentSpecDie
- func (d *PodIntentSpecDie) Template(v conventionsv1alpha1.PodTemplateSpec) *PodIntentSpecDie
- func (d *PodIntentSpecDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *PodIntentSpecDie
- type PodIntentStatusDie
- func (d *PodIntentStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DeepCopy() *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieFeed(r conventionsv1alpha1.PodIntentStatus) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieFeedJSON(j []byte) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieFeedPtr(r *conventionsv1alpha1.PodIntentStatus) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieFeedYAML(y []byte) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieFeedYAMLFile(name string) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieImmutable(immutable bool) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieRelease() conventionsv1alpha1.PodIntentStatus
- func (d *PodIntentStatusDie) DieReleaseJSON() []byte
- func (d *PodIntentStatusDie) DieReleasePtr() *conventionsv1alpha1.PodIntentStatus
- func (d *PodIntentStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *PodIntentStatusDie) DieReleaseYAML() []byte
- func (d *PodIntentStatusDie) DieStamp(fn func(r *conventionsv1alpha1.PodIntentStatus)) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieStampAt(jp string, fn interface{}) *PodIntentStatusDie
- func (d *PodIntentStatusDie) DieWith(fns ...func(d *PodIntentStatusDie)) *PodIntentStatusDie
- func (d *PodIntentStatusDie) ObservedGeneration(generation int64) *PodIntentStatusDie
- func (d *PodIntentStatusDie) Status(v apis.Status) *PodIntentStatusDie
- func (d *PodIntentStatusDie) Template(v *conventionsv1alpha1.PodTemplateSpec) *PodIntentStatusDie
- func (d *PodIntentStatusDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *PodIntentStatusDie
Constants ¶
This section is empty.
Variables ¶
var ( PodIntentConditionReadyBlank = diemetav1.ConditionBlank.Type(conventionsv1alpha1.PodIntentConditionReady) PodIntentConditionConventionsAppliedBlank = diemetav1.ConditionBlank.Type(conventionsv1alpha1.PodIntentConditionConventionsApplied) )
var ClusterPodConventionBlank = (&ClusterPodConventionDie{}).DieFeed(conventionsv1alpha1.ClusterPodConvention{})
var ClusterPodConventionSpecBlank = (&ClusterPodConventionSpecDie{}).DieFeed(conventionsv1alpha1.ClusterPodConventionSpec{})
var ClusterPodConventionWebhookBlank = (&ClusterPodConventionWebhookDie{}).DieFeed(conventionsv1alpha1.ClusterPodConventionWebhook{})
var ClusterPodConventionWebhookCertificateBlank = (&ClusterPodConventionWebhookCertificateDie{}).DieFeed(conventionsv1alpha1.ClusterPodConventionWebhookCertificate{})
var PodIntentBlank = (&PodIntentDie{}).DieFeed(conventionsv1alpha1.PodIntent{})
var PodIntentSpecBlank = (&PodIntentSpecDie{}).DieFeed(conventionsv1alpha1.PodIntentSpec{})
var PodIntentStatusBlank = (&PodIntentStatusDie{}).DieFeed(conventionsv1alpha1.PodIntentStatus{})
Functions ¶
This section is empty.
Types ¶
type ClusterPodConventionDie ¶
type ClusterPodConventionDie struct { v1.FrozenObjectMeta // contains filtered or unexported fields }
func (*ClusterPodConventionDie) APIVersion ¶ added in v0.2.0
func (d *ClusterPodConventionDie) APIVersion(v string) *ClusterPodConventionDie
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 (*ClusterPodConventionDie) DeepCopy ¶
func (d *ClusterPodConventionDie) DeepCopy() *ClusterPodConventionDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ClusterPodConventionDie) DeepCopyObject ¶
func (d *ClusterPodConventionDie) DeepCopyObject() runtime.Object
func (*ClusterPodConventionDie) DieFeed ¶
func (d *ClusterPodConventionDie) DieFeed(r conventionsv1alpha1.ClusterPodConvention) *ClusterPodConventionDie
DieFeed returns a new die with the provided resource.
func (*ClusterPodConventionDie) DieFeedJSON ¶ added in v0.5.0
func (d *ClusterPodConventionDie) DieFeedJSON(j []byte) *ClusterPodConventionDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ClusterPodConventionDie) DieFeedPtr ¶
func (d *ClusterPodConventionDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConvention) *ClusterPodConventionDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ClusterPodConventionDie) DieFeedRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionDie) DieFeedYAML ¶ added in v0.5.0
func (d *ClusterPodConventionDie) DieFeedYAML(y []byte) *ClusterPodConventionDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ClusterPodConventionDie) DieFeedYAMLFile ¶ added in v0.5.0
func (d *ClusterPodConventionDie) DieFeedYAMLFile(name string) *ClusterPodConventionDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ClusterPodConventionDie) DieImmutable ¶
func (d *ClusterPodConventionDie) DieImmutable(immutable bool) *ClusterPodConventionDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ClusterPodConventionDie) DieRelease ¶
func (d *ClusterPodConventionDie) DieRelease() conventionsv1alpha1.ClusterPodConvention
DieRelease returns the resource managed by the die.
func (*ClusterPodConventionDie) DieReleaseJSON ¶ added in v0.5.0
func (d *ClusterPodConventionDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ClusterPodConventionDie) DieReleasePtr ¶
func (d *ClusterPodConventionDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConvention
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ClusterPodConventionDie) DieReleaseRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionDie) DieReleaseUnstructured ¶
func (d *ClusterPodConventionDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*ClusterPodConventionDie) DieReleaseYAML ¶ added in v0.5.0
func (d *ClusterPodConventionDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ClusterPodConventionDie) DieStamp ¶
func (d *ClusterPodConventionDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConvention)) *ClusterPodConventionDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ClusterPodConventionDie) DieStampAt ¶ added in v0.5.0
func (d *ClusterPodConventionDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionDie
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 (*ClusterPodConventionDie) DieWith ¶ added in v0.6.0
func (d *ClusterPodConventionDie) DieWith(fns ...func(d *ClusterPodConventionDie)) *ClusterPodConventionDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ClusterPodConventionDie) GetObjectKind ¶
func (d *ClusterPodConventionDie) GetObjectKind() schema.ObjectKind
func (*ClusterPodConventionDie) Kind ¶ added in v0.2.0
func (d *ClusterPodConventionDie) Kind(v string) *ClusterPodConventionDie
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 (*ClusterPodConventionDie) MarshalJSON ¶
func (d *ClusterPodConventionDie) MarshalJSON() ([]byte, error)
func (*ClusterPodConventionDie) MetadataDie ¶
func (d *ClusterPodConventionDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *ClusterPodConventionDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*ClusterPodConventionDie) SpecDie ¶
func (d *ClusterPodConventionDie) SpecDie(fn func(d *ClusterPodConventionSpecDie)) *ClusterPodConventionDie
SpecDie stamps the resource's spec field with a mutable die.
func (*ClusterPodConventionDie) UnmarshalJSON ¶
func (d *ClusterPodConventionDie) UnmarshalJSON(b []byte) error
type ClusterPodConventionSpecDie ¶
type ClusterPodConventionSpecDie struct {
// contains filtered or unexported fields
}
func (*ClusterPodConventionSpecDie) DeepCopy ¶
func (d *ClusterPodConventionSpecDie) DeepCopy() *ClusterPodConventionSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ClusterPodConventionSpecDie) DieFeed ¶
func (d *ClusterPodConventionSpecDie) DieFeed(r conventionsv1alpha1.ClusterPodConventionSpec) *ClusterPodConventionSpecDie
DieFeed returns a new die with the provided resource.
func (*ClusterPodConventionSpecDie) DieFeedJSON ¶ added in v0.5.0
func (d *ClusterPodConventionSpecDie) DieFeedJSON(j []byte) *ClusterPodConventionSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ClusterPodConventionSpecDie) DieFeedPtr ¶
func (d *ClusterPodConventionSpecDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConventionSpec) *ClusterPodConventionSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ClusterPodConventionSpecDie) DieFeedRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionSpecDie) DieFeedYAML ¶ added in v0.5.0
func (d *ClusterPodConventionSpecDie) DieFeedYAML(y []byte) *ClusterPodConventionSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ClusterPodConventionSpecDie) DieFeedYAMLFile ¶ added in v0.5.0
func (d *ClusterPodConventionSpecDie) DieFeedYAMLFile(name string) *ClusterPodConventionSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ClusterPodConventionSpecDie) DieImmutable ¶
func (d *ClusterPodConventionSpecDie) DieImmutable(immutable bool) *ClusterPodConventionSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ClusterPodConventionSpecDie) DieRelease ¶
func (d *ClusterPodConventionSpecDie) DieRelease() conventionsv1alpha1.ClusterPodConventionSpec
DieRelease returns the resource managed by the die.
func (*ClusterPodConventionSpecDie) DieReleaseJSON ¶ added in v0.5.0
func (d *ClusterPodConventionSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ClusterPodConventionSpecDie) DieReleasePtr ¶
func (d *ClusterPodConventionSpecDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConventionSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ClusterPodConventionSpecDie) DieReleaseRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionSpecDie) DieReleaseYAML ¶ added in v0.5.0
func (d *ClusterPodConventionSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ClusterPodConventionSpecDie) DieStamp ¶
func (d *ClusterPodConventionSpecDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConventionSpec)) *ClusterPodConventionSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ClusterPodConventionSpecDie) DieStampAt ¶ added in v0.5.0
func (d *ClusterPodConventionSpecDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionSpecDie
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 (*ClusterPodConventionSpecDie) DieWith ¶ added in v0.6.0
func (d *ClusterPodConventionSpecDie) DieWith(fns ...func(d *ClusterPodConventionSpecDie)) *ClusterPodConventionSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ClusterPodConventionSpecDie) Priority ¶
func (d *ClusterPodConventionSpecDie) Priority(v conventionsv1alpha1.PriorityLevel) *ClusterPodConventionSpecDie
func (*ClusterPodConventionSpecDie) SelectorTarget ¶ added in v0.2.0
func (d *ClusterPodConventionSpecDie) SelectorTarget(v conventionsv1alpha1.SelectorTargetSource) *ClusterPodConventionSpecDie
func (*ClusterPodConventionSpecDie) Selectors ¶
func (d *ClusterPodConventionSpecDie) Selectors(v ...metav1.LabelSelector) *ClusterPodConventionSpecDie
Label selector for workloads.
It must match the workload's pod template's labels.
func (*ClusterPodConventionSpecDie) SelectorsDie ¶
func (d *ClusterPodConventionSpecDie) SelectorsDie(selectors ...*diemetav1.LabelSelectorDie) *ClusterPodConventionSpecDie
func (*ClusterPodConventionSpecDie) Webhook ¶
func (d *ClusterPodConventionSpecDie) Webhook(v *conventionsv1alpha1.ClusterPodConventionWebhook) *ClusterPodConventionSpecDie
func (*ClusterPodConventionSpecDie) WebookDie ¶
func (d *ClusterPodConventionSpecDie) WebookDie(fn func(d *ClusterPodConventionWebhookDie)) *ClusterPodConventionSpecDie
type ClusterPodConventionWebhookCertificateDie ¶ added in v0.1.0
type ClusterPodConventionWebhookCertificateDie struct {
// contains filtered or unexported fields
}
func (*ClusterPodConventionWebhookCertificateDie) DeepCopy ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) DeepCopy() *ClusterPodConventionWebhookCertificateDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ClusterPodConventionWebhookCertificateDie) DieFeed ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) DieFeed(r conventionsv1alpha1.ClusterPodConventionWebhookCertificate) *ClusterPodConventionWebhookCertificateDie
DieFeed returns a new die with the provided resource.
func (*ClusterPodConventionWebhookCertificateDie) DieFeedJSON ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookCertificateDie) DieFeedJSON(j []byte) *ClusterPodConventionWebhookCertificateDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ClusterPodConventionWebhookCertificateDie) DieFeedPtr ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConventionWebhookCertificate) *ClusterPodConventionWebhookCertificateDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ClusterPodConventionWebhookCertificateDie) DieFeedRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionWebhookCertificateDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionWebhookCertificateDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionWebhookCertificateDie) DieFeedYAML ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookCertificateDie) DieFeedYAML(y []byte) *ClusterPodConventionWebhookCertificateDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ClusterPodConventionWebhookCertificateDie) DieFeedYAMLFile ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookCertificateDie) DieFeedYAMLFile(name string) *ClusterPodConventionWebhookCertificateDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ClusterPodConventionWebhookCertificateDie) DieImmutable ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) DieImmutable(immutable bool) *ClusterPodConventionWebhookCertificateDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ClusterPodConventionWebhookCertificateDie) DieRelease ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) DieRelease() conventionsv1alpha1.ClusterPodConventionWebhookCertificate
DieRelease returns the resource managed by the die.
func (*ClusterPodConventionWebhookCertificateDie) DieReleaseJSON ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookCertificateDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ClusterPodConventionWebhookCertificateDie) DieReleasePtr ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConventionWebhookCertificate
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ClusterPodConventionWebhookCertificateDie) DieReleaseRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionWebhookCertificateDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionWebhookCertificateDie) DieReleaseYAML ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookCertificateDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ClusterPodConventionWebhookCertificateDie) DieStamp ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConventionWebhookCertificate)) *ClusterPodConventionWebhookCertificateDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ClusterPodConventionWebhookCertificateDie) DieStampAt ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookCertificateDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionWebhookCertificateDie
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 (*ClusterPodConventionWebhookCertificateDie) DieWith ¶ added in v0.6.0
func (d *ClusterPodConventionWebhookCertificateDie) DieWith(fns ...func(d *ClusterPodConventionWebhookCertificateDie)) *ClusterPodConventionWebhookCertificateDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ClusterPodConventionWebhookCertificateDie) Namespace ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookCertificateDie) Namespace(v string) *ClusterPodConventionWebhookCertificateDie
type ClusterPodConventionWebhookDie ¶
type ClusterPodConventionWebhookDie struct {
// contains filtered or unexported fields
}
func (*ClusterPodConventionWebhookDie) Certificate ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookDie) Certificate(v *conventionsv1alpha1.ClusterPodConventionWebhookCertificate) *ClusterPodConventionWebhookDie
Certificate references a cert-manager Certificate resource whose CA should be trusted.
func (*ClusterPodConventionWebhookDie) CertificateDie ¶ added in v0.1.0
func (d *ClusterPodConventionWebhookDie) CertificateDie(fn func(d *ClusterPodConventionWebhookCertificateDie)) *ClusterPodConventionWebhookDie
func (*ClusterPodConventionWebhookDie) ClientConfig ¶
func (d *ClusterPodConventionWebhookDie) ClientConfig(v admissionregistrationv1.WebhookClientConfig) *ClusterPodConventionWebhookDie
ClientConfig defines how to communicate with the convention.
func (*ClusterPodConventionWebhookDie) ClientConfigDie ¶
func (d *ClusterPodConventionWebhookDie) ClientConfigDie(fn func(d *dieadmissionregistrationv1.WebhookClientConfigDie)) *ClusterPodConventionWebhookDie
func (*ClusterPodConventionWebhookDie) DeepCopy ¶
func (d *ClusterPodConventionWebhookDie) DeepCopy() *ClusterPodConventionWebhookDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ClusterPodConventionWebhookDie) DieFeed ¶
func (d *ClusterPodConventionWebhookDie) DieFeed(r conventionsv1alpha1.ClusterPodConventionWebhook) *ClusterPodConventionWebhookDie
DieFeed returns a new die with the provided resource.
func (*ClusterPodConventionWebhookDie) DieFeedJSON ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookDie) DieFeedJSON(j []byte) *ClusterPodConventionWebhookDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ClusterPodConventionWebhookDie) DieFeedPtr ¶
func (d *ClusterPodConventionWebhookDie) DieFeedPtr(r *conventionsv1alpha1.ClusterPodConventionWebhook) *ClusterPodConventionWebhookDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ClusterPodConventionWebhookDie) DieFeedRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionWebhookDie) DieFeedRawExtension(raw runtime.RawExtension) *ClusterPodConventionWebhookDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionWebhookDie) DieFeedYAML ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookDie) DieFeedYAML(y []byte) *ClusterPodConventionWebhookDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ClusterPodConventionWebhookDie) DieFeedYAMLFile ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookDie) DieFeedYAMLFile(name string) *ClusterPodConventionWebhookDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ClusterPodConventionWebhookDie) DieImmutable ¶
func (d *ClusterPodConventionWebhookDie) DieImmutable(immutable bool) *ClusterPodConventionWebhookDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ClusterPodConventionWebhookDie) DieRelease ¶
func (d *ClusterPodConventionWebhookDie) DieRelease() conventionsv1alpha1.ClusterPodConventionWebhook
DieRelease returns the resource managed by the die.
func (*ClusterPodConventionWebhookDie) DieReleaseJSON ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ClusterPodConventionWebhookDie) DieReleasePtr ¶
func (d *ClusterPodConventionWebhookDie) DieReleasePtr() *conventionsv1alpha1.ClusterPodConventionWebhook
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ClusterPodConventionWebhookDie) DieReleaseRawExtension ¶ added in v0.2.0
func (d *ClusterPodConventionWebhookDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ClusterPodConventionWebhookDie) DieReleaseYAML ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ClusterPodConventionWebhookDie) DieStamp ¶
func (d *ClusterPodConventionWebhookDie) DieStamp(fn func(r *conventionsv1alpha1.ClusterPodConventionWebhook)) *ClusterPodConventionWebhookDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ClusterPodConventionWebhookDie) DieStampAt ¶ added in v0.5.0
func (d *ClusterPodConventionWebhookDie) DieStampAt(jp string, fn interface{}) *ClusterPodConventionWebhookDie
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 (*ClusterPodConventionWebhookDie) DieWith ¶ added in v0.6.0
func (d *ClusterPodConventionWebhookDie) DieWith(fns ...func(d *ClusterPodConventionWebhookDie)) *ClusterPodConventionWebhookDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
type PodIntentDie ¶
type PodIntentDie struct { v1.FrozenObjectMeta // contains filtered or unexported fields }
func (*PodIntentDie) APIVersion ¶ added in v0.2.0
func (d *PodIntentDie) APIVersion(v string) *PodIntentDie
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 (*PodIntentDie) DeepCopy ¶
func (d *PodIntentDie) DeepCopy() *PodIntentDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*PodIntentDie) DeepCopyObject ¶
func (d *PodIntentDie) DeepCopyObject() runtime.Object
func (*PodIntentDie) DieFeed ¶
func (d *PodIntentDie) DieFeed(r conventionsv1alpha1.PodIntent) *PodIntentDie
DieFeed returns a new die with the provided resource.
func (*PodIntentDie) DieFeedJSON ¶ added in v0.5.0
func (d *PodIntentDie) DieFeedJSON(j []byte) *PodIntentDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*PodIntentDie) DieFeedPtr ¶
func (d *PodIntentDie) DieFeedPtr(r *conventionsv1alpha1.PodIntent) *PodIntentDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*PodIntentDie) DieFeedRawExtension ¶ added in v0.2.0
func (d *PodIntentDie) DieFeedRawExtension(raw runtime.RawExtension) *PodIntentDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*PodIntentDie) DieFeedYAML ¶ added in v0.5.0
func (d *PodIntentDie) DieFeedYAML(y []byte) *PodIntentDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*PodIntentDie) DieFeedYAMLFile ¶ added in v0.5.0
func (d *PodIntentDie) DieFeedYAMLFile(name string) *PodIntentDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*PodIntentDie) DieImmutable ¶
func (d *PodIntentDie) DieImmutable(immutable bool) *PodIntentDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*PodIntentDie) DieRelease ¶
func (d *PodIntentDie) DieRelease() conventionsv1alpha1.PodIntent
DieRelease returns the resource managed by the die.
func (*PodIntentDie) DieReleaseJSON ¶ added in v0.5.0
func (d *PodIntentDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*PodIntentDie) DieReleasePtr ¶
func (d *PodIntentDie) DieReleasePtr() *conventionsv1alpha1.PodIntent
DieReleasePtr returns a pointer to the resource managed by the die.
func (*PodIntentDie) DieReleaseRawExtension ¶ added in v0.2.0
func (d *PodIntentDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*PodIntentDie) DieReleaseUnstructured ¶
func (d *PodIntentDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*PodIntentDie) DieReleaseYAML ¶ added in v0.5.0
func (d *PodIntentDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*PodIntentDie) DieStamp ¶
func (d *PodIntentDie) DieStamp(fn func(r *conventionsv1alpha1.PodIntent)) *PodIntentDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*PodIntentDie) DieStampAt ¶ added in v0.5.0
func (d *PodIntentDie) DieStampAt(jp string, fn interface{}) *PodIntentDie
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 (*PodIntentDie) DieWith ¶ added in v0.6.0
func (d *PodIntentDie) DieWith(fns ...func(d *PodIntentDie)) *PodIntentDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*PodIntentDie) GetObjectKind ¶
func (d *PodIntentDie) GetObjectKind() schema.ObjectKind
func (*PodIntentDie) Kind ¶ added in v0.2.0
func (d *PodIntentDie) Kind(v string) *PodIntentDie
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 (*PodIntentDie) MarshalJSON ¶
func (d *PodIntentDie) MarshalJSON() ([]byte, error)
func (*PodIntentDie) MetadataDie ¶
func (d *PodIntentDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *PodIntentDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*PodIntentDie) Spec ¶
func (d *PodIntentDie) Spec(v conventionsv1alpha1.PodIntentSpec) *PodIntentDie
func (*PodIntentDie) SpecDie ¶
func (d *PodIntentDie) SpecDie(fn func(d *PodIntentSpecDie)) *PodIntentDie
SpecDie stamps the resource's spec field with a mutable die.
func (*PodIntentDie) Status ¶
func (d *PodIntentDie) Status(v conventionsv1alpha1.PodIntentStatus) *PodIntentDie
func (*PodIntentDie) StatusDie ¶
func (d *PodIntentDie) StatusDie(fn func(d *PodIntentStatusDie)) *PodIntentDie
StatusDie stamps the resource's status field with a mutable die.
func (*PodIntentDie) UnmarshalJSON ¶
func (d *PodIntentDie) UnmarshalJSON(b []byte) error
type PodIntentSpecDie ¶
type PodIntentSpecDie struct {
// contains filtered or unexported fields
}
func (*PodIntentSpecDie) DeepCopy ¶
func (d *PodIntentSpecDie) DeepCopy() *PodIntentSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*PodIntentSpecDie) DieFeed ¶
func (d *PodIntentSpecDie) DieFeed(r conventionsv1alpha1.PodIntentSpec) *PodIntentSpecDie
DieFeed returns a new die with the provided resource.
func (*PodIntentSpecDie) DieFeedJSON ¶ added in v0.5.0
func (d *PodIntentSpecDie) DieFeedJSON(j []byte) *PodIntentSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*PodIntentSpecDie) DieFeedPtr ¶
func (d *PodIntentSpecDie) DieFeedPtr(r *conventionsv1alpha1.PodIntentSpec) *PodIntentSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*PodIntentSpecDie) DieFeedRawExtension ¶ added in v0.2.0
func (d *PodIntentSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *PodIntentSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*PodIntentSpecDie) DieFeedYAML ¶ added in v0.5.0
func (d *PodIntentSpecDie) DieFeedYAML(y []byte) *PodIntentSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*PodIntentSpecDie) DieFeedYAMLFile ¶ added in v0.5.0
func (d *PodIntentSpecDie) DieFeedYAMLFile(name string) *PodIntentSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*PodIntentSpecDie) DieImmutable ¶
func (d *PodIntentSpecDie) DieImmutable(immutable bool) *PodIntentSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*PodIntentSpecDie) DieRelease ¶
func (d *PodIntentSpecDie) DieRelease() conventionsv1alpha1.PodIntentSpec
DieRelease returns the resource managed by the die.
func (*PodIntentSpecDie) DieReleaseJSON ¶ added in v0.5.0
func (d *PodIntentSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*PodIntentSpecDie) DieReleasePtr ¶
func (d *PodIntentSpecDie) DieReleasePtr() *conventionsv1alpha1.PodIntentSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*PodIntentSpecDie) DieReleaseRawExtension ¶ added in v0.2.0
func (d *PodIntentSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*PodIntentSpecDie) DieReleaseYAML ¶ added in v0.5.0
func (d *PodIntentSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*PodIntentSpecDie) DieStamp ¶
func (d *PodIntentSpecDie) DieStamp(fn func(r *conventionsv1alpha1.PodIntentSpec)) *PodIntentSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*PodIntentSpecDie) DieStampAt ¶ added in v0.5.0
func (d *PodIntentSpecDie) DieStampAt(jp string, fn interface{}) *PodIntentSpecDie
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 (*PodIntentSpecDie) DieWith ¶ added in v0.6.0
func (d *PodIntentSpecDie) DieWith(fns ...func(d *PodIntentSpecDie)) *PodIntentSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*PodIntentSpecDie) ImagePullSecrets ¶
func (d *PodIntentSpecDie) ImagePullSecrets(v ...corev1.LocalObjectReference) *PodIntentSpecDie
ImagePullSecrets contains the names of the Kubernetes Secrets containing registry login
information to resolve image metadata.
func (*PodIntentSpecDie) ImagePullSecretsDie ¶
func (d *PodIntentSpecDie) ImagePullSecretsDie(pullSecrets ...*diecorev1.LocalObjectReferenceDie) *PodIntentSpecDie
func (*PodIntentSpecDie) ServiceAccountName ¶
func (d *PodIntentSpecDie) ServiceAccountName(v string) *PodIntentSpecDie
ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate
the image pull if the service account has attached pull secrets. For more information:
func (*PodIntentSpecDie) Template ¶
func (d *PodIntentSpecDie) Template(v conventionsv1alpha1.PodTemplateSpec) *PodIntentSpecDie
Template defines the workload pod temple
func (*PodIntentSpecDie) TemplateDie ¶
func (d *PodIntentSpecDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *PodIntentSpecDie
type PodIntentStatusDie ¶
type PodIntentStatusDie struct {
// contains filtered or unexported fields
}
func (*PodIntentStatusDie) ConditionsDie ¶
func (d *PodIntentStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *PodIntentStatusDie
func (*PodIntentStatusDie) DeepCopy ¶
func (d *PodIntentStatusDie) DeepCopy() *PodIntentStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*PodIntentStatusDie) DieFeed ¶
func (d *PodIntentStatusDie) DieFeed(r conventionsv1alpha1.PodIntentStatus) *PodIntentStatusDie
DieFeed returns a new die with the provided resource.
func (*PodIntentStatusDie) DieFeedJSON ¶ added in v0.5.0
func (d *PodIntentStatusDie) DieFeedJSON(j []byte) *PodIntentStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*PodIntentStatusDie) DieFeedPtr ¶
func (d *PodIntentStatusDie) DieFeedPtr(r *conventionsv1alpha1.PodIntentStatus) *PodIntentStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*PodIntentStatusDie) DieFeedRawExtension ¶ added in v0.2.0
func (d *PodIntentStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *PodIntentStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*PodIntentStatusDie) DieFeedYAML ¶ added in v0.5.0
func (d *PodIntentStatusDie) DieFeedYAML(y []byte) *PodIntentStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*PodIntentStatusDie) DieFeedYAMLFile ¶ added in v0.5.0
func (d *PodIntentStatusDie) DieFeedYAMLFile(name string) *PodIntentStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*PodIntentStatusDie) DieImmutable ¶
func (d *PodIntentStatusDie) DieImmutable(immutable bool) *PodIntentStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*PodIntentStatusDie) DieRelease ¶
func (d *PodIntentStatusDie) DieRelease() conventionsv1alpha1.PodIntentStatus
DieRelease returns the resource managed by the die.
func (*PodIntentStatusDie) DieReleaseJSON ¶ added in v0.5.0
func (d *PodIntentStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*PodIntentStatusDie) DieReleasePtr ¶
func (d *PodIntentStatusDie) DieReleasePtr() *conventionsv1alpha1.PodIntentStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*PodIntentStatusDie) DieReleaseRawExtension ¶ added in v0.2.0
func (d *PodIntentStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*PodIntentStatusDie) DieReleaseYAML ¶ added in v0.5.0
func (d *PodIntentStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*PodIntentStatusDie) DieStamp ¶
func (d *PodIntentStatusDie) DieStamp(fn func(r *conventionsv1alpha1.PodIntentStatus)) *PodIntentStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*PodIntentStatusDie) DieStampAt ¶ added in v0.5.0
func (d *PodIntentStatusDie) DieStampAt(jp string, fn interface{}) *PodIntentStatusDie
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 (*PodIntentStatusDie) DieWith ¶ added in v0.6.0
func (d *PodIntentStatusDie) DieWith(fns ...func(d *PodIntentStatusDie)) *PodIntentStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*PodIntentStatusDie) ObservedGeneration ¶
func (d *PodIntentStatusDie) ObservedGeneration(generation int64) *PodIntentStatusDie
func (*PodIntentStatusDie) Status ¶
func (d *PodIntentStatusDie) Status(v apis.Status) *PodIntentStatusDie
func (*PodIntentStatusDie) Template ¶
func (d *PodIntentStatusDie) Template(v *conventionsv1alpha1.PodTemplateSpec) *PodIntentStatusDie
func (*PodIntentStatusDie) TemplateDie ¶
func (d *PodIntentStatusDie) TemplateDie(fn func(d *diecorev1.PodTemplateSpecDie)) *PodIntentStatusDie