Documentation ¶
Index ¶
- Variables
- type CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DeepCopy() *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) Description(v string) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieFeed(r apiextensionsv1.CustomResourceColumnDefinition) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieFeedJSON(j []byte) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceColumnDefinition) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieFeedYAML(y []byte) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieFeedYAMLFile(name string) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieImmutable(immutable bool) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieRelease() apiextensionsv1.CustomResourceColumnDefinition
- func (d *CustomResourceColumnDefinitionDie) DieReleaseJSON() []byte
- func (d *CustomResourceColumnDefinitionDie) DieReleasePtr() *apiextensionsv1.CustomResourceColumnDefinition
- func (d *CustomResourceColumnDefinitionDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceColumnDefinitionDie) DieReleaseYAML() []byte
- func (d *CustomResourceColumnDefinitionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceColumnDefinition)) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieStampAt(jp string, fn interface{}) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) DieWith(fns ...func(d *CustomResourceColumnDefinitionDie)) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) Format(v string) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) JSONPath(v string) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) Name(v string) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) Priority(v int32) *CustomResourceColumnDefinitionDie
- func (d *CustomResourceColumnDefinitionDie) Type(v string) *CustomResourceColumnDefinitionDie
- type CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DeepCopy() *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieFeed(r apiextensionsv1.CustomResourceConversion) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieFeedJSON(j []byte) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceConversion) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieFeedYAML(y []byte) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieFeedYAMLFile(name string) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieImmutable(immutable bool) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieRelease() apiextensionsv1.CustomResourceConversion
- func (d *CustomResourceConversionDie) DieReleaseJSON() []byte
- func (d *CustomResourceConversionDie) DieReleasePtr() *apiextensionsv1.CustomResourceConversion
- func (d *CustomResourceConversionDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceConversionDie) DieReleaseYAML() []byte
- func (d *CustomResourceConversionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceConversion)) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieStampAt(jp string, fn interface{}) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) DieWith(fns ...func(d *CustomResourceConversionDie)) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) Strategy(v apiextensionsv1.ConversionStrategyType) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) Webhook(v *apiextensionsv1.WebhookConversion) *CustomResourceConversionDie
- func (d *CustomResourceConversionDie) WebhookDie(fn func(d *WebhookConversionDie)) *CustomResourceConversionDie
- type CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) APIVersion(v string) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DeepCopy() *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DeepCopyObject() runtime.Object
- func (d *CustomResourceDefinitionDie) DieFeed(r apiextensionsv1.CustomResourceDefinition) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieFeedJSON(j []byte) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinition) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieFeedYAML(y []byte) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieImmutable(immutable bool) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieRelease() apiextensionsv1.CustomResourceDefinition
- func (d *CustomResourceDefinitionDie) DieReleaseJSON() []byte
- func (d *CustomResourceDefinitionDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinition
- func (d *CustomResourceDefinitionDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceDefinitionDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *CustomResourceDefinitionDie) DieReleaseYAML() []byte
- func (d *CustomResourceDefinitionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinition)) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) DieWith(fns ...func(d *CustomResourceDefinitionDie)) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) GetObjectKind() schema.ObjectKind
- func (d *CustomResourceDefinitionDie) Kind(v string) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) MarshalJSON() ([]byte, error)
- func (d *CustomResourceDefinitionDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) Spec(v apiextensionsv1.CustomResourceDefinitionSpec) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) SpecDie(fn func(d *CustomResourceDefinitionSpecDie)) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) Status(v apiextensionsv1.CustomResourceDefinitionStatus) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) StatusDie(fn func(d *CustomResourceDefinitionStatusDie)) *CustomResourceDefinitionDie
- func (d *CustomResourceDefinitionDie) UnmarshalJSON(b []byte) error
- type CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) Categories(v ...string) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DeepCopy() *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieFeedJSON(j []byte) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieFeedYAML(y []byte) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieImmutable(immutable bool) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieRelease() apiextensionsv1.CustomResourceDefinitionNames
- func (d *CustomResourceDefinitionNamesDie) DieReleaseJSON() []byte
- func (d *CustomResourceDefinitionNamesDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionNames
- func (d *CustomResourceDefinitionNamesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceDefinitionNamesDie) DieReleaseYAML() []byte
- func (d *CustomResourceDefinitionNamesDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionNames)) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) DieWith(fns ...func(d *CustomResourceDefinitionNamesDie)) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) Kind(v string) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) ListKind(v string) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) Plural(v string) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) ShortNames(v ...string) *CustomResourceDefinitionNamesDie
- func (d *CustomResourceDefinitionNamesDie) Singular(v string) *CustomResourceDefinitionNamesDie
- type CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) Conversion(v *apiextensionsv1.CustomResourceConversion) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) ConversionDie(fn func(d *CustomResourceConversionDie)) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DeepCopy() *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionSpec) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieFeedJSON(j []byte) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionSpec) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieFeedYAML(y []byte) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieImmutable(immutable bool) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieRelease() apiextensionsv1.CustomResourceDefinitionSpec
- func (d *CustomResourceDefinitionSpecDie) DieReleaseJSON() []byte
- func (d *CustomResourceDefinitionSpecDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionSpec
- func (d *CustomResourceDefinitionSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceDefinitionSpecDie) DieReleaseYAML() []byte
- func (d *CustomResourceDefinitionSpecDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionSpec)) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) DieWith(fns ...func(d *CustomResourceDefinitionSpecDie)) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) Group(v string) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) Names(v apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) NamesDie(fn func(d *CustomResourceDefinitionNamesDie)) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) PreserveUnknownFields(v bool) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) Scope(v apiextensionsv1.ResourceScope) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) VersionDie(name string, fn func(d *CustomResourceDefinitionVersionDie)) *CustomResourceDefinitionSpecDie
- func (d *CustomResourceDefinitionSpecDie) Versions(v ...apiextensionsv1.CustomResourceDefinitionVersion) *CustomResourceDefinitionSpecDie
- type CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) AcceptedNames(v apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) AcceptedNamesDie(fn func(d *CustomResourceDefinitionNamesDie)) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) Conditions(v ...apiextensionsv1.CustomResourceDefinitionCondition) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DeepCopy() *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionStatus) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieFeedJSON(j []byte) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionStatus) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieFeedYAML(y []byte) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieImmutable(immutable bool) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieRelease() apiextensionsv1.CustomResourceDefinitionStatus
- func (d *CustomResourceDefinitionStatusDie) DieReleaseJSON() []byte
- func (d *CustomResourceDefinitionStatusDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionStatus
- func (d *CustomResourceDefinitionStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceDefinitionStatusDie) DieReleaseYAML() []byte
- func (d *CustomResourceDefinitionStatusDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionStatus)) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) DieWith(fns ...func(d *CustomResourceDefinitionStatusDie)) *CustomResourceDefinitionStatusDie
- func (d *CustomResourceDefinitionStatusDie) StoredVersions(v ...string) *CustomResourceDefinitionStatusDie
- type CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) AdditionalPrinterColumnDie(name string, fn func(d *CustomResourceColumnDefinitionDie)) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) AdditionalPrinterColumns(v ...apiextensionsv1.CustomResourceColumnDefinition) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DeepCopy() *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) Deprecated(v bool) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DeprecationWarning(v *string) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionVersion) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieFeedJSON(j []byte) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionVersion) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieFeedYAML(y []byte) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieImmutable(immutable bool) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieRelease() apiextensionsv1.CustomResourceDefinitionVersion
- func (d *CustomResourceDefinitionVersionDie) DieReleaseJSON() []byte
- func (d *CustomResourceDefinitionVersionDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionVersion
- func (d *CustomResourceDefinitionVersionDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceDefinitionVersionDie) DieReleaseYAML() []byte
- func (d *CustomResourceDefinitionVersionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionVersion)) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) DieWith(fns ...func(d *CustomResourceDefinitionVersionDie)) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) Name(v string) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) Schema(v *apiextensionsv1.CustomResourceValidation) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) SchemaDie(fn func(d *CustomResourceValidationDie)) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) SelectableFields(v ...apiextensionsv1.SelectableField) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) SelectableFieldsDie(fields ...*SelectableFieldDie) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) Served(v bool) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) Storage(v bool) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) Subresources(v *apiextensionsv1.CustomResourceSubresources) *CustomResourceDefinitionVersionDie
- func (d *CustomResourceDefinitionVersionDie) SubresourcesDie(fn func(d *CustomResourceSubresourcesDie)) *CustomResourceDefinitionVersionDie
- type CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DeepCopy() *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieFeed(r apiextensionsv1.CustomResourceSubresourceScale) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieFeedJSON(j []byte) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieFeedPtr(r *apiextensionsv1.CustomResourceSubresourceScale) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieFeedYAML(y []byte) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieFeedYAMLFile(name string) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieImmutable(immutable bool) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieRelease() apiextensionsv1.CustomResourceSubresourceScale
- func (d *CustomResourceSubresourceScaleDie) DieReleaseJSON() []byte
- func (d *CustomResourceSubresourceScaleDie) DieReleasePtr() *apiextensionsv1.CustomResourceSubresourceScale
- func (d *CustomResourceSubresourceScaleDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceSubresourceScaleDie) DieReleaseYAML() []byte
- func (d *CustomResourceSubresourceScaleDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceSubresourceScale)) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieStampAt(jp string, fn interface{}) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) DieWith(fns ...func(d *CustomResourceSubresourceScaleDie)) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) LabelSelectorPath(v *string) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) SpecReplicasPath(v string) *CustomResourceSubresourceScaleDie
- func (d *CustomResourceSubresourceScaleDie) StatusReplicasPath(v string) *CustomResourceSubresourceScaleDie
- type CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DeepCopy() *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieFeed(r apiextensionsv1.CustomResourceSubresources) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieFeedJSON(j []byte) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieFeedPtr(r *apiextensionsv1.CustomResourceSubresources) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieFeedYAML(y []byte) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieFeedYAMLFile(name string) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieImmutable(immutable bool) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieRelease() apiextensionsv1.CustomResourceSubresources
- func (d *CustomResourceSubresourcesDie) DieReleaseJSON() []byte
- func (d *CustomResourceSubresourcesDie) DieReleasePtr() *apiextensionsv1.CustomResourceSubresources
- func (d *CustomResourceSubresourcesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceSubresourcesDie) DieReleaseYAML() []byte
- func (d *CustomResourceSubresourcesDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceSubresources)) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieStampAt(jp string, fn interface{}) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) DieWith(fns ...func(d *CustomResourceSubresourcesDie)) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) Scale(v *apiextensionsv1.CustomResourceSubresourceScale) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) ScaleDie(fn func(d *CustomResourceSubresourceScaleDie)) *CustomResourceSubresourcesDie
- func (d *CustomResourceSubresourcesDie) Status(v *apiextensionsv1.CustomResourceSubresourceStatus) *CustomResourceSubresourcesDie
- type CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DeepCopy() *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieFeed(r apiextensionsv1.CustomResourceValidation) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieFeedJSON(j []byte) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieFeedPtr(r *apiextensionsv1.CustomResourceValidation) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieFeedYAML(y []byte) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieFeedYAMLFile(name string) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieImmutable(immutable bool) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieRelease() apiextensionsv1.CustomResourceValidation
- func (d *CustomResourceValidationDie) DieReleaseJSON() []byte
- func (d *CustomResourceValidationDie) DieReleasePtr() *apiextensionsv1.CustomResourceValidation
- func (d *CustomResourceValidationDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CustomResourceValidationDie) DieReleaseYAML() []byte
- func (d *CustomResourceValidationDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceValidation)) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieStampAt(jp string, fn interface{}) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) DieWith(fns ...func(d *CustomResourceValidationDie)) *CustomResourceValidationDie
- func (d *CustomResourceValidationDie) OpenAPIV3Schema(v *apiextensionsv1.JSONSchemaProps) *CustomResourceValidationDie
- type SelectableFieldDie
- func (d *SelectableFieldDie) DeepCopy() *SelectableFieldDie
- func (d *SelectableFieldDie) DieFeed(r apiextensionsv1.SelectableField) *SelectableFieldDie
- func (d *SelectableFieldDie) DieFeedJSON(j []byte) *SelectableFieldDie
- func (d *SelectableFieldDie) DieFeedPtr(r *apiextensionsv1.SelectableField) *SelectableFieldDie
- func (d *SelectableFieldDie) DieFeedRawExtension(raw runtime.RawExtension) *SelectableFieldDie
- func (d *SelectableFieldDie) DieFeedYAML(y []byte) *SelectableFieldDie
- func (d *SelectableFieldDie) DieFeedYAMLFile(name string) *SelectableFieldDie
- func (d *SelectableFieldDie) DieImmutable(immutable bool) *SelectableFieldDie
- func (d *SelectableFieldDie) DieRelease() apiextensionsv1.SelectableField
- func (d *SelectableFieldDie) DieReleaseJSON() []byte
- func (d *SelectableFieldDie) DieReleasePtr() *apiextensionsv1.SelectableField
- func (d *SelectableFieldDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *SelectableFieldDie) DieReleaseYAML() []byte
- func (d *SelectableFieldDie) DieStamp(fn func(r *apiextensionsv1.SelectableField)) *SelectableFieldDie
- func (d *SelectableFieldDie) DieStampAt(jp string, fn interface{}) *SelectableFieldDie
- func (d *SelectableFieldDie) DieWith(fns ...func(d *SelectableFieldDie)) *SelectableFieldDie
- func (d *SelectableFieldDie) JSONPath(v string) *SelectableFieldDie
- type ServiceReferenceDie
- func (d *ServiceReferenceDie) DeepCopy() *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeed(r apiextensionsv1.ServiceReference) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedJSON(j []byte) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedPtr(r *apiextensionsv1.ServiceReference) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedYAML(y []byte) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedYAMLFile(name string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieImmutable(immutable bool) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieRelease() apiextensionsv1.ServiceReference
- func (d *ServiceReferenceDie) DieReleaseJSON() []byte
- func (d *ServiceReferenceDie) DieReleasePtr() *apiextensionsv1.ServiceReference
- func (d *ServiceReferenceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ServiceReferenceDie) DieReleaseYAML() []byte
- func (d *ServiceReferenceDie) DieStamp(fn func(r *apiextensionsv1.ServiceReference)) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieStampAt(jp string, fn interface{}) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieWith(fns ...func(d *ServiceReferenceDie)) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Name(v string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Namespace(v string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Path(v *string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Port(v *int32) *ServiceReferenceDie
- type WebhookClientConfigDie
- func (d *WebhookClientConfigDie) CABundle(v []byte) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DeepCopy() *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeed(r apiextensionsv1.WebhookClientConfig) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedJSON(j []byte) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedPtr(r *apiextensionsv1.WebhookClientConfig) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedRawExtension(raw runtime.RawExtension) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedYAML(y []byte) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedYAMLFile(name string) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieImmutable(immutable bool) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieRelease() apiextensionsv1.WebhookClientConfig
- func (d *WebhookClientConfigDie) DieReleaseJSON() []byte
- func (d *WebhookClientConfigDie) DieReleasePtr() *apiextensionsv1.WebhookClientConfig
- func (d *WebhookClientConfigDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *WebhookClientConfigDie) DieReleaseYAML() []byte
- func (d *WebhookClientConfigDie) DieStamp(fn func(r *apiextensionsv1.WebhookClientConfig)) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieStampAt(jp string, fn interface{}) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieWith(fns ...func(d *WebhookClientConfigDie)) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) Service(v *apiextensionsv1.ServiceReference) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) ServiceDie(fn func(d *ServiceReferenceDie)) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) URL(v *string) *WebhookClientConfigDie
- type WebhookConversionDie
- func (d *WebhookConversionDie) ClientConfig(v *apiextensionsv1.WebhookClientConfig) *WebhookConversionDie
- func (d *WebhookConversionDie) ClientConfigDie(fn func(d *WebhookClientConfigDie)) *WebhookConversionDie
- func (d *WebhookConversionDie) ConversionReviewVersions(v ...string) *WebhookConversionDie
- func (d *WebhookConversionDie) DeepCopy() *WebhookConversionDie
- func (d *WebhookConversionDie) DieFeed(r apiextensionsv1.WebhookConversion) *WebhookConversionDie
- func (d *WebhookConversionDie) DieFeedJSON(j []byte) *WebhookConversionDie
- func (d *WebhookConversionDie) DieFeedPtr(r *apiextensionsv1.WebhookConversion) *WebhookConversionDie
- func (d *WebhookConversionDie) DieFeedRawExtension(raw runtime.RawExtension) *WebhookConversionDie
- func (d *WebhookConversionDie) DieFeedYAML(y []byte) *WebhookConversionDie
- func (d *WebhookConversionDie) DieFeedYAMLFile(name string) *WebhookConversionDie
- func (d *WebhookConversionDie) DieImmutable(immutable bool) *WebhookConversionDie
- func (d *WebhookConversionDie) DieRelease() apiextensionsv1.WebhookConversion
- func (d *WebhookConversionDie) DieReleaseJSON() []byte
- func (d *WebhookConversionDie) DieReleasePtr() *apiextensionsv1.WebhookConversion
- func (d *WebhookConversionDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *WebhookConversionDie) DieReleaseYAML() []byte
- func (d *WebhookConversionDie) DieStamp(fn func(r *apiextensionsv1.WebhookConversion)) *WebhookConversionDie
- func (d *WebhookConversionDie) DieStampAt(jp string, fn interface{}) *WebhookConversionDie
- func (d *WebhookConversionDie) DieWith(fns ...func(d *WebhookConversionDie)) *WebhookConversionDie
Constants ¶
This section is empty.
Variables ¶
var CustomResourceColumnDefinitionBlank = (&CustomResourceColumnDefinitionDie{}).DieFeed(apiextensionsv1.CustomResourceColumnDefinition{})
var CustomResourceConversionBlank = (&CustomResourceConversionDie{}).DieFeed(apiextensionsv1.CustomResourceConversion{})
var CustomResourceDefinitionBlank = (&CustomResourceDefinitionDie{}).DieFeed(apiextensionsv1.CustomResourceDefinition{})
var CustomResourceDefinitionNamesBlank = (&CustomResourceDefinitionNamesDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionNames{})
var CustomResourceDefinitionSpecBlank = (&CustomResourceDefinitionSpecDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionSpec{})
var CustomResourceDefinitionStatusBlank = (&CustomResourceDefinitionStatusDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionStatus{})
var CustomResourceDefinitionVersionBlank = (&CustomResourceDefinitionVersionDie{}).DieFeed(apiextensionsv1.CustomResourceDefinitionVersion{})
var CustomResourceSubresourceScaleBlank = (&CustomResourceSubresourceScaleDie{}).DieFeed(apiextensionsv1.CustomResourceSubresourceScale{})
var CustomResourceSubresourcesBlank = (&CustomResourceSubresourcesDie{}).DieFeed(apiextensionsv1.CustomResourceSubresources{})
var CustomResourceValidationBlank = (&CustomResourceValidationDie{}).DieFeed(apiextensionsv1.CustomResourceValidation{})
var SelectableFieldBlank = (&SelectableFieldDie{}).DieFeed(apiextensionsv1.SelectableField{})
var ServiceReferenceBlank = (&ServiceReferenceDie{}).DieFeed(apiextensionsv1.ServiceReference{})
var WebhookClientConfigBlank = (&WebhookClientConfigDie{}).DieFeed(apiextensionsv1.WebhookClientConfig{})
var WebhookConversionBlank = (&WebhookConversionDie{}).DieFeed(apiextensionsv1.WebhookConversion{})
Functions ¶
This section is empty.
Types ¶
type CustomResourceColumnDefinitionDie ¶
type CustomResourceColumnDefinitionDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceColumnDefinitionDie) DeepCopy ¶
func (d *CustomResourceColumnDefinitionDie) DeepCopy() *CustomResourceColumnDefinitionDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceColumnDefinitionDie) Description ¶
func (d *CustomResourceColumnDefinitionDie) Description(v string) *CustomResourceColumnDefinitionDie
description is a human readable description of this column.
func (*CustomResourceColumnDefinitionDie) DieFeed ¶
func (d *CustomResourceColumnDefinitionDie) DieFeed(r apiextensionsv1.CustomResourceColumnDefinition) *CustomResourceColumnDefinitionDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceColumnDefinitionDie) DieFeedJSON ¶
func (d *CustomResourceColumnDefinitionDie) DieFeedJSON(j []byte) *CustomResourceColumnDefinitionDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceColumnDefinitionDie) DieFeedPtr ¶
func (d *CustomResourceColumnDefinitionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceColumnDefinition) *CustomResourceColumnDefinitionDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceColumnDefinitionDie) DieFeedRawExtension ¶
func (d *CustomResourceColumnDefinitionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceColumnDefinitionDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceColumnDefinitionDie) DieFeedYAML ¶
func (d *CustomResourceColumnDefinitionDie) DieFeedYAML(y []byte) *CustomResourceColumnDefinitionDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceColumnDefinitionDie) DieFeedYAMLFile ¶
func (d *CustomResourceColumnDefinitionDie) DieFeedYAMLFile(name string) *CustomResourceColumnDefinitionDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceColumnDefinitionDie) DieImmutable ¶
func (d *CustomResourceColumnDefinitionDie) DieImmutable(immutable bool) *CustomResourceColumnDefinitionDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceColumnDefinitionDie) DieRelease ¶
func (d *CustomResourceColumnDefinitionDie) DieRelease() apiextensionsv1.CustomResourceColumnDefinition
DieRelease returns the resource managed by the die.
func (*CustomResourceColumnDefinitionDie) DieReleaseJSON ¶
func (d *CustomResourceColumnDefinitionDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceColumnDefinitionDie) DieReleasePtr ¶
func (d *CustomResourceColumnDefinitionDie) DieReleasePtr() *apiextensionsv1.CustomResourceColumnDefinition
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceColumnDefinitionDie) DieReleaseRawExtension ¶
func (d *CustomResourceColumnDefinitionDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceColumnDefinitionDie) DieReleaseYAML ¶
func (d *CustomResourceColumnDefinitionDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceColumnDefinitionDie) DieStamp ¶
func (d *CustomResourceColumnDefinitionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceColumnDefinition)) *CustomResourceColumnDefinitionDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceColumnDefinitionDie) DieStampAt ¶
func (d *CustomResourceColumnDefinitionDie) DieStampAt(jp string, fn interface{}) *CustomResourceColumnDefinitionDie
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 (*CustomResourceColumnDefinitionDie) DieWith ¶
func (d *CustomResourceColumnDefinitionDie) DieWith(fns ...func(d *CustomResourceColumnDefinitionDie)) *CustomResourceColumnDefinitionDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceColumnDefinitionDie) Format ¶
func (d *CustomResourceColumnDefinitionDie) Format(v string) *CustomResourceColumnDefinitionDie
format is an optional OpenAPI type definition for this column. The 'name' format is applied
to the primary identifier column to assist in clients identifying column is the resource name.
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
func (*CustomResourceColumnDefinitionDie) JSONPath ¶
func (d *CustomResourceColumnDefinitionDie) JSONPath(v string) *CustomResourceColumnDefinitionDie
jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against
each custom resource to produce the value for this column.
func (*CustomResourceColumnDefinitionDie) Name ¶
func (d *CustomResourceColumnDefinitionDie) Name(v string) *CustomResourceColumnDefinitionDie
name is a human readable name for the column.
func (*CustomResourceColumnDefinitionDie) Priority ¶
func (d *CustomResourceColumnDefinitionDie) Priority(v int32) *CustomResourceColumnDefinitionDie
priority is an integer defining the relative importance of this column compared to others. Lower
numbers are considered higher priority. Columns that may be omitted in limited space scenarios
should be given a priority greater than 0.
func (*CustomResourceColumnDefinitionDie) Type ¶
func (d *CustomResourceColumnDefinitionDie) Type(v string) *CustomResourceColumnDefinitionDie
type is an OpenAPI type definition for this column.
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
type CustomResourceConversionDie ¶
type CustomResourceConversionDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceConversionDie) DeepCopy ¶
func (d *CustomResourceConversionDie) DeepCopy() *CustomResourceConversionDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceConversionDie) DieFeed ¶
func (d *CustomResourceConversionDie) DieFeed(r apiextensionsv1.CustomResourceConversion) *CustomResourceConversionDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceConversionDie) DieFeedJSON ¶
func (d *CustomResourceConversionDie) DieFeedJSON(j []byte) *CustomResourceConversionDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceConversionDie) DieFeedPtr ¶
func (d *CustomResourceConversionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceConversion) *CustomResourceConversionDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceConversionDie) DieFeedRawExtension ¶
func (d *CustomResourceConversionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceConversionDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceConversionDie) DieFeedYAML ¶
func (d *CustomResourceConversionDie) DieFeedYAML(y []byte) *CustomResourceConversionDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceConversionDie) DieFeedYAMLFile ¶
func (d *CustomResourceConversionDie) DieFeedYAMLFile(name string) *CustomResourceConversionDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceConversionDie) DieImmutable ¶
func (d *CustomResourceConversionDie) DieImmutable(immutable bool) *CustomResourceConversionDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceConversionDie) DieRelease ¶
func (d *CustomResourceConversionDie) DieRelease() apiextensionsv1.CustomResourceConversion
DieRelease returns the resource managed by the die.
func (*CustomResourceConversionDie) DieReleaseJSON ¶
func (d *CustomResourceConversionDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceConversionDie) DieReleasePtr ¶
func (d *CustomResourceConversionDie) DieReleasePtr() *apiextensionsv1.CustomResourceConversion
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceConversionDie) DieReleaseRawExtension ¶
func (d *CustomResourceConversionDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceConversionDie) DieReleaseYAML ¶
func (d *CustomResourceConversionDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceConversionDie) DieStamp ¶
func (d *CustomResourceConversionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceConversion)) *CustomResourceConversionDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceConversionDie) DieStampAt ¶
func (d *CustomResourceConversionDie) DieStampAt(jp string, fn interface{}) *CustomResourceConversionDie
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 (*CustomResourceConversionDie) DieWith ¶
func (d *CustomResourceConversionDie) DieWith(fns ...func(d *CustomResourceConversionDie)) *CustomResourceConversionDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceConversionDie) Strategy ¶
func (d *CustomResourceConversionDie) Strategy(v apiextensionsv1.ConversionStrategyType) *CustomResourceConversionDie
strategy specifies how custom resources are converted between versions. Allowed values are:
- `"None"`: The converter only change the apiVersion and would not touch any other field in the custom resource.
- `"Webhook"`: API Server will call to an external webhook to do the conversion. Additional information
is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.
func (*CustomResourceConversionDie) Webhook ¶
func (d *CustomResourceConversionDie) Webhook(v *apiextensionsv1.WebhookConversion) *CustomResourceConversionDie
webhook describes how to call the conversion webhook. Required when `strategy` is set to `"Webhook"`.
func (*CustomResourceConversionDie) WebhookDie ¶
func (d *CustomResourceConversionDie) WebhookDie(fn func(d *WebhookConversionDie)) *CustomResourceConversionDie
type CustomResourceDefinitionDie ¶
type CustomResourceDefinitionDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*CustomResourceDefinitionDie) APIVersion ¶
func (d *CustomResourceDefinitionDie) APIVersion(v string) *CustomResourceDefinitionDie
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 (*CustomResourceDefinitionDie) DeepCopy ¶
func (d *CustomResourceDefinitionDie) DeepCopy() *CustomResourceDefinitionDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceDefinitionDie) DeepCopyObject ¶
func (d *CustomResourceDefinitionDie) DeepCopyObject() runtime.Object
func (*CustomResourceDefinitionDie) DieFeed ¶
func (d *CustomResourceDefinitionDie) DieFeed(r apiextensionsv1.CustomResourceDefinition) *CustomResourceDefinitionDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceDefinitionDie) DieFeedJSON ¶
func (d *CustomResourceDefinitionDie) DieFeedJSON(j []byte) *CustomResourceDefinitionDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceDefinitionDie) DieFeedPtr ¶
func (d *CustomResourceDefinitionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinition) *CustomResourceDefinitionDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceDefinitionDie) DieFeedRawExtension ¶
func (d *CustomResourceDefinitionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionDie) DieFeedYAML ¶
func (d *CustomResourceDefinitionDie) DieFeedYAML(y []byte) *CustomResourceDefinitionDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceDefinitionDie) DieFeedYAMLFile ¶
func (d *CustomResourceDefinitionDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceDefinitionDie) DieImmutable ¶
func (d *CustomResourceDefinitionDie) DieImmutable(immutable bool) *CustomResourceDefinitionDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceDefinitionDie) DieRelease ¶
func (d *CustomResourceDefinitionDie) DieRelease() apiextensionsv1.CustomResourceDefinition
DieRelease returns the resource managed by the die.
func (*CustomResourceDefinitionDie) DieReleaseJSON ¶
func (d *CustomResourceDefinitionDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceDefinitionDie) DieReleasePtr ¶
func (d *CustomResourceDefinitionDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinition
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceDefinitionDie) DieReleaseRawExtension ¶
func (d *CustomResourceDefinitionDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionDie) DieReleaseUnstructured ¶
func (d *CustomResourceDefinitionDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*CustomResourceDefinitionDie) DieReleaseYAML ¶
func (d *CustomResourceDefinitionDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceDefinitionDie) DieStamp ¶
func (d *CustomResourceDefinitionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinition)) *CustomResourceDefinitionDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceDefinitionDie) DieStampAt ¶
func (d *CustomResourceDefinitionDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionDie
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 (*CustomResourceDefinitionDie) DieWith ¶
func (d *CustomResourceDefinitionDie) DieWith(fns ...func(d *CustomResourceDefinitionDie)) *CustomResourceDefinitionDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceDefinitionDie) GetObjectKind ¶
func (d *CustomResourceDefinitionDie) GetObjectKind() schema.ObjectKind
func (*CustomResourceDefinitionDie) Kind ¶
func (d *CustomResourceDefinitionDie) Kind(v string) *CustomResourceDefinitionDie
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 (*CustomResourceDefinitionDie) MarshalJSON ¶
func (d *CustomResourceDefinitionDie) MarshalJSON() ([]byte, error)
func (*CustomResourceDefinitionDie) MetadataDie ¶
func (d *CustomResourceDefinitionDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CustomResourceDefinitionDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*CustomResourceDefinitionDie) Spec ¶
func (d *CustomResourceDefinitionDie) Spec(v apiextensionsv1.CustomResourceDefinitionSpec) *CustomResourceDefinitionDie
spec describes how the user wants the resources to appear
func (*CustomResourceDefinitionDie) SpecDie ¶
func (d *CustomResourceDefinitionDie) SpecDie(fn func(d *CustomResourceDefinitionSpecDie)) *CustomResourceDefinitionDie
SpecDie stamps the resource's spec field with a mutable die.
func (*CustomResourceDefinitionDie) Status ¶
func (d *CustomResourceDefinitionDie) Status(v apiextensionsv1.CustomResourceDefinitionStatus) *CustomResourceDefinitionDie
status indicates the actual state of the CustomResourceDefinition
func (*CustomResourceDefinitionDie) StatusDie ¶
func (d *CustomResourceDefinitionDie) StatusDie(fn func(d *CustomResourceDefinitionStatusDie)) *CustomResourceDefinitionDie
StatusDie stamps the resource's status field with a mutable die.
func (*CustomResourceDefinitionDie) UnmarshalJSON ¶
func (d *CustomResourceDefinitionDie) UnmarshalJSON(b []byte) error
type CustomResourceDefinitionNamesDie ¶
type CustomResourceDefinitionNamesDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceDefinitionNamesDie) Categories ¶
func (d *CustomResourceDefinitionNamesDie) Categories(v ...string) *CustomResourceDefinitionNamesDie
categories is a list of grouped resources this custom resource belongs to (e.g. 'all').
This is published in API discovery documents, and used by clients to support invocations like ¶
`kubectl get all`.
func (*CustomResourceDefinitionNamesDie) DeepCopy ¶
func (d *CustomResourceDefinitionNamesDie) DeepCopy() *CustomResourceDefinitionNamesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceDefinitionNamesDie) DieFeed ¶
func (d *CustomResourceDefinitionNamesDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionNamesDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceDefinitionNamesDie) DieFeedJSON ¶
func (d *CustomResourceDefinitionNamesDie) DieFeedJSON(j []byte) *CustomResourceDefinitionNamesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceDefinitionNamesDie) DieFeedPtr ¶
func (d *CustomResourceDefinitionNamesDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionNamesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceDefinitionNamesDie) DieFeedRawExtension ¶
func (d *CustomResourceDefinitionNamesDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionNamesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionNamesDie) DieFeedYAML ¶
func (d *CustomResourceDefinitionNamesDie) DieFeedYAML(y []byte) *CustomResourceDefinitionNamesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceDefinitionNamesDie) DieFeedYAMLFile ¶
func (d *CustomResourceDefinitionNamesDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionNamesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceDefinitionNamesDie) DieImmutable ¶
func (d *CustomResourceDefinitionNamesDie) DieImmutable(immutable bool) *CustomResourceDefinitionNamesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceDefinitionNamesDie) DieRelease ¶
func (d *CustomResourceDefinitionNamesDie) DieRelease() apiextensionsv1.CustomResourceDefinitionNames
DieRelease returns the resource managed by the die.
func (*CustomResourceDefinitionNamesDie) DieReleaseJSON ¶
func (d *CustomResourceDefinitionNamesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceDefinitionNamesDie) DieReleasePtr ¶
func (d *CustomResourceDefinitionNamesDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionNames
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceDefinitionNamesDie) DieReleaseRawExtension ¶
func (d *CustomResourceDefinitionNamesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionNamesDie) DieReleaseYAML ¶
func (d *CustomResourceDefinitionNamesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceDefinitionNamesDie) DieStamp ¶
func (d *CustomResourceDefinitionNamesDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionNames)) *CustomResourceDefinitionNamesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceDefinitionNamesDie) DieStampAt ¶
func (d *CustomResourceDefinitionNamesDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionNamesDie
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 (*CustomResourceDefinitionNamesDie) DieWith ¶
func (d *CustomResourceDefinitionNamesDie) DieWith(fns ...func(d *CustomResourceDefinitionNamesDie)) *CustomResourceDefinitionNamesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceDefinitionNamesDie) Kind ¶
func (d *CustomResourceDefinitionNamesDie) Kind(v string) *CustomResourceDefinitionNamesDie
kind is the serialized kind of the resource. It is normally CamelCase and singular.
Custom resource instances will use this value as the `kind` attribute in API calls.
func (*CustomResourceDefinitionNamesDie) ListKind ¶
func (d *CustomResourceDefinitionNamesDie) ListKind(v string) *CustomResourceDefinitionNamesDie
listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
func (*CustomResourceDefinitionNamesDie) Plural ¶
func (d *CustomResourceDefinitionNamesDie) Plural(v string) *CustomResourceDefinitionNamesDie
plural is the plural name of the resource to serve.
The custom resources are served under `/apis/<group>/<version>/.../<plural>`.
Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
Must be all lowercase.
func (*CustomResourceDefinitionNamesDie) ShortNames ¶
func (d *CustomResourceDefinitionNamesDie) ShortNames(v ...string) *CustomResourceDefinitionNamesDie
shortNames are short names for the resource, exposed in API discovery documents,
and used by clients to support invocations like `kubectl get <shortname>`.
It must be all lowercase.
func (*CustomResourceDefinitionNamesDie) Singular ¶
func (d *CustomResourceDefinitionNamesDie) Singular(v string) *CustomResourceDefinitionNamesDie
singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
type CustomResourceDefinitionSpecDie ¶
type CustomResourceDefinitionSpecDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceDefinitionSpecDie) Conversion ¶
func (d *CustomResourceDefinitionSpecDie) Conversion(v *apiextensionsv1.CustomResourceConversion) *CustomResourceDefinitionSpecDie
conversion defines conversion settings for the CRD.
func (*CustomResourceDefinitionSpecDie) ConversionDie ¶
func (d *CustomResourceDefinitionSpecDie) ConversionDie(fn func(d *CustomResourceConversionDie)) *CustomResourceDefinitionSpecDie
func (*CustomResourceDefinitionSpecDie) DeepCopy ¶
func (d *CustomResourceDefinitionSpecDie) DeepCopy() *CustomResourceDefinitionSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceDefinitionSpecDie) DieFeed ¶
func (d *CustomResourceDefinitionSpecDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionSpec) *CustomResourceDefinitionSpecDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceDefinitionSpecDie) DieFeedJSON ¶
func (d *CustomResourceDefinitionSpecDie) DieFeedJSON(j []byte) *CustomResourceDefinitionSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceDefinitionSpecDie) DieFeedPtr ¶
func (d *CustomResourceDefinitionSpecDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionSpec) *CustomResourceDefinitionSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceDefinitionSpecDie) DieFeedRawExtension ¶
func (d *CustomResourceDefinitionSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionSpecDie) DieFeedYAML ¶
func (d *CustomResourceDefinitionSpecDie) DieFeedYAML(y []byte) *CustomResourceDefinitionSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceDefinitionSpecDie) DieFeedYAMLFile ¶
func (d *CustomResourceDefinitionSpecDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceDefinitionSpecDie) DieImmutable ¶
func (d *CustomResourceDefinitionSpecDie) DieImmutable(immutable bool) *CustomResourceDefinitionSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceDefinitionSpecDie) DieRelease ¶
func (d *CustomResourceDefinitionSpecDie) DieRelease() apiextensionsv1.CustomResourceDefinitionSpec
DieRelease returns the resource managed by the die.
func (*CustomResourceDefinitionSpecDie) DieReleaseJSON ¶
func (d *CustomResourceDefinitionSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceDefinitionSpecDie) DieReleasePtr ¶
func (d *CustomResourceDefinitionSpecDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceDefinitionSpecDie) DieReleaseRawExtension ¶
func (d *CustomResourceDefinitionSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionSpecDie) DieReleaseYAML ¶
func (d *CustomResourceDefinitionSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceDefinitionSpecDie) DieStamp ¶
func (d *CustomResourceDefinitionSpecDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionSpec)) *CustomResourceDefinitionSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceDefinitionSpecDie) DieStampAt ¶
func (d *CustomResourceDefinitionSpecDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionSpecDie
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 (*CustomResourceDefinitionSpecDie) DieWith ¶
func (d *CustomResourceDefinitionSpecDie) DieWith(fns ...func(d *CustomResourceDefinitionSpecDie)) *CustomResourceDefinitionSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceDefinitionSpecDie) Group ¶
func (d *CustomResourceDefinitionSpecDie) Group(v string) *CustomResourceDefinitionSpecDie
group is the API group of the defined custom resource.
The custom resources are served under `/apis/<group>/...`.
Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
func (*CustomResourceDefinitionSpecDie) Names ¶
func (d *CustomResourceDefinitionSpecDie) Names(v apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionSpecDie
names specify the resource and kind names for the custom resource.
func (*CustomResourceDefinitionSpecDie) NamesDie ¶
func (d *CustomResourceDefinitionSpecDie) NamesDie(fn func(d *CustomResourceDefinitionNamesDie)) *CustomResourceDefinitionSpecDie
func (*CustomResourceDefinitionSpecDie) PreserveUnknownFields ¶
func (d *CustomResourceDefinitionSpecDie) PreserveUnknownFields(v bool) *CustomResourceDefinitionSpecDie
preserveUnknownFields indicates that object fields which are not specified
in the OpenAPI schema should be preserved when persisting to storage.
apiVersion, kind, metadata and known fields inside metadata are always preserved.
This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`.
See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.
func (*CustomResourceDefinitionSpecDie) Scope ¶
func (d *CustomResourceDefinitionSpecDie) Scope(v apiextensionsv1.ResourceScope) *CustomResourceDefinitionSpecDie
scope indicates whether the defined custom resource is cluster- or namespace-scoped.
Allowed values are `Cluster` and `Namespaced`.
func (*CustomResourceDefinitionSpecDie) VersionDie ¶
func (d *CustomResourceDefinitionSpecDie) VersionDie(name string, fn func(d *CustomResourceDefinitionVersionDie)) *CustomResourceDefinitionSpecDie
func (*CustomResourceDefinitionSpecDie) Versions ¶
func (d *CustomResourceDefinitionSpecDie) Versions(v ...apiextensionsv1.CustomResourceDefinitionVersion) *CustomResourceDefinitionSpecDie
versions is the list of all API versions of the defined custom resource.
Version names are used to compute the order in which served versions are listed in API discovery.
If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered
lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),
then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first
by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing
major version, then minor version. An example sorted list of versions:
v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
type CustomResourceDefinitionStatusDie ¶
type CustomResourceDefinitionStatusDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceDefinitionStatusDie) AcceptedNames ¶
func (d *CustomResourceDefinitionStatusDie) AcceptedNames(v apiextensionsv1.CustomResourceDefinitionNames) *CustomResourceDefinitionStatusDie
acceptedNames are the names that are actually being used to serve discovery.
They may be different than the names in spec.
func (*CustomResourceDefinitionStatusDie) AcceptedNamesDie ¶
func (d *CustomResourceDefinitionStatusDie) AcceptedNamesDie(fn func(d *CustomResourceDefinitionNamesDie)) *CustomResourceDefinitionStatusDie
func (*CustomResourceDefinitionStatusDie) Conditions ¶
func (d *CustomResourceDefinitionStatusDie) Conditions(v ...apiextensionsv1.CustomResourceDefinitionCondition) *CustomResourceDefinitionStatusDie
conditions indicate state for particular aspects of a CustomResourceDefinition
func (*CustomResourceDefinitionStatusDie) ConditionsDie ¶
func (d *CustomResourceDefinitionStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *CustomResourceDefinitionStatusDie
func (*CustomResourceDefinitionStatusDie) DeepCopy ¶
func (d *CustomResourceDefinitionStatusDie) DeepCopy() *CustomResourceDefinitionStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceDefinitionStatusDie) DieFeed ¶
func (d *CustomResourceDefinitionStatusDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionStatus) *CustomResourceDefinitionStatusDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceDefinitionStatusDie) DieFeedJSON ¶
func (d *CustomResourceDefinitionStatusDie) DieFeedJSON(j []byte) *CustomResourceDefinitionStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceDefinitionStatusDie) DieFeedPtr ¶
func (d *CustomResourceDefinitionStatusDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionStatus) *CustomResourceDefinitionStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceDefinitionStatusDie) DieFeedRawExtension ¶
func (d *CustomResourceDefinitionStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionStatusDie) DieFeedYAML ¶
func (d *CustomResourceDefinitionStatusDie) DieFeedYAML(y []byte) *CustomResourceDefinitionStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceDefinitionStatusDie) DieFeedYAMLFile ¶
func (d *CustomResourceDefinitionStatusDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceDefinitionStatusDie) DieImmutable ¶
func (d *CustomResourceDefinitionStatusDie) DieImmutable(immutable bool) *CustomResourceDefinitionStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceDefinitionStatusDie) DieRelease ¶
func (d *CustomResourceDefinitionStatusDie) DieRelease() apiextensionsv1.CustomResourceDefinitionStatus
DieRelease returns the resource managed by the die.
func (*CustomResourceDefinitionStatusDie) DieReleaseJSON ¶
func (d *CustomResourceDefinitionStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceDefinitionStatusDie) DieReleasePtr ¶
func (d *CustomResourceDefinitionStatusDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceDefinitionStatusDie) DieReleaseRawExtension ¶
func (d *CustomResourceDefinitionStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionStatusDie) DieReleaseYAML ¶
func (d *CustomResourceDefinitionStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceDefinitionStatusDie) DieStamp ¶
func (d *CustomResourceDefinitionStatusDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionStatus)) *CustomResourceDefinitionStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceDefinitionStatusDie) DieStampAt ¶
func (d *CustomResourceDefinitionStatusDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionStatusDie
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 (*CustomResourceDefinitionStatusDie) DieWith ¶
func (d *CustomResourceDefinitionStatusDie) DieWith(fns ...func(d *CustomResourceDefinitionStatusDie)) *CustomResourceDefinitionStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceDefinitionStatusDie) StoredVersions ¶
func (d *CustomResourceDefinitionStatusDie) StoredVersions(v ...string) *CustomResourceDefinitionStatusDie
storedVersions lists all versions of CustomResources that were ever persisted. Tracking these
versions allows a migration path for stored versions in etcd. The field is mutable
so a migration controller can finish a migration to another version (ensuring
no old objects are left in storage), and then remove the rest of the
versions from this list.
Versions may not be removed from `spec.versions` while they exist in this list.
type CustomResourceDefinitionVersionDie ¶
type CustomResourceDefinitionVersionDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceDefinitionVersionDie) AdditionalPrinterColumnDie ¶
func (d *CustomResourceDefinitionVersionDie) AdditionalPrinterColumnDie(name string, fn func(d *CustomResourceColumnDefinitionDie)) *CustomResourceDefinitionVersionDie
func (*CustomResourceDefinitionVersionDie) AdditionalPrinterColumns ¶
func (d *CustomResourceDefinitionVersionDie) AdditionalPrinterColumns(v ...apiextensionsv1.CustomResourceColumnDefinition) *CustomResourceDefinitionVersionDie
additionalPrinterColumns specifies additional columns returned in Table output.
See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details.
If no columns are specified, a single column displaying the age of the custom resource is used.
func (*CustomResourceDefinitionVersionDie) DeepCopy ¶
func (d *CustomResourceDefinitionVersionDie) DeepCopy() *CustomResourceDefinitionVersionDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceDefinitionVersionDie) Deprecated ¶
func (d *CustomResourceDefinitionVersionDie) Deprecated(v bool) *CustomResourceDefinitionVersionDie
deprecated indicates this version of the custom resource API is deprecated.
When set to true, API requests to this version receive a warning header in the server response.
Defaults to false.
func (*CustomResourceDefinitionVersionDie) DeprecationWarning ¶
func (d *CustomResourceDefinitionVersionDie) DeprecationWarning(v *string) *CustomResourceDefinitionVersionDie
deprecationWarning overrides the default warning returned to API clients.
May only be set when `deprecated` is true.
The default warning indicates this version is deprecated and recommends use ¶
of the newest served version of equal or greater stability, if one exists.
func (*CustomResourceDefinitionVersionDie) DieFeed ¶
func (d *CustomResourceDefinitionVersionDie) DieFeed(r apiextensionsv1.CustomResourceDefinitionVersion) *CustomResourceDefinitionVersionDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceDefinitionVersionDie) DieFeedJSON ¶
func (d *CustomResourceDefinitionVersionDie) DieFeedJSON(j []byte) *CustomResourceDefinitionVersionDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceDefinitionVersionDie) DieFeedPtr ¶
func (d *CustomResourceDefinitionVersionDie) DieFeedPtr(r *apiextensionsv1.CustomResourceDefinitionVersion) *CustomResourceDefinitionVersionDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceDefinitionVersionDie) DieFeedRawExtension ¶
func (d *CustomResourceDefinitionVersionDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceDefinitionVersionDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionVersionDie) DieFeedYAML ¶
func (d *CustomResourceDefinitionVersionDie) DieFeedYAML(y []byte) *CustomResourceDefinitionVersionDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceDefinitionVersionDie) DieFeedYAMLFile ¶
func (d *CustomResourceDefinitionVersionDie) DieFeedYAMLFile(name string) *CustomResourceDefinitionVersionDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceDefinitionVersionDie) DieImmutable ¶
func (d *CustomResourceDefinitionVersionDie) DieImmutable(immutable bool) *CustomResourceDefinitionVersionDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceDefinitionVersionDie) DieRelease ¶
func (d *CustomResourceDefinitionVersionDie) DieRelease() apiextensionsv1.CustomResourceDefinitionVersion
DieRelease returns the resource managed by the die.
func (*CustomResourceDefinitionVersionDie) DieReleaseJSON ¶
func (d *CustomResourceDefinitionVersionDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceDefinitionVersionDie) DieReleasePtr ¶
func (d *CustomResourceDefinitionVersionDie) DieReleasePtr() *apiextensionsv1.CustomResourceDefinitionVersion
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceDefinitionVersionDie) DieReleaseRawExtension ¶
func (d *CustomResourceDefinitionVersionDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceDefinitionVersionDie) DieReleaseYAML ¶
func (d *CustomResourceDefinitionVersionDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceDefinitionVersionDie) DieStamp ¶
func (d *CustomResourceDefinitionVersionDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceDefinitionVersion)) *CustomResourceDefinitionVersionDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceDefinitionVersionDie) DieStampAt ¶
func (d *CustomResourceDefinitionVersionDie) DieStampAt(jp string, fn interface{}) *CustomResourceDefinitionVersionDie
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 (*CustomResourceDefinitionVersionDie) DieWith ¶
func (d *CustomResourceDefinitionVersionDie) DieWith(fns ...func(d *CustomResourceDefinitionVersionDie)) *CustomResourceDefinitionVersionDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceDefinitionVersionDie) Name ¶
func (d *CustomResourceDefinitionVersionDie) Name(v string) *CustomResourceDefinitionVersionDie
name is the version name, e.g. “v1”, “v2beta1”, etc.
The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
func (*CustomResourceDefinitionVersionDie) Schema ¶
func (d *CustomResourceDefinitionVersionDie) Schema(v *apiextensionsv1.CustomResourceValidation) *CustomResourceDefinitionVersionDie
schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.
func (*CustomResourceDefinitionVersionDie) SchemaDie ¶
func (d *CustomResourceDefinitionVersionDie) SchemaDie(fn func(d *CustomResourceValidationDie)) *CustomResourceDefinitionVersionDie
func (*CustomResourceDefinitionVersionDie) SelectableFields ¶ added in v0.12.0
func (d *CustomResourceDefinitionVersionDie) SelectableFields(v ...apiextensionsv1.SelectableField) *CustomResourceDefinitionVersionDie
selectableFields specifies paths to fields that may be used as field selectors.
A maximum of 8 selectable fields are allowed.
See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors
func (*CustomResourceDefinitionVersionDie) SelectableFieldsDie ¶ added in v0.12.0
func (d *CustomResourceDefinitionVersionDie) SelectableFieldsDie(fields ...*SelectableFieldDie) *CustomResourceDefinitionVersionDie
func (*CustomResourceDefinitionVersionDie) Served ¶
func (d *CustomResourceDefinitionVersionDie) Served(v bool) *CustomResourceDefinitionVersionDie
served is a flag enabling/disabling this version from being served via REST APIs
func (*CustomResourceDefinitionVersionDie) Storage ¶
func (d *CustomResourceDefinitionVersionDie) Storage(v bool) *CustomResourceDefinitionVersionDie
storage indicates this version should be used when persisting custom resources to storage.
There must be exactly one version with storage=true.
func (*CustomResourceDefinitionVersionDie) Subresources ¶
func (d *CustomResourceDefinitionVersionDie) Subresources(v *apiextensionsv1.CustomResourceSubresources) *CustomResourceDefinitionVersionDie
subresources specify what subresources this version of the defined custom resource have.
func (*CustomResourceDefinitionVersionDie) SubresourcesDie ¶
func (d *CustomResourceDefinitionVersionDie) SubresourcesDie(fn func(d *CustomResourceSubresourcesDie)) *CustomResourceDefinitionVersionDie
type CustomResourceSubresourceScaleDie ¶
type CustomResourceSubresourceScaleDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceSubresourceScaleDie) DeepCopy ¶
func (d *CustomResourceSubresourceScaleDie) DeepCopy() *CustomResourceSubresourceScaleDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceSubresourceScaleDie) DieFeed ¶
func (d *CustomResourceSubresourceScaleDie) DieFeed(r apiextensionsv1.CustomResourceSubresourceScale) *CustomResourceSubresourceScaleDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceSubresourceScaleDie) DieFeedJSON ¶
func (d *CustomResourceSubresourceScaleDie) DieFeedJSON(j []byte) *CustomResourceSubresourceScaleDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceSubresourceScaleDie) DieFeedPtr ¶
func (d *CustomResourceSubresourceScaleDie) DieFeedPtr(r *apiextensionsv1.CustomResourceSubresourceScale) *CustomResourceSubresourceScaleDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceSubresourceScaleDie) DieFeedRawExtension ¶
func (d *CustomResourceSubresourceScaleDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceSubresourceScaleDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceSubresourceScaleDie) DieFeedYAML ¶
func (d *CustomResourceSubresourceScaleDie) DieFeedYAML(y []byte) *CustomResourceSubresourceScaleDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceSubresourceScaleDie) DieFeedYAMLFile ¶
func (d *CustomResourceSubresourceScaleDie) DieFeedYAMLFile(name string) *CustomResourceSubresourceScaleDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceSubresourceScaleDie) DieImmutable ¶
func (d *CustomResourceSubresourceScaleDie) DieImmutable(immutable bool) *CustomResourceSubresourceScaleDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceSubresourceScaleDie) DieRelease ¶
func (d *CustomResourceSubresourceScaleDie) DieRelease() apiextensionsv1.CustomResourceSubresourceScale
DieRelease returns the resource managed by the die.
func (*CustomResourceSubresourceScaleDie) DieReleaseJSON ¶
func (d *CustomResourceSubresourceScaleDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceSubresourceScaleDie) DieReleasePtr ¶
func (d *CustomResourceSubresourceScaleDie) DieReleasePtr() *apiextensionsv1.CustomResourceSubresourceScale
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceSubresourceScaleDie) DieReleaseRawExtension ¶
func (d *CustomResourceSubresourceScaleDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceSubresourceScaleDie) DieReleaseYAML ¶
func (d *CustomResourceSubresourceScaleDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceSubresourceScaleDie) DieStamp ¶
func (d *CustomResourceSubresourceScaleDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceSubresourceScale)) *CustomResourceSubresourceScaleDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceSubresourceScaleDie) DieStampAt ¶
func (d *CustomResourceSubresourceScaleDie) DieStampAt(jp string, fn interface{}) *CustomResourceSubresourceScaleDie
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 (*CustomResourceSubresourceScaleDie) DieWith ¶
func (d *CustomResourceSubresourceScaleDie) DieWith(fns ...func(d *CustomResourceSubresourceScaleDie)) *CustomResourceSubresourceScaleDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceSubresourceScaleDie) LabelSelectorPath ¶
func (d *CustomResourceSubresourceScaleDie) LabelSelectorPath(v *string) *CustomResourceSubresourceScaleDie
labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.
Only JSON paths without the array notation are allowed.
Must be a JSON Path under `.status` or `.spec`.
Must be set to work with HorizontalPodAutoscaler.
The field pointed by this JSON path must be a string field (not a complex selector struct)
which contains a serialized label selector in string form.
If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale`
subresource will default to the empty string.
func (*CustomResourceSubresourceScaleDie) SpecReplicasPath ¶
func (d *CustomResourceSubresourceScaleDie) SpecReplicasPath(v string) *CustomResourceSubresourceScaleDie
specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`.
Only JSON paths without the array notation are allowed.
Must be a JSON Path under `.spec`.
If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.
func (*CustomResourceSubresourceScaleDie) StatusReplicasPath ¶
func (d *CustomResourceSubresourceScaleDie) StatusReplicasPath(v string) *CustomResourceSubresourceScaleDie
statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`.
Only JSON paths without the array notation are allowed.
Must be a JSON Path under `.status`.
If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource
will default to 0.
type CustomResourceSubresourcesDie ¶
type CustomResourceSubresourcesDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceSubresourcesDie) DeepCopy ¶
func (d *CustomResourceSubresourcesDie) DeepCopy() *CustomResourceSubresourcesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceSubresourcesDie) DieFeed ¶
func (d *CustomResourceSubresourcesDie) DieFeed(r apiextensionsv1.CustomResourceSubresources) *CustomResourceSubresourcesDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceSubresourcesDie) DieFeedJSON ¶
func (d *CustomResourceSubresourcesDie) DieFeedJSON(j []byte) *CustomResourceSubresourcesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceSubresourcesDie) DieFeedPtr ¶
func (d *CustomResourceSubresourcesDie) DieFeedPtr(r *apiextensionsv1.CustomResourceSubresources) *CustomResourceSubresourcesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceSubresourcesDie) DieFeedRawExtension ¶
func (d *CustomResourceSubresourcesDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceSubresourcesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceSubresourcesDie) DieFeedYAML ¶
func (d *CustomResourceSubresourcesDie) DieFeedYAML(y []byte) *CustomResourceSubresourcesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceSubresourcesDie) DieFeedYAMLFile ¶
func (d *CustomResourceSubresourcesDie) DieFeedYAMLFile(name string) *CustomResourceSubresourcesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceSubresourcesDie) DieImmutable ¶
func (d *CustomResourceSubresourcesDie) DieImmutable(immutable bool) *CustomResourceSubresourcesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceSubresourcesDie) DieRelease ¶
func (d *CustomResourceSubresourcesDie) DieRelease() apiextensionsv1.CustomResourceSubresources
DieRelease returns the resource managed by the die.
func (*CustomResourceSubresourcesDie) DieReleaseJSON ¶
func (d *CustomResourceSubresourcesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceSubresourcesDie) DieReleasePtr ¶
func (d *CustomResourceSubresourcesDie) DieReleasePtr() *apiextensionsv1.CustomResourceSubresources
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceSubresourcesDie) DieReleaseRawExtension ¶
func (d *CustomResourceSubresourcesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceSubresourcesDie) DieReleaseYAML ¶
func (d *CustomResourceSubresourcesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceSubresourcesDie) DieStamp ¶
func (d *CustomResourceSubresourcesDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceSubresources)) *CustomResourceSubresourcesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceSubresourcesDie) DieStampAt ¶
func (d *CustomResourceSubresourcesDie) DieStampAt(jp string, fn interface{}) *CustomResourceSubresourcesDie
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 (*CustomResourceSubresourcesDie) DieWith ¶
func (d *CustomResourceSubresourcesDie) DieWith(fns ...func(d *CustomResourceSubresourcesDie)) *CustomResourceSubresourcesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceSubresourcesDie) Scale ¶
func (d *CustomResourceSubresourcesDie) Scale(v *apiextensionsv1.CustomResourceSubresourceScale) *CustomResourceSubresourcesDie
scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
func (*CustomResourceSubresourcesDie) ScaleDie ¶
func (d *CustomResourceSubresourcesDie) ScaleDie(fn func(d *CustomResourceSubresourceScaleDie)) *CustomResourceSubresourcesDie
func (*CustomResourceSubresourcesDie) Status ¶
func (d *CustomResourceSubresourcesDie) Status(v *apiextensionsv1.CustomResourceSubresourceStatus) *CustomResourceSubresourcesDie
status indicates the custom resource should serve a `/status` subresource.
When enabled:
1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object.
2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
type CustomResourceValidationDie ¶
type CustomResourceValidationDie struct {
// contains filtered or unexported fields
}
func (*CustomResourceValidationDie) DeepCopy ¶
func (d *CustomResourceValidationDie) DeepCopy() *CustomResourceValidationDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CustomResourceValidationDie) DieFeed ¶
func (d *CustomResourceValidationDie) DieFeed(r apiextensionsv1.CustomResourceValidation) *CustomResourceValidationDie
DieFeed returns a new die with the provided resource.
func (*CustomResourceValidationDie) DieFeedJSON ¶
func (d *CustomResourceValidationDie) DieFeedJSON(j []byte) *CustomResourceValidationDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CustomResourceValidationDie) DieFeedPtr ¶
func (d *CustomResourceValidationDie) DieFeedPtr(r *apiextensionsv1.CustomResourceValidation) *CustomResourceValidationDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CustomResourceValidationDie) DieFeedRawExtension ¶
func (d *CustomResourceValidationDie) DieFeedRawExtension(raw runtime.RawExtension) *CustomResourceValidationDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceValidationDie) DieFeedYAML ¶
func (d *CustomResourceValidationDie) DieFeedYAML(y []byte) *CustomResourceValidationDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CustomResourceValidationDie) DieFeedYAMLFile ¶
func (d *CustomResourceValidationDie) DieFeedYAMLFile(name string) *CustomResourceValidationDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CustomResourceValidationDie) DieImmutable ¶
func (d *CustomResourceValidationDie) DieImmutable(immutable bool) *CustomResourceValidationDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CustomResourceValidationDie) DieRelease ¶
func (d *CustomResourceValidationDie) DieRelease() apiextensionsv1.CustomResourceValidation
DieRelease returns the resource managed by the die.
func (*CustomResourceValidationDie) DieReleaseJSON ¶
func (d *CustomResourceValidationDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CustomResourceValidationDie) DieReleasePtr ¶
func (d *CustomResourceValidationDie) DieReleasePtr() *apiextensionsv1.CustomResourceValidation
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CustomResourceValidationDie) DieReleaseRawExtension ¶
func (d *CustomResourceValidationDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CustomResourceValidationDie) DieReleaseYAML ¶
func (d *CustomResourceValidationDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CustomResourceValidationDie) DieStamp ¶
func (d *CustomResourceValidationDie) DieStamp(fn func(r *apiextensionsv1.CustomResourceValidation)) *CustomResourceValidationDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CustomResourceValidationDie) DieStampAt ¶
func (d *CustomResourceValidationDie) DieStampAt(jp string, fn interface{}) *CustomResourceValidationDie
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 (*CustomResourceValidationDie) DieWith ¶
func (d *CustomResourceValidationDie) DieWith(fns ...func(d *CustomResourceValidationDie)) *CustomResourceValidationDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CustomResourceValidationDie) OpenAPIV3Schema ¶
func (d *CustomResourceValidationDie) OpenAPIV3Schema(v *apiextensionsv1.JSONSchemaProps) *CustomResourceValidationDie
openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
type SelectableFieldDie ¶ added in v0.12.0
type SelectableFieldDie struct {
// contains filtered or unexported fields
}
func (*SelectableFieldDie) DeepCopy ¶ added in v0.12.0
func (d *SelectableFieldDie) DeepCopy() *SelectableFieldDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SelectableFieldDie) DieFeed ¶ added in v0.12.0
func (d *SelectableFieldDie) DieFeed(r apiextensionsv1.SelectableField) *SelectableFieldDie
DieFeed returns a new die with the provided resource.
func (*SelectableFieldDie) DieFeedJSON ¶ added in v0.12.0
func (d *SelectableFieldDie) DieFeedJSON(j []byte) *SelectableFieldDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*SelectableFieldDie) DieFeedPtr ¶ added in v0.12.0
func (d *SelectableFieldDie) DieFeedPtr(r *apiextensionsv1.SelectableField) *SelectableFieldDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*SelectableFieldDie) DieFeedRawExtension ¶ added in v0.12.0
func (d *SelectableFieldDie) DieFeedRawExtension(raw runtime.RawExtension) *SelectableFieldDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelectableFieldDie) DieFeedYAML ¶ added in v0.12.0
func (d *SelectableFieldDie) DieFeedYAML(y []byte) *SelectableFieldDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*SelectableFieldDie) DieFeedYAMLFile ¶ added in v0.12.0
func (d *SelectableFieldDie) DieFeedYAMLFile(name string) *SelectableFieldDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*SelectableFieldDie) DieImmutable ¶ added in v0.12.0
func (d *SelectableFieldDie) DieImmutable(immutable bool) *SelectableFieldDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*SelectableFieldDie) DieRelease ¶ added in v0.12.0
func (d *SelectableFieldDie) DieRelease() apiextensionsv1.SelectableField
DieRelease returns the resource managed by the die.
func (*SelectableFieldDie) DieReleaseJSON ¶ added in v0.12.0
func (d *SelectableFieldDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*SelectableFieldDie) DieReleasePtr ¶ added in v0.12.0
func (d *SelectableFieldDie) DieReleasePtr() *apiextensionsv1.SelectableField
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SelectableFieldDie) DieReleaseRawExtension ¶ added in v0.12.0
func (d *SelectableFieldDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*SelectableFieldDie) DieReleaseYAML ¶ added in v0.12.0
func (d *SelectableFieldDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*SelectableFieldDie) DieStamp ¶ added in v0.12.0
func (d *SelectableFieldDie) DieStamp(fn func(r *apiextensionsv1.SelectableField)) *SelectableFieldDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SelectableFieldDie) DieStampAt ¶ added in v0.12.0
func (d *SelectableFieldDie) DieStampAt(jp string, fn interface{}) *SelectableFieldDie
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 (*SelectableFieldDie) DieWith ¶ added in v0.12.0
func (d *SelectableFieldDie) DieWith(fns ...func(d *SelectableFieldDie)) *SelectableFieldDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*SelectableFieldDie) JSONPath ¶ added in v0.12.0
func (d *SelectableFieldDie) JSONPath(v string) *SelectableFieldDie
jsonPath is a simple JSON path which is evaluated against each custom resource to produce a
field selector value.
Only JSON paths without the array notation are allowed.
Must point to a field of type string, boolean or integer. Types with enum values
and strings with formats are allowed.
If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string.
Must not point to metdata fields.
Required.
type ServiceReferenceDie ¶
type ServiceReferenceDie struct {
// contains filtered or unexported fields
}
func (*ServiceReferenceDie) DeepCopy ¶
func (d *ServiceReferenceDie) DeepCopy() *ServiceReferenceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ServiceReferenceDie) DieFeed ¶
func (d *ServiceReferenceDie) DieFeed(r apiextensionsv1.ServiceReference) *ServiceReferenceDie
DieFeed returns a new die with the provided resource.
func (*ServiceReferenceDie) DieFeedJSON ¶
func (d *ServiceReferenceDie) DieFeedJSON(j []byte) *ServiceReferenceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ServiceReferenceDie) DieFeedPtr ¶
func (d *ServiceReferenceDie) DieFeedPtr(r *apiextensionsv1.ServiceReference) *ServiceReferenceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ServiceReferenceDie) DieFeedRawExtension ¶
func (d *ServiceReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceReferenceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ServiceReferenceDie) DieFeedYAML ¶
func (d *ServiceReferenceDie) DieFeedYAML(y []byte) *ServiceReferenceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ServiceReferenceDie) DieFeedYAMLFile ¶
func (d *ServiceReferenceDie) DieFeedYAMLFile(name string) *ServiceReferenceDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ServiceReferenceDie) DieImmutable ¶
func (d *ServiceReferenceDie) DieImmutable(immutable bool) *ServiceReferenceDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ServiceReferenceDie) DieRelease ¶
func (d *ServiceReferenceDie) DieRelease() apiextensionsv1.ServiceReference
DieRelease returns the resource managed by the die.
func (*ServiceReferenceDie) DieReleaseJSON ¶
func (d *ServiceReferenceDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ServiceReferenceDie) DieReleasePtr ¶
func (d *ServiceReferenceDie) DieReleasePtr() *apiextensionsv1.ServiceReference
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ServiceReferenceDie) DieReleaseRawExtension ¶
func (d *ServiceReferenceDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ServiceReferenceDie) DieReleaseYAML ¶
func (d *ServiceReferenceDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ServiceReferenceDie) DieStamp ¶
func (d *ServiceReferenceDie) DieStamp(fn func(r *apiextensionsv1.ServiceReference)) *ServiceReferenceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ServiceReferenceDie) DieStampAt ¶
func (d *ServiceReferenceDie) DieStampAt(jp string, fn interface{}) *ServiceReferenceDie
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 (*ServiceReferenceDie) DieWith ¶
func (d *ServiceReferenceDie) DieWith(fns ...func(d *ServiceReferenceDie)) *ServiceReferenceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ServiceReferenceDie) Name ¶
func (d *ServiceReferenceDie) Name(v string) *ServiceReferenceDie
name is the name of the service.
Required
func (*ServiceReferenceDie) Namespace ¶
func (d *ServiceReferenceDie) Namespace(v string) *ServiceReferenceDie
namespace is the namespace of the service.
Required
func (*ServiceReferenceDie) Path ¶
func (d *ServiceReferenceDie) Path(v *string) *ServiceReferenceDie
path is an optional URL path at which the webhook will be contacted.
func (*ServiceReferenceDie) Port ¶
func (d *ServiceReferenceDie) Port(v *int32) *ServiceReferenceDie
port is an optional service port at which the webhook will be contacted.
`port` should be a valid port number (1-65535, inclusive).
Defaults to 443 for backward compatibility.
type WebhookClientConfigDie ¶
type WebhookClientConfigDie struct {
// contains filtered or unexported fields
}
func (*WebhookClientConfigDie) CABundle ¶
func (d *WebhookClientConfigDie) CABundle(v []byte) *WebhookClientConfigDie
caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
If unspecified, system trust roots on the apiserver are used.
func (*WebhookClientConfigDie) DeepCopy ¶
func (d *WebhookClientConfigDie) DeepCopy() *WebhookClientConfigDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*WebhookClientConfigDie) DieFeed ¶
func (d *WebhookClientConfigDie) DieFeed(r apiextensionsv1.WebhookClientConfig) *WebhookClientConfigDie
DieFeed returns a new die with the provided resource.
func (*WebhookClientConfigDie) DieFeedJSON ¶
func (d *WebhookClientConfigDie) DieFeedJSON(j []byte) *WebhookClientConfigDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*WebhookClientConfigDie) DieFeedPtr ¶
func (d *WebhookClientConfigDie) DieFeedPtr(r *apiextensionsv1.WebhookClientConfig) *WebhookClientConfigDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*WebhookClientConfigDie) DieFeedRawExtension ¶
func (d *WebhookClientConfigDie) DieFeedRawExtension(raw runtime.RawExtension) *WebhookClientConfigDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*WebhookClientConfigDie) DieFeedYAML ¶
func (d *WebhookClientConfigDie) DieFeedYAML(y []byte) *WebhookClientConfigDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*WebhookClientConfigDie) DieFeedYAMLFile ¶
func (d *WebhookClientConfigDie) DieFeedYAMLFile(name string) *WebhookClientConfigDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*WebhookClientConfigDie) DieImmutable ¶
func (d *WebhookClientConfigDie) DieImmutable(immutable bool) *WebhookClientConfigDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*WebhookClientConfigDie) DieRelease ¶
func (d *WebhookClientConfigDie) DieRelease() apiextensionsv1.WebhookClientConfig
DieRelease returns the resource managed by the die.
func (*WebhookClientConfigDie) DieReleaseJSON ¶
func (d *WebhookClientConfigDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*WebhookClientConfigDie) DieReleasePtr ¶
func (d *WebhookClientConfigDie) DieReleasePtr() *apiextensionsv1.WebhookClientConfig
DieReleasePtr returns a pointer to the resource managed by the die.
func (*WebhookClientConfigDie) DieReleaseRawExtension ¶
func (d *WebhookClientConfigDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*WebhookClientConfigDie) DieReleaseYAML ¶
func (d *WebhookClientConfigDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*WebhookClientConfigDie) DieStamp ¶
func (d *WebhookClientConfigDie) DieStamp(fn func(r *apiextensionsv1.WebhookClientConfig)) *WebhookClientConfigDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*WebhookClientConfigDie) DieStampAt ¶
func (d *WebhookClientConfigDie) DieStampAt(jp string, fn interface{}) *WebhookClientConfigDie
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 (*WebhookClientConfigDie) DieWith ¶
func (d *WebhookClientConfigDie) DieWith(fns ...func(d *WebhookClientConfigDie)) *WebhookClientConfigDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*WebhookClientConfigDie) Service ¶
func (d *WebhookClientConfigDie) Service(v *apiextensionsv1.ServiceReference) *WebhookClientConfigDie
service is a reference to the service for this webhook. Either
service or url must be specified.
If the webhook is running within the cluster, then you should use `service`.
func (*WebhookClientConfigDie) ServiceDie ¶
func (d *WebhookClientConfigDie) ServiceDie(fn func(d *ServiceReferenceDie)) *WebhookClientConfigDie
func (*WebhookClientConfigDie) URL ¶
func (d *WebhookClientConfigDie) URL(v *string) *WebhookClientConfigDie
url gives the location of the webhook, in standard URL form
(`scheme://host:port/path`). Exactly one of `url` or `service`
must be specified.
The `host` should not refer to a service running in the cluster; use
the `service` field instead. The host might be resolved via external
DNS in some apiservers (e.g., `kube-apiserver` cannot resolve ¶
in-cluster DNS as that would be a layering violation). `host` may
also be an IP address.
Please note that using `localhost` or `127.0.0.1` as a `host` is ¶
risky unless you take great care to run this webhook on all hosts
which run an apiserver which might need to make calls to this
webhook. Such installs are likely to be non-portable, i.e., not easy
to turn up in a new cluster.
The scheme must be "https"; the URL must begin with "https://".
A path is optional, and if present may be any string permissible in ¶
a URL. You may use the path to pass an arbitrary string to the
webhook, for example, a cluster identifier.
Attempting to use a user or basic auth e.g. "user:password@" is not
allowed. Fragments ("#...") and query parameters ("?...") are not
allowed, either.
type WebhookConversionDie ¶
type WebhookConversionDie struct {
// contains filtered or unexported fields
}
func (*WebhookConversionDie) ClientConfig ¶
func (d *WebhookConversionDie) ClientConfig(v *apiextensionsv1.WebhookClientConfig) *WebhookConversionDie
clientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
func (*WebhookConversionDie) ClientConfigDie ¶
func (d *WebhookConversionDie) ClientConfigDie(fn func(d *WebhookClientConfigDie)) *WebhookConversionDie
func (*WebhookConversionDie) ConversionReviewVersions ¶
func (d *WebhookConversionDie) ConversionReviewVersions(v ...string) *WebhookConversionDie
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects. The API server will use the first version in
the list which it supports. If none of the versions specified in this list
are supported by API server, conversion will fail for the custom resource.
If a persisted Webhook configuration specifies allowed versions and does not ¶
include any versions known to the API Server, calls to the webhook will fail.
func (*WebhookConversionDie) DeepCopy ¶
func (d *WebhookConversionDie) DeepCopy() *WebhookConversionDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*WebhookConversionDie) DieFeed ¶
func (d *WebhookConversionDie) DieFeed(r apiextensionsv1.WebhookConversion) *WebhookConversionDie
DieFeed returns a new die with the provided resource.
func (*WebhookConversionDie) DieFeedJSON ¶
func (d *WebhookConversionDie) DieFeedJSON(j []byte) *WebhookConversionDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*WebhookConversionDie) DieFeedPtr ¶
func (d *WebhookConversionDie) DieFeedPtr(r *apiextensionsv1.WebhookConversion) *WebhookConversionDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*WebhookConversionDie) DieFeedRawExtension ¶
func (d *WebhookConversionDie) DieFeedRawExtension(raw runtime.RawExtension) *WebhookConversionDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*WebhookConversionDie) DieFeedYAML ¶
func (d *WebhookConversionDie) DieFeedYAML(y []byte) *WebhookConversionDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*WebhookConversionDie) DieFeedYAMLFile ¶
func (d *WebhookConversionDie) DieFeedYAMLFile(name string) *WebhookConversionDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*WebhookConversionDie) DieImmutable ¶
func (d *WebhookConversionDie) DieImmutable(immutable bool) *WebhookConversionDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*WebhookConversionDie) DieRelease ¶
func (d *WebhookConversionDie) DieRelease() apiextensionsv1.WebhookConversion
DieRelease returns the resource managed by the die.
func (*WebhookConversionDie) DieReleaseJSON ¶
func (d *WebhookConversionDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*WebhookConversionDie) DieReleasePtr ¶
func (d *WebhookConversionDie) DieReleasePtr() *apiextensionsv1.WebhookConversion
DieReleasePtr returns a pointer to the resource managed by the die.
func (*WebhookConversionDie) DieReleaseRawExtension ¶
func (d *WebhookConversionDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*WebhookConversionDie) DieReleaseYAML ¶
func (d *WebhookConversionDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*WebhookConversionDie) DieStamp ¶
func (d *WebhookConversionDie) DieStamp(fn func(r *apiextensionsv1.WebhookConversion)) *WebhookConversionDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*WebhookConversionDie) DieStampAt ¶
func (d *WebhookConversionDie) DieStampAt(jp string, fn interface{}) *WebhookConversionDie
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 (*WebhookConversionDie) DieWith ¶
func (d *WebhookConversionDie) DieWith(fns ...func(d *WebhookConversionDie)) *WebhookConversionDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.