Documentation
¶
Index ¶
- Variables
- type APIServiceDie
- func (d *APIServiceDie) APIVersion(v string) *APIServiceDie
- func (d *APIServiceDie) DeepCopy() *APIServiceDie
- func (d *APIServiceDie) DeepCopyObject() runtime.Object
- func (d *APIServiceDie) DieFeed(r apiregistration.APIService) *APIServiceDie
- func (d *APIServiceDie) DieFeedJSON(j []byte) *APIServiceDie
- func (d *APIServiceDie) DieFeedPtr(r *apiregistration.APIService) *APIServiceDie
- func (d *APIServiceDie) DieFeedRawExtension(raw runtime.RawExtension) *APIServiceDie
- func (d *APIServiceDie) DieFeedYAML(y []byte) *APIServiceDie
- func (d *APIServiceDie) DieFeedYAMLFile(name string) *APIServiceDie
- func (d *APIServiceDie) DieImmutable(immutable bool) *APIServiceDie
- func (d *APIServiceDie) DieRelease() apiregistration.APIService
- func (d *APIServiceDie) DieReleaseJSON() []byte
- func (d *APIServiceDie) DieReleasePtr() *apiregistration.APIService
- func (d *APIServiceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *APIServiceDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *APIServiceDie) DieReleaseYAML() []byte
- func (d *APIServiceDie) DieStamp(fn func(r *apiregistration.APIService)) *APIServiceDie
- func (d *APIServiceDie) DieStampAt(jp string, fn interface{}) *APIServiceDie
- func (d *APIServiceDie) DieWith(fns ...func(d *APIServiceDie)) *APIServiceDie
- func (d *APIServiceDie) GetObjectKind() schema.ObjectKind
- func (d *APIServiceDie) Kind(v string) *APIServiceDie
- func (d *APIServiceDie) MarshalJSON() ([]byte, error)
- func (d *APIServiceDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *APIServiceDie
- func (d *APIServiceDie) Spec(v apiregistration.APIServiceSpec) *APIServiceDie
- func (d *APIServiceDie) SpecDie(fn func(d *APIServiceSpecDie)) *APIServiceDie
- func (d *APIServiceDie) Status(v apiregistration.APIServiceStatus) *APIServiceDie
- func (d *APIServiceDie) StatusDie(fn func(d *APIServiceStatusDie)) *APIServiceDie
- func (d *APIServiceDie) UnmarshalJSON(b []byte) error
- type APIServiceSpecDie
- func (d *APIServiceSpecDie) CABundle(v []byte) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DeepCopy() *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieFeed(r apiregistration.APIServiceSpec) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieFeedJSON(j []byte) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieFeedPtr(r *apiregistration.APIServiceSpec) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieFeedYAML(y []byte) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieFeedYAMLFile(name string) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieImmutable(immutable bool) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieRelease() apiregistration.APIServiceSpec
- func (d *APIServiceSpecDie) DieReleaseJSON() []byte
- func (d *APIServiceSpecDie) DieReleasePtr() *apiregistration.APIServiceSpec
- func (d *APIServiceSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *APIServiceSpecDie) DieReleaseYAML() []byte
- func (d *APIServiceSpecDie) DieStamp(fn func(r *apiregistration.APIServiceSpec)) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieStampAt(jp string, fn interface{}) *APIServiceSpecDie
- func (d *APIServiceSpecDie) DieWith(fns ...func(d *APIServiceSpecDie)) *APIServiceSpecDie
- func (d *APIServiceSpecDie) Group(v string) *APIServiceSpecDie
- func (d *APIServiceSpecDie) GroupPriorityMinimum(v int32) *APIServiceSpecDie
- func (d *APIServiceSpecDie) InsecureSkipTLSVerify(v bool) *APIServiceSpecDie
- func (d *APIServiceSpecDie) Service(v *apiregistration.ServiceReference) *APIServiceSpecDie
- func (d *APIServiceSpecDie) TargetDie(fn func(d *ServiceReferenceDie)) *APIServiceSpecDie
- func (d *APIServiceSpecDie) Version(v string) *APIServiceSpecDie
- func (d *APIServiceSpecDie) VersionPriority(v int32) *APIServiceSpecDie
- type APIServiceStatusDie
- func (d *APIServiceStatusDie) Conditions(v ...apiregistration.APIServiceCondition) *APIServiceStatusDie
- func (d *APIServiceStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DeepCopy() *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieFeed(r apiregistration.APIServiceStatus) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieFeedJSON(j []byte) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieFeedPtr(r *apiregistration.APIServiceStatus) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieFeedYAML(y []byte) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieFeedYAMLFile(name string) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieImmutable(immutable bool) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieRelease() apiregistration.APIServiceStatus
- func (d *APIServiceStatusDie) DieReleaseJSON() []byte
- func (d *APIServiceStatusDie) DieReleasePtr() *apiregistration.APIServiceStatus
- func (d *APIServiceStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *APIServiceStatusDie) DieReleaseYAML() []byte
- func (d *APIServiceStatusDie) DieStamp(fn func(r *apiregistration.APIServiceStatus)) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieStampAt(jp string, fn interface{}) *APIServiceStatusDie
- func (d *APIServiceStatusDie) DieWith(fns ...func(d *APIServiceStatusDie)) *APIServiceStatusDie
- type ServiceReferenceDie
- func (d *ServiceReferenceDie) DeepCopy() *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeed(r apiregistration.ServiceReference) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedJSON(j []byte) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedPtr(r *apiregistration.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() apiregistration.ServiceReference
- func (d *ServiceReferenceDie) DieReleaseJSON() []byte
- func (d *ServiceReferenceDie) DieReleasePtr() *apiregistration.ServiceReference
- func (d *ServiceReferenceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ServiceReferenceDie) DieReleaseYAML() []byte
- func (d *ServiceReferenceDie) DieStamp(fn func(r *apiregistration.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) Port(v int32) *ServiceReferenceDie
Constants ¶
This section is empty.
Variables ¶
var APIServiceBlank = (&APIServiceDie{}).DieFeed(apiregistration.APIService{})
var APIServiceSpecBlank = (&APIServiceSpecDie{}).DieFeed(apiregistration.APIServiceSpec{})
var APIServiceStatusBlank = (&APIServiceStatusDie{}).DieFeed(apiregistration.APIServiceStatus{})
var ServiceReferenceBlank = (&ServiceReferenceDie{}).DieFeed(apiregistration.ServiceReference{})
Functions ¶
This section is empty.
Types ¶
type APIServiceDie ¶
type APIServiceDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*APIServiceDie) APIVersion ¶ added in v0.5.0
func (d *APIServiceDie) APIVersion(v string) *APIServiceDie
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 (*APIServiceDie) DeepCopy ¶
func (d *APIServiceDie) DeepCopy() *APIServiceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*APIServiceDie) DeepCopyObject ¶
func (d *APIServiceDie) DeepCopyObject() runtime.Object
func (*APIServiceDie) DieFeed ¶
func (d *APIServiceDie) DieFeed(r apiregistration.APIService) *APIServiceDie
DieFeed returns a new die with the provided resource.
func (*APIServiceDie) DieFeedJSON ¶ added in v0.8.0
func (d *APIServiceDie) DieFeedJSON(j []byte) *APIServiceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*APIServiceDie) DieFeedPtr ¶
func (d *APIServiceDie) DieFeedPtr(r *apiregistration.APIService) *APIServiceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*APIServiceDie) DieFeedRawExtension ¶ added in v0.5.0
func (d *APIServiceDie) DieFeedRawExtension(raw runtime.RawExtension) *APIServiceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*APIServiceDie) DieFeedYAML ¶ added in v0.8.0
func (d *APIServiceDie) DieFeedYAML(y []byte) *APIServiceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*APIServiceDie) DieFeedYAMLFile ¶ added in v0.8.0
func (d *APIServiceDie) DieFeedYAMLFile(name string) *APIServiceDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*APIServiceDie) DieImmutable ¶
func (d *APIServiceDie) DieImmutable(immutable bool) *APIServiceDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*APIServiceDie) DieRelease ¶
func (d *APIServiceDie) DieRelease() apiregistration.APIService
DieRelease returns the resource managed by the die.
func (*APIServiceDie) DieReleaseJSON ¶ added in v0.8.0
func (d *APIServiceDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*APIServiceDie) DieReleasePtr ¶
func (d *APIServiceDie) DieReleasePtr() *apiregistration.APIService
DieReleasePtr returns a pointer to the resource managed by the die.
func (*APIServiceDie) DieReleaseRawExtension ¶ added in v0.5.0
func (d *APIServiceDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*APIServiceDie) DieReleaseUnstructured ¶
func (d *APIServiceDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*APIServiceDie) DieReleaseYAML ¶ added in v0.8.0
func (d *APIServiceDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*APIServiceDie) DieStamp ¶
func (d *APIServiceDie) DieStamp(fn func(r *apiregistration.APIService)) *APIServiceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*APIServiceDie) DieStampAt ¶ added in v0.8.0
func (d *APIServiceDie) DieStampAt(jp string, fn interface{}) *APIServiceDie
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 (*APIServiceDie) DieWith ¶ added in v0.9.0
func (d *APIServiceDie) DieWith(fns ...func(d *APIServiceDie)) *APIServiceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*APIServiceDie) GetObjectKind ¶
func (d *APIServiceDie) GetObjectKind() schema.ObjectKind
func (*APIServiceDie) Kind ¶ added in v0.5.0
func (d *APIServiceDie) Kind(v string) *APIServiceDie
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 (*APIServiceDie) MarshalJSON ¶
func (d *APIServiceDie) MarshalJSON() ([]byte, error)
func (*APIServiceDie) MetadataDie ¶
func (d *APIServiceDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *APIServiceDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*APIServiceDie) Spec ¶
func (d *APIServiceDie) Spec(v apiregistration.APIServiceSpec) *APIServiceDie
Spec contains information for locating and communicating with a server
func (*APIServiceDie) SpecDie ¶
func (d *APIServiceDie) SpecDie(fn func(d *APIServiceSpecDie)) *APIServiceDie
SpecDie stamps the resource's spec field with a mutable die.
func (*APIServiceDie) Status ¶
func (d *APIServiceDie) Status(v apiregistration.APIServiceStatus) *APIServiceDie
Status contains derived information about an API server
func (*APIServiceDie) StatusDie ¶
func (d *APIServiceDie) StatusDie(fn func(d *APIServiceStatusDie)) *APIServiceDie
StatusDie stamps the resource's status field with a mutable die.
func (*APIServiceDie) UnmarshalJSON ¶
func (d *APIServiceDie) UnmarshalJSON(b []byte) error
type APIServiceSpecDie ¶
type APIServiceSpecDie struct {
// contains filtered or unexported fields
}
func (*APIServiceSpecDie) CABundle ¶
func (d *APIServiceSpecDie) CABundle(v []byte) *APIServiceSpecDie
CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.
If unspecified, system trust roots on the apiserver are used.
func (*APIServiceSpecDie) DeepCopy ¶
func (d *APIServiceSpecDie) DeepCopy() *APIServiceSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*APIServiceSpecDie) DieFeed ¶
func (d *APIServiceSpecDie) DieFeed(r apiregistration.APIServiceSpec) *APIServiceSpecDie
DieFeed returns a new die with the provided resource.
func (*APIServiceSpecDie) DieFeedJSON ¶ added in v0.8.0
func (d *APIServiceSpecDie) DieFeedJSON(j []byte) *APIServiceSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*APIServiceSpecDie) DieFeedPtr ¶
func (d *APIServiceSpecDie) DieFeedPtr(r *apiregistration.APIServiceSpec) *APIServiceSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*APIServiceSpecDie) DieFeedRawExtension ¶ added in v0.5.0
func (d *APIServiceSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *APIServiceSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*APIServiceSpecDie) DieFeedYAML ¶ added in v0.8.0
func (d *APIServiceSpecDie) DieFeedYAML(y []byte) *APIServiceSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*APIServiceSpecDie) DieFeedYAMLFile ¶ added in v0.8.0
func (d *APIServiceSpecDie) DieFeedYAMLFile(name string) *APIServiceSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*APIServiceSpecDie) DieImmutable ¶
func (d *APIServiceSpecDie) DieImmutable(immutable bool) *APIServiceSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*APIServiceSpecDie) DieRelease ¶
func (d *APIServiceSpecDie) DieRelease() apiregistration.APIServiceSpec
DieRelease returns the resource managed by the die.
func (*APIServiceSpecDie) DieReleaseJSON ¶ added in v0.8.0
func (d *APIServiceSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*APIServiceSpecDie) DieReleasePtr ¶
func (d *APIServiceSpecDie) DieReleasePtr() *apiregistration.APIServiceSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*APIServiceSpecDie) DieReleaseRawExtension ¶ added in v0.5.0
func (d *APIServiceSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*APIServiceSpecDie) DieReleaseYAML ¶ added in v0.8.0
func (d *APIServiceSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*APIServiceSpecDie) DieStamp ¶
func (d *APIServiceSpecDie) DieStamp(fn func(r *apiregistration.APIServiceSpec)) *APIServiceSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*APIServiceSpecDie) DieStampAt ¶ added in v0.8.0
func (d *APIServiceSpecDie) DieStampAt(jp string, fn interface{}) *APIServiceSpecDie
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 (*APIServiceSpecDie) DieWith ¶ added in v0.9.0
func (d *APIServiceSpecDie) DieWith(fns ...func(d *APIServiceSpecDie)) *APIServiceSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*APIServiceSpecDie) Group ¶
func (d *APIServiceSpecDie) Group(v string) *APIServiceSpecDie
Group is the API group name this server hosts
func (*APIServiceSpecDie) GroupPriorityMinimum ¶
func (d *APIServiceSpecDie) GroupPriorityMinimum(v int32) *APIServiceSpecDie
GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones.
Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority.
The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10).
The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo)
We'd recommend something like: *.k8s.io (except extensions) at 18000 and
PaaSes (OpenShift, Deis) are recommended to be in the 2000s
func (*APIServiceSpecDie) InsecureSkipTLSVerify ¶
func (d *APIServiceSpecDie) InsecureSkipTLSVerify(v bool) *APIServiceSpecDie
InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server.
This is strongly discouraged. You should use the CABundle instead.
func (*APIServiceSpecDie) Service ¶
func (d *APIServiceSpecDie) Service(v *apiregistration.ServiceReference) *APIServiceSpecDie
Service is a reference to the service for this API server. It must communicate
on port 443.
If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
The call will simply delegate to the normal handler chain to be fulfilled.
func (*APIServiceSpecDie) TargetDie ¶
func (d *APIServiceSpecDie) TargetDie(fn func(d *ServiceReferenceDie)) *APIServiceSpecDie
func (*APIServiceSpecDie) Version ¶
func (d *APIServiceSpecDie) Version(v string) *APIServiceSpecDie
Version is the API version this server hosts. For example, "v1"
func (*APIServiceSpecDie) VersionPriority ¶
func (d *APIServiceSpecDie) VersionPriority(v int32) *APIServiceSpecDie
VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero.
The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10).
Since it's inside of a group, the number can be small, probably in the 10s.
In case of equal version priorities, the version string will be used to compute the order inside a group.
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 APIServiceStatusDie ¶
type APIServiceStatusDie struct {
// contains filtered or unexported fields
}
func (*APIServiceStatusDie) Conditions ¶
func (d *APIServiceStatusDie) Conditions(v ...apiregistration.APIServiceCondition) *APIServiceStatusDie
Current service state of apiService.
func (*APIServiceStatusDie) ConditionsDie ¶
func (d *APIServiceStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *APIServiceStatusDie
func (*APIServiceStatusDie) DeepCopy ¶
func (d *APIServiceStatusDie) DeepCopy() *APIServiceStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*APIServiceStatusDie) DieFeed ¶
func (d *APIServiceStatusDie) DieFeed(r apiregistration.APIServiceStatus) *APIServiceStatusDie
DieFeed returns a new die with the provided resource.
func (*APIServiceStatusDie) DieFeedJSON ¶ added in v0.8.0
func (d *APIServiceStatusDie) DieFeedJSON(j []byte) *APIServiceStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*APIServiceStatusDie) DieFeedPtr ¶
func (d *APIServiceStatusDie) DieFeedPtr(r *apiregistration.APIServiceStatus) *APIServiceStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*APIServiceStatusDie) DieFeedRawExtension ¶ added in v0.5.0
func (d *APIServiceStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *APIServiceStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*APIServiceStatusDie) DieFeedYAML ¶ added in v0.8.0
func (d *APIServiceStatusDie) DieFeedYAML(y []byte) *APIServiceStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*APIServiceStatusDie) DieFeedYAMLFile ¶ added in v0.8.0
func (d *APIServiceStatusDie) DieFeedYAMLFile(name string) *APIServiceStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*APIServiceStatusDie) DieImmutable ¶
func (d *APIServiceStatusDie) DieImmutable(immutable bool) *APIServiceStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*APIServiceStatusDie) DieRelease ¶
func (d *APIServiceStatusDie) DieRelease() apiregistration.APIServiceStatus
DieRelease returns the resource managed by the die.
func (*APIServiceStatusDie) DieReleaseJSON ¶ added in v0.8.0
func (d *APIServiceStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*APIServiceStatusDie) DieReleasePtr ¶
func (d *APIServiceStatusDie) DieReleasePtr() *apiregistration.APIServiceStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*APIServiceStatusDie) DieReleaseRawExtension ¶ added in v0.5.0
func (d *APIServiceStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*APIServiceStatusDie) DieReleaseYAML ¶ added in v0.8.0
func (d *APIServiceStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*APIServiceStatusDie) DieStamp ¶
func (d *APIServiceStatusDie) DieStamp(fn func(r *apiregistration.APIServiceStatus)) *APIServiceStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*APIServiceStatusDie) DieStampAt ¶ added in v0.8.0
func (d *APIServiceStatusDie) DieStampAt(jp string, fn interface{}) *APIServiceStatusDie
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 (*APIServiceStatusDie) DieWith ¶ added in v0.9.0
func (d *APIServiceStatusDie) DieWith(fns ...func(d *APIServiceStatusDie)) *APIServiceStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
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 apiregistration.ServiceReference) *ServiceReferenceDie
DieFeed returns a new die with the provided resource.
func (*ServiceReferenceDie) DieFeedJSON ¶ added in v0.8.0
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 *apiregistration.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 ¶ added in v0.5.0
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 ¶ added in v0.8.0
func (d *ServiceReferenceDie) DieFeedYAML(y []byte) *ServiceReferenceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ServiceReferenceDie) DieFeedYAMLFile ¶ added in v0.8.0
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() apiregistration.ServiceReference
DieRelease returns the resource managed by the die.
func (*ServiceReferenceDie) DieReleaseJSON ¶ added in v0.8.0
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() *apiregistration.ServiceReference
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ServiceReferenceDie) DieReleaseRawExtension ¶ added in v0.5.0
func (d *ServiceReferenceDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ServiceReferenceDie) DieReleaseYAML ¶ added in v0.8.0
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 *apiregistration.ServiceReference)) *ServiceReferenceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ServiceReferenceDie) DieStampAt ¶ added in v0.8.0
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 ¶ added in v0.9.0
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
func (*ServiceReferenceDie) Namespace ¶
func (d *ServiceReferenceDie) Namespace(v string) *ServiceReferenceDie
Namespace is the namespace of the service
func (*ServiceReferenceDie) Port ¶
func (d *ServiceReferenceDie) Port(v int32) *ServiceReferenceDie
If specified, the port on the service that hosting the service.
Default to 443 for backward compatibility.
`port` should be a valid port number (1-65535, inclusive).