Documentation
¶
Index ¶
- Variables
- type EndpointConditionsDie
- func (d *EndpointConditionsDie) DeepCopy() *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieDiff(opts ...cmp.Option) string
- func (d *EndpointConditionsDie) DieFeed(r discoveryv1.EndpointConditions) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieFeedJSON(j []byte) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieFeedPtr(r *discoveryv1.EndpointConditions) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieFeedYAML(y []byte) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieFeedYAMLFile(name string) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieImmutable(immutable bool) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *EndpointConditionsDie) DieRelease() discoveryv1.EndpointConditions
- func (d *EndpointConditionsDie) DieReleaseJSON() []byte
- func (d *EndpointConditionsDie) DieReleasePtr() *discoveryv1.EndpointConditions
- func (d *EndpointConditionsDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *EndpointConditionsDie) DieReleaseYAML() []byte
- func (d *EndpointConditionsDie) DieSeal() *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieSealFeed(r discoveryv1.EndpointConditions) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieSealFeedPtr(r *discoveryv1.EndpointConditions) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieSealRelease() discoveryv1.EndpointConditions
- func (d *EndpointConditionsDie) DieSealReleasePtr() *discoveryv1.EndpointConditions
- func (d *EndpointConditionsDie) DieStamp(fn func(r *discoveryv1.EndpointConditions)) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieStampAt(jp string, fn interface{}) *EndpointConditionsDie
- func (d *EndpointConditionsDie) DieWith(fns ...func(d *EndpointConditionsDie)) *EndpointConditionsDie
- func (d *EndpointConditionsDie) Ready(v *bool) *EndpointConditionsDie
- func (d *EndpointConditionsDie) Serving(v *bool) *EndpointConditionsDie
- func (d *EndpointConditionsDie) Terminating(v *bool) *EndpointConditionsDie
- type EndpointDie
- func (d *EndpointDie) AddDeprecatedTopology(key, value string) *EndpointDie
- func (d *EndpointDie) Addresses(v ...string) *EndpointDie
- func (d *EndpointDie) Conditions(v discoveryv1.EndpointConditions) *EndpointDie
- func (d *EndpointDie) ConditionsDie(fn func(d *EndpointConditionsDie)) *EndpointDie
- func (d *EndpointDie) DeepCopy() *EndpointDie
- func (d *EndpointDie) DeprecatedTopology(v map[string]string) *EndpointDie
- func (d *EndpointDie) DieDiff(opts ...cmp.Option) string
- func (d *EndpointDie) DieFeed(r discoveryv1.Endpoint) *EndpointDie
- func (d *EndpointDie) DieFeedJSON(j []byte) *EndpointDie
- func (d *EndpointDie) DieFeedPtr(r *discoveryv1.Endpoint) *EndpointDie
- func (d *EndpointDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointDie
- func (d *EndpointDie) DieFeedYAML(y []byte) *EndpointDie
- func (d *EndpointDie) DieFeedYAMLFile(name string) *EndpointDie
- func (d *EndpointDie) DieImmutable(immutable bool) *EndpointDie
- func (d *EndpointDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *EndpointDie) DieRelease() discoveryv1.Endpoint
- func (d *EndpointDie) DieReleaseJSON() []byte
- func (d *EndpointDie) DieReleasePtr() *discoveryv1.Endpoint
- func (d *EndpointDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *EndpointDie) DieReleaseYAML() []byte
- func (d *EndpointDie) DieSeal() *EndpointDie
- func (d *EndpointDie) DieSealFeed(r discoveryv1.Endpoint) *EndpointDie
- func (d *EndpointDie) DieSealFeedPtr(r *discoveryv1.Endpoint) *EndpointDie
- func (d *EndpointDie) DieSealRelease() discoveryv1.Endpoint
- func (d *EndpointDie) DieSealReleasePtr() *discoveryv1.Endpoint
- func (d *EndpointDie) DieStamp(fn func(r *discoveryv1.Endpoint)) *EndpointDie
- func (d *EndpointDie) DieStampAt(jp string, fn interface{}) *EndpointDie
- func (d *EndpointDie) DieWith(fns ...func(d *EndpointDie)) *EndpointDie
- func (d *EndpointDie) Hints(v *discoveryv1.EndpointHints) *EndpointDie
- func (d *EndpointDie) HintsDie(fn func(d *EndpointHintsDie)) *EndpointDie
- func (d *EndpointDie) Hostname(v *string) *EndpointDie
- func (d *EndpointDie) NodeName(v *string) *EndpointDie
- func (d *EndpointDie) TargetRef(v *apicorev1.ObjectReference) *EndpointDie
- func (d *EndpointDie) TargetRefDie(fn func(d *corev1.ObjectReferenceDie)) *EndpointDie
- func (d *EndpointDie) Zone(v *string) *EndpointDie
- type EndpointHintsDie
- func (d *EndpointHintsDie) DeepCopy() *EndpointHintsDie
- func (d *EndpointHintsDie) DieDiff(opts ...cmp.Option) string
- func (d *EndpointHintsDie) DieFeed(r discoveryv1.EndpointHints) *EndpointHintsDie
- func (d *EndpointHintsDie) DieFeedJSON(j []byte) *EndpointHintsDie
- func (d *EndpointHintsDie) DieFeedPtr(r *discoveryv1.EndpointHints) *EndpointHintsDie
- func (d *EndpointHintsDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointHintsDie
- func (d *EndpointHintsDie) DieFeedYAML(y []byte) *EndpointHintsDie
- func (d *EndpointHintsDie) DieFeedYAMLFile(name string) *EndpointHintsDie
- func (d *EndpointHintsDie) DieImmutable(immutable bool) *EndpointHintsDie
- func (d *EndpointHintsDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *EndpointHintsDie) DieRelease() discoveryv1.EndpointHints
- func (d *EndpointHintsDie) DieReleaseJSON() []byte
- func (d *EndpointHintsDie) DieReleasePtr() *discoveryv1.EndpointHints
- func (d *EndpointHintsDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *EndpointHintsDie) DieReleaseYAML() []byte
- func (d *EndpointHintsDie) DieSeal() *EndpointHintsDie
- func (d *EndpointHintsDie) DieSealFeed(r discoveryv1.EndpointHints) *EndpointHintsDie
- func (d *EndpointHintsDie) DieSealFeedPtr(r *discoveryv1.EndpointHints) *EndpointHintsDie
- func (d *EndpointHintsDie) DieSealRelease() discoveryv1.EndpointHints
- func (d *EndpointHintsDie) DieSealReleasePtr() *discoveryv1.EndpointHints
- func (d *EndpointHintsDie) DieStamp(fn func(r *discoveryv1.EndpointHints)) *EndpointHintsDie
- func (d *EndpointHintsDie) DieStampAt(jp string, fn interface{}) *EndpointHintsDie
- func (d *EndpointHintsDie) DieWith(fns ...func(d *EndpointHintsDie)) *EndpointHintsDie
- func (d *EndpointHintsDie) ForZones(v ...discoveryv1.ForZone) *EndpointHintsDie
- func (d *EndpointHintsDie) ForZonesDie(v ...*ForZoneDie) *EndpointHintsDie
- type EndpointPortDie
- func (d *EndpointPortDie) AppProtocol(v *string) *EndpointPortDie
- func (d *EndpointPortDie) DeepCopy() *EndpointPortDie
- func (d *EndpointPortDie) DieDiff(opts ...cmp.Option) string
- func (d *EndpointPortDie) DieFeed(r discoveryv1.EndpointPort) *EndpointPortDie
- func (d *EndpointPortDie) DieFeedJSON(j []byte) *EndpointPortDie
- func (d *EndpointPortDie) DieFeedPtr(r *discoveryv1.EndpointPort) *EndpointPortDie
- func (d *EndpointPortDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointPortDie
- func (d *EndpointPortDie) DieFeedYAML(y []byte) *EndpointPortDie
- func (d *EndpointPortDie) DieFeedYAMLFile(name string) *EndpointPortDie
- func (d *EndpointPortDie) DieImmutable(immutable bool) *EndpointPortDie
- func (d *EndpointPortDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *EndpointPortDie) DieRelease() discoveryv1.EndpointPort
- func (d *EndpointPortDie) DieReleaseJSON() []byte
- func (d *EndpointPortDie) DieReleasePtr() *discoveryv1.EndpointPort
- func (d *EndpointPortDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *EndpointPortDie) DieReleaseYAML() []byte
- func (d *EndpointPortDie) DieSeal() *EndpointPortDie
- func (d *EndpointPortDie) DieSealFeed(r discoveryv1.EndpointPort) *EndpointPortDie
- func (d *EndpointPortDie) DieSealFeedPtr(r *discoveryv1.EndpointPort) *EndpointPortDie
- func (d *EndpointPortDie) DieSealRelease() discoveryv1.EndpointPort
- func (d *EndpointPortDie) DieSealReleasePtr() *discoveryv1.EndpointPort
- func (d *EndpointPortDie) DieStamp(fn func(r *discoveryv1.EndpointPort)) *EndpointPortDie
- func (d *EndpointPortDie) DieStampAt(jp string, fn interface{}) *EndpointPortDie
- func (d *EndpointPortDie) DieWith(fns ...func(d *EndpointPortDie)) *EndpointPortDie
- func (d *EndpointPortDie) Name(v *string) *EndpointPortDie
- func (d *EndpointPortDie) Port(v *int32) *EndpointPortDie
- func (d *EndpointPortDie) Protocol(v *apicorev1.Protocol) *EndpointPortDie
- type EndpointSliceDie
- func (d *EndpointSliceDie) APIVersion(v string) *EndpointSliceDie
- func (d *EndpointSliceDie) AddressType(v discoveryv1.AddressType) *EndpointSliceDie
- func (d *EndpointSliceDie) DeepCopy() *EndpointSliceDie
- func (d *EndpointSliceDie) DeepCopyObject() runtime.Object
- func (d *EndpointSliceDie) DieDefaultTypeMetadata() *EndpointSliceDie
- func (d *EndpointSliceDie) DieDiff(opts ...cmp.Option) string
- func (d *EndpointSliceDie) DieFeed(r discoveryv1.EndpointSlice) *EndpointSliceDie
- func (d *EndpointSliceDie) DieFeedJSON(j []byte) *EndpointSliceDie
- func (d *EndpointSliceDie) DieFeedPtr(r *discoveryv1.EndpointSlice) *EndpointSliceDie
- func (d *EndpointSliceDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointSliceDie
- func (d *EndpointSliceDie) DieFeedYAML(y []byte) *EndpointSliceDie
- func (d *EndpointSliceDie) DieFeedYAMLFile(name string) *EndpointSliceDie
- func (d *EndpointSliceDie) DieImmutable(immutable bool) *EndpointSliceDie
- func (d *EndpointSliceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *EndpointSliceDie) DieRelease() discoveryv1.EndpointSlice
- func (d *EndpointSliceDie) DieReleaseJSON() []byte
- func (d *EndpointSliceDie) DieReleasePtr() *discoveryv1.EndpointSlice
- func (d *EndpointSliceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *EndpointSliceDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *EndpointSliceDie) DieReleaseYAML() []byte
- func (d *EndpointSliceDie) DieSeal() *EndpointSliceDie
- func (d *EndpointSliceDie) DieSealFeed(r discoveryv1.EndpointSlice) *EndpointSliceDie
- func (d *EndpointSliceDie) DieSealFeedPtr(r *discoveryv1.EndpointSlice) *EndpointSliceDie
- func (d *EndpointSliceDie) DieSealRelease() discoveryv1.EndpointSlice
- func (d *EndpointSliceDie) DieSealReleasePtr() *discoveryv1.EndpointSlice
- func (d *EndpointSliceDie) DieStamp(fn func(r *discoveryv1.EndpointSlice)) *EndpointSliceDie
- func (d *EndpointSliceDie) DieStampAt(jp string, fn interface{}) *EndpointSliceDie
- func (d *EndpointSliceDie) DieWith(fns ...func(d *EndpointSliceDie)) *EndpointSliceDie
- func (d *EndpointSliceDie) Endpoints(v ...discoveryv1.Endpoint) *EndpointSliceDie
- func (d *EndpointSliceDie) EndpointsDie(v ...*EndpointDie) *EndpointSliceDie
- func (d *EndpointSliceDie) GetObjectKind() schema.ObjectKind
- func (d *EndpointSliceDie) Kind(v string) *EndpointSliceDie
- func (d *EndpointSliceDie) MarshalJSON() ([]byte, error)
- func (d *EndpointSliceDie) Metadata(v apismetav1.ObjectMeta) *EndpointSliceDie
- func (d *EndpointSliceDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *EndpointSliceDie
- func (d *EndpointSliceDie) Ports(v ...discoveryv1.EndpointPort) *EndpointSliceDie
- func (d *EndpointSliceDie) PortsDie(v ...*EndpointPortDie) *EndpointSliceDie
- func (d *EndpointSliceDie) TypeMetadata(v apismetav1.TypeMeta) *EndpointSliceDie
- func (d *EndpointSliceDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *EndpointSliceDie
- func (d *EndpointSliceDie) UnmarshalJSON(b []byte) error
- type ForZoneDie
- func (d *ForZoneDie) DeepCopy() *ForZoneDie
- func (d *ForZoneDie) DieDiff(opts ...cmp.Option) string
- func (d *ForZoneDie) DieFeed(r discoveryv1.ForZone) *ForZoneDie
- func (d *ForZoneDie) DieFeedJSON(j []byte) *ForZoneDie
- func (d *ForZoneDie) DieFeedPtr(r *discoveryv1.ForZone) *ForZoneDie
- func (d *ForZoneDie) DieFeedRawExtension(raw runtime.RawExtension) *ForZoneDie
- func (d *ForZoneDie) DieFeedYAML(y []byte) *ForZoneDie
- func (d *ForZoneDie) DieFeedYAMLFile(name string) *ForZoneDie
- func (d *ForZoneDie) DieImmutable(immutable bool) *ForZoneDie
- func (d *ForZoneDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ForZoneDie) DieRelease() discoveryv1.ForZone
- func (d *ForZoneDie) DieReleaseJSON() []byte
- func (d *ForZoneDie) DieReleasePtr() *discoveryv1.ForZone
- func (d *ForZoneDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ForZoneDie) DieReleaseYAML() []byte
- func (d *ForZoneDie) DieSeal() *ForZoneDie
- func (d *ForZoneDie) DieSealFeed(r discoveryv1.ForZone) *ForZoneDie
- func (d *ForZoneDie) DieSealFeedPtr(r *discoveryv1.ForZone) *ForZoneDie
- func (d *ForZoneDie) DieSealRelease() discoveryv1.ForZone
- func (d *ForZoneDie) DieSealReleasePtr() *discoveryv1.ForZone
- func (d *ForZoneDie) DieStamp(fn func(r *discoveryv1.ForZone)) *ForZoneDie
- func (d *ForZoneDie) DieStampAt(jp string, fn interface{}) *ForZoneDie
- func (d *ForZoneDie) DieWith(fns ...func(d *ForZoneDie)) *ForZoneDie
- func (d *ForZoneDie) Name(v string) *ForZoneDie
Constants ¶
This section is empty.
Variables ¶
var EndpointBlank = (&EndpointDie{}).DieFeed(discoveryv1.Endpoint{})
var EndpointConditionsBlank = (&EndpointConditionsDie{}).DieFeed(discoveryv1.EndpointConditions{})
var EndpointHintsBlank = (&EndpointHintsDie{}).DieFeed(discoveryv1.EndpointHints{})
var EndpointPortBlank = (&EndpointPortDie{}).DieFeed(discoveryv1.EndpointPort{})
var EndpointSliceBlank = (&EndpointSliceDie{}).DieFeed(discoveryv1.EndpointSlice{})
var ForZoneBlank = (&ForZoneDie{}).DieFeed(discoveryv1.ForZone{})
Functions ¶
This section is empty.
Types ¶
type EndpointConditionsDie ¶
type EndpointConditionsDie struct {
// contains filtered or unexported fields
}
func (*EndpointConditionsDie) DeepCopy ¶
func (d *EndpointConditionsDie) DeepCopy() *EndpointConditionsDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*EndpointConditionsDie) DieDiff ¶
func (d *EndpointConditionsDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*EndpointConditionsDie) DieFeed ¶
func (d *EndpointConditionsDie) DieFeed(r discoveryv1.EndpointConditions) *EndpointConditionsDie
DieFeed returns a new die with the provided resource.
func (*EndpointConditionsDie) DieFeedJSON ¶
func (d *EndpointConditionsDie) DieFeedJSON(j []byte) *EndpointConditionsDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*EndpointConditionsDie) DieFeedPtr ¶
func (d *EndpointConditionsDie) DieFeedPtr(r *discoveryv1.EndpointConditions) *EndpointConditionsDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*EndpointConditionsDie) DieFeedRawExtension ¶
func (d *EndpointConditionsDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointConditionsDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointConditionsDie) DieFeedYAML ¶
func (d *EndpointConditionsDie) DieFeedYAML(y []byte) *EndpointConditionsDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*EndpointConditionsDie) DieFeedYAMLFile ¶
func (d *EndpointConditionsDie) DieFeedYAMLFile(name string) *EndpointConditionsDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*EndpointConditionsDie) DieImmutable ¶
func (d *EndpointConditionsDie) DieImmutable(immutable bool) *EndpointConditionsDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*EndpointConditionsDie) DiePatch ¶
func (d *EndpointConditionsDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*EndpointConditionsDie) DieRelease ¶
func (d *EndpointConditionsDie) DieRelease() discoveryv1.EndpointConditions
DieRelease returns the resource managed by the die.
func (*EndpointConditionsDie) DieReleaseJSON ¶
func (d *EndpointConditionsDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*EndpointConditionsDie) DieReleasePtr ¶
func (d *EndpointConditionsDie) DieReleasePtr() *discoveryv1.EndpointConditions
DieReleasePtr returns a pointer to the resource managed by the die.
func (*EndpointConditionsDie) DieReleaseRawExtension ¶
func (d *EndpointConditionsDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointConditionsDie) DieReleaseYAML ¶
func (d *EndpointConditionsDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*EndpointConditionsDie) DieSeal ¶
func (d *EndpointConditionsDie) DieSeal() *EndpointConditionsDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*EndpointConditionsDie) DieSealFeed ¶
func (d *EndpointConditionsDie) DieSealFeed(r discoveryv1.EndpointConditions) *EndpointConditionsDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*EndpointConditionsDie) DieSealFeedPtr ¶
func (d *EndpointConditionsDie) DieSealFeedPtr(r *discoveryv1.EndpointConditions) *EndpointConditionsDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*EndpointConditionsDie) DieSealRelease ¶
func (d *EndpointConditionsDie) DieSealRelease() discoveryv1.EndpointConditions
DieSealRelease returns the sealed resource managed by the die.
func (*EndpointConditionsDie) DieSealReleasePtr ¶
func (d *EndpointConditionsDie) DieSealReleasePtr() *discoveryv1.EndpointConditions
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*EndpointConditionsDie) DieStamp ¶
func (d *EndpointConditionsDie) DieStamp(fn func(r *discoveryv1.EndpointConditions)) *EndpointConditionsDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*EndpointConditionsDie) DieStampAt ¶
func (d *EndpointConditionsDie) DieStampAt(jp string, fn interface{}) *EndpointConditionsDie
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 (*EndpointConditionsDie) DieWith ¶
func (d *EndpointConditionsDie) DieWith(fns ...func(d *EndpointConditionsDie)) *EndpointConditionsDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*EndpointConditionsDie) Ready ¶
func (d *EndpointConditionsDie) Ready(v *bool) *EndpointConditionsDie
ready indicates that this endpoint is prepared to receive traffic,
according to whatever system is managing the endpoint. A nil value
indicates an unknown state. In most cases consumers should interpret this
unknown state as ready. For compatibility reasons, ready should never be
"true" for terminating endpoints, except when the normal readiness
behavior is being explicitly overridden, for example when the associated
Service has set the publishNotReadyAddresses flag.
func (*EndpointConditionsDie) Serving ¶
func (d *EndpointConditionsDie) Serving(v *bool) *EndpointConditionsDie
serving is identical to ready except that it is set regardless of the
terminating state of endpoints. This condition should be set to true for
a ready endpoint that is terminating. If nil, consumers should defer to
the ready condition.
func (*EndpointConditionsDie) Terminating ¶
func (d *EndpointConditionsDie) Terminating(v *bool) *EndpointConditionsDie
terminating indicates that this endpoint is terminating. A nil value
indicates an unknown state. Consumers should interpret this unknown state
to mean that the endpoint is not terminating.
type EndpointDie ¶
type EndpointDie struct {
// contains filtered or unexported fields
}
func (*EndpointDie) AddDeprecatedTopology ¶
func (d *EndpointDie) AddDeprecatedTopology(key, value string) *EndpointDie
func (*EndpointDie) Addresses ¶
func (d *EndpointDie) Addresses(v ...string) *EndpointDie
addresses of this endpoint. The contents of this field are interpreted
according to the corresponding EndpointSlice addressType field. Consumers
must handle different types of addresses in the context of their own
capabilities. This must contain at least one address but no more than
100. These are all assumed to be fungible and clients may choose to only
use the first element. Refer to: https://issue.k8s.io/106267
func (*EndpointDie) Conditions ¶
func (d *EndpointDie) Conditions(v discoveryv1.EndpointConditions) *EndpointDie
conditions contains information about the current status of the endpoint.
func (*EndpointDie) ConditionsDie ¶
func (d *EndpointDie) ConditionsDie(fn func(d *EndpointConditionsDie)) *EndpointDie
ConditionsDie mutates Conditions as a die.
conditions contains information about the current status of the endpoint.
func (*EndpointDie) DeepCopy ¶
func (d *EndpointDie) DeepCopy() *EndpointDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*EndpointDie) DeprecatedTopology ¶
func (d *EndpointDie) DeprecatedTopology(v map[string]string) *EndpointDie
deprecatedTopology contains topology information part of the v1beta1
API. This field is deprecated, and will be removed when the v1beta1
API is removed (no sooner than kubernetes v1.24). While this field can
hold values, it is not writable through the v1 API, and any attempts to
write to it will be silently ignored. Topology information can be found
in the zone and nodeName fields instead.
func (*EndpointDie) DieDiff ¶
func (d *EndpointDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*EndpointDie) DieFeed ¶
func (d *EndpointDie) DieFeed(r discoveryv1.Endpoint) *EndpointDie
DieFeed returns a new die with the provided resource.
func (*EndpointDie) DieFeedJSON ¶
func (d *EndpointDie) DieFeedJSON(j []byte) *EndpointDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*EndpointDie) DieFeedPtr ¶
func (d *EndpointDie) DieFeedPtr(r *discoveryv1.Endpoint) *EndpointDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*EndpointDie) DieFeedRawExtension ¶
func (d *EndpointDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointDie) DieFeedYAML ¶
func (d *EndpointDie) DieFeedYAML(y []byte) *EndpointDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*EndpointDie) DieFeedYAMLFile ¶
func (d *EndpointDie) DieFeedYAMLFile(name string) *EndpointDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*EndpointDie) DieImmutable ¶
func (d *EndpointDie) DieImmutable(immutable bool) *EndpointDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*EndpointDie) DiePatch ¶
func (d *EndpointDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*EndpointDie) DieRelease ¶
func (d *EndpointDie) DieRelease() discoveryv1.Endpoint
DieRelease returns the resource managed by the die.
func (*EndpointDie) DieReleaseJSON ¶
func (d *EndpointDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*EndpointDie) DieReleasePtr ¶
func (d *EndpointDie) DieReleasePtr() *discoveryv1.Endpoint
DieReleasePtr returns a pointer to the resource managed by the die.
func (*EndpointDie) DieReleaseRawExtension ¶
func (d *EndpointDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointDie) DieReleaseYAML ¶
func (d *EndpointDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*EndpointDie) DieSeal ¶
func (d *EndpointDie) DieSeal() *EndpointDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*EndpointDie) DieSealFeed ¶
func (d *EndpointDie) DieSealFeed(r discoveryv1.Endpoint) *EndpointDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*EndpointDie) DieSealFeedPtr ¶
func (d *EndpointDie) DieSealFeedPtr(r *discoveryv1.Endpoint) *EndpointDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*EndpointDie) DieSealRelease ¶
func (d *EndpointDie) DieSealRelease() discoveryv1.Endpoint
DieSealRelease returns the sealed resource managed by the die.
func (*EndpointDie) DieSealReleasePtr ¶
func (d *EndpointDie) DieSealReleasePtr() *discoveryv1.Endpoint
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*EndpointDie) DieStamp ¶
func (d *EndpointDie) DieStamp(fn func(r *discoveryv1.Endpoint)) *EndpointDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*EndpointDie) DieStampAt ¶
func (d *EndpointDie) DieStampAt(jp string, fn interface{}) *EndpointDie
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 (*EndpointDie) DieWith ¶
func (d *EndpointDie) DieWith(fns ...func(d *EndpointDie)) *EndpointDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*EndpointDie) Hints ¶
func (d *EndpointDie) Hints(v *discoveryv1.EndpointHints) *EndpointDie
hints contains information associated with how an endpoint should be
consumed.
func (*EndpointDie) HintsDie ¶
func (d *EndpointDie) HintsDie(fn func(d *EndpointHintsDie)) *EndpointDie
HintsDie mutates Hints as a die.
hints contains information associated with how an endpoint should be
consumed.
func (*EndpointDie) Hostname ¶
func (d *EndpointDie) Hostname(v *string) *EndpointDie
hostname of this endpoint. This field may be used by consumers of
endpoints to distinguish endpoints from each other (e.g. in DNS names).
Multiple endpoints which use the same hostname should be considered ¶
fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS
Label (RFC 1123) validation.
func (*EndpointDie) NodeName ¶
func (d *EndpointDie) NodeName(v *string) *EndpointDie
nodeName represents the name of the Node hosting this endpoint. This can
be used to determine endpoints local to a Node.
func (*EndpointDie) TargetRef ¶
func (d *EndpointDie) TargetRef(v *apicorev1.ObjectReference) *EndpointDie
targetRef is a reference to a Kubernetes object that represents this
endpoint.
func (*EndpointDie) TargetRefDie ¶
func (d *EndpointDie) TargetRefDie(fn func(d *corev1.ObjectReferenceDie)) *EndpointDie
TargetRefDie mutates TargetRef as a die.
targetRef is a reference to a Kubernetes object that represents this
endpoint.
func (*EndpointDie) Zone ¶
func (d *EndpointDie) Zone(v *string) *EndpointDie
zone is the name of the Zone this endpoint exists in.
type EndpointHintsDie ¶
type EndpointHintsDie struct {
// contains filtered or unexported fields
}
func (*EndpointHintsDie) DeepCopy ¶
func (d *EndpointHintsDie) DeepCopy() *EndpointHintsDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*EndpointHintsDie) DieDiff ¶
func (d *EndpointHintsDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*EndpointHintsDie) DieFeed ¶
func (d *EndpointHintsDie) DieFeed(r discoveryv1.EndpointHints) *EndpointHintsDie
DieFeed returns a new die with the provided resource.
func (*EndpointHintsDie) DieFeedJSON ¶
func (d *EndpointHintsDie) DieFeedJSON(j []byte) *EndpointHintsDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*EndpointHintsDie) DieFeedPtr ¶
func (d *EndpointHintsDie) DieFeedPtr(r *discoveryv1.EndpointHints) *EndpointHintsDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*EndpointHintsDie) DieFeedRawExtension ¶
func (d *EndpointHintsDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointHintsDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointHintsDie) DieFeedYAML ¶
func (d *EndpointHintsDie) DieFeedYAML(y []byte) *EndpointHintsDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*EndpointHintsDie) DieFeedYAMLFile ¶
func (d *EndpointHintsDie) DieFeedYAMLFile(name string) *EndpointHintsDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*EndpointHintsDie) DieImmutable ¶
func (d *EndpointHintsDie) DieImmutable(immutable bool) *EndpointHintsDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*EndpointHintsDie) DiePatch ¶
func (d *EndpointHintsDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*EndpointHintsDie) DieRelease ¶
func (d *EndpointHintsDie) DieRelease() discoveryv1.EndpointHints
DieRelease returns the resource managed by the die.
func (*EndpointHintsDie) DieReleaseJSON ¶
func (d *EndpointHintsDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*EndpointHintsDie) DieReleasePtr ¶
func (d *EndpointHintsDie) DieReleasePtr() *discoveryv1.EndpointHints
DieReleasePtr returns a pointer to the resource managed by the die.
func (*EndpointHintsDie) DieReleaseRawExtension ¶
func (d *EndpointHintsDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointHintsDie) DieReleaseYAML ¶
func (d *EndpointHintsDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*EndpointHintsDie) DieSeal ¶
func (d *EndpointHintsDie) DieSeal() *EndpointHintsDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*EndpointHintsDie) DieSealFeed ¶
func (d *EndpointHintsDie) DieSealFeed(r discoveryv1.EndpointHints) *EndpointHintsDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*EndpointHintsDie) DieSealFeedPtr ¶
func (d *EndpointHintsDie) DieSealFeedPtr(r *discoveryv1.EndpointHints) *EndpointHintsDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*EndpointHintsDie) DieSealRelease ¶
func (d *EndpointHintsDie) DieSealRelease() discoveryv1.EndpointHints
DieSealRelease returns the sealed resource managed by the die.
func (*EndpointHintsDie) DieSealReleasePtr ¶
func (d *EndpointHintsDie) DieSealReleasePtr() *discoveryv1.EndpointHints
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*EndpointHintsDie) DieStamp ¶
func (d *EndpointHintsDie) DieStamp(fn func(r *discoveryv1.EndpointHints)) *EndpointHintsDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*EndpointHintsDie) DieStampAt ¶
func (d *EndpointHintsDie) DieStampAt(jp string, fn interface{}) *EndpointHintsDie
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 (*EndpointHintsDie) DieWith ¶
func (d *EndpointHintsDie) DieWith(fns ...func(d *EndpointHintsDie)) *EndpointHintsDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*EndpointHintsDie) ForZones ¶
func (d *EndpointHintsDie) ForZones(v ...discoveryv1.ForZone) *EndpointHintsDie
forZones indicates the zone(s) this endpoint should be consumed by to
enable topology aware routing.
func (*EndpointHintsDie) ForZonesDie ¶
func (d *EndpointHintsDie) ForZonesDie(v ...*ForZoneDie) *EndpointHintsDie
ForZonesDie replaces ForZones by collecting the released value from each die passed.
forZones indicates the zone(s) this endpoint should be consumed by to
enable topology aware routing.
type EndpointPortDie ¶
type EndpointPortDie struct {
// contains filtered or unexported fields
}
func (*EndpointPortDie) AppProtocol ¶
func (d *EndpointPortDie) AppProtocol(v *string) *EndpointPortDie
The application protocol for this port.
This is used as a hint for implementations to offer richer behavior for protocols that they understand.
This field follows standard Kubernetes label syntax.
Valid values are either:
* Un-prefixed protocol names - reserved for IANA standard service names (as per
RFC-6335 and https://www.iana.org/assignments/service-names).
* Kubernetes-defined prefixed names:
* 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
* 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
* 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
* Other protocols should use implementation-defined prefixed names such as
mycompany.com/my-custom-protocol.
func (*EndpointPortDie) DeepCopy ¶
func (d *EndpointPortDie) DeepCopy() *EndpointPortDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*EndpointPortDie) DieDiff ¶
func (d *EndpointPortDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*EndpointPortDie) DieFeed ¶
func (d *EndpointPortDie) DieFeed(r discoveryv1.EndpointPort) *EndpointPortDie
DieFeed returns a new die with the provided resource.
func (*EndpointPortDie) DieFeedJSON ¶
func (d *EndpointPortDie) DieFeedJSON(j []byte) *EndpointPortDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*EndpointPortDie) DieFeedPtr ¶
func (d *EndpointPortDie) DieFeedPtr(r *discoveryv1.EndpointPort) *EndpointPortDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*EndpointPortDie) DieFeedRawExtension ¶
func (d *EndpointPortDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointPortDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointPortDie) DieFeedYAML ¶
func (d *EndpointPortDie) DieFeedYAML(y []byte) *EndpointPortDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*EndpointPortDie) DieFeedYAMLFile ¶
func (d *EndpointPortDie) DieFeedYAMLFile(name string) *EndpointPortDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*EndpointPortDie) DieImmutable ¶
func (d *EndpointPortDie) DieImmutable(immutable bool) *EndpointPortDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*EndpointPortDie) DiePatch ¶
func (d *EndpointPortDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*EndpointPortDie) DieRelease ¶
func (d *EndpointPortDie) DieRelease() discoveryv1.EndpointPort
DieRelease returns the resource managed by the die.
func (*EndpointPortDie) DieReleaseJSON ¶
func (d *EndpointPortDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*EndpointPortDie) DieReleasePtr ¶
func (d *EndpointPortDie) DieReleasePtr() *discoveryv1.EndpointPort
DieReleasePtr returns a pointer to the resource managed by the die.
func (*EndpointPortDie) DieReleaseRawExtension ¶
func (d *EndpointPortDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointPortDie) DieReleaseYAML ¶
func (d *EndpointPortDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*EndpointPortDie) DieSeal ¶
func (d *EndpointPortDie) DieSeal() *EndpointPortDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*EndpointPortDie) DieSealFeed ¶
func (d *EndpointPortDie) DieSealFeed(r discoveryv1.EndpointPort) *EndpointPortDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*EndpointPortDie) DieSealFeedPtr ¶
func (d *EndpointPortDie) DieSealFeedPtr(r *discoveryv1.EndpointPort) *EndpointPortDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*EndpointPortDie) DieSealRelease ¶
func (d *EndpointPortDie) DieSealRelease() discoveryv1.EndpointPort
DieSealRelease returns the sealed resource managed by the die.
func (*EndpointPortDie) DieSealReleasePtr ¶
func (d *EndpointPortDie) DieSealReleasePtr() *discoveryv1.EndpointPort
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*EndpointPortDie) DieStamp ¶
func (d *EndpointPortDie) DieStamp(fn func(r *discoveryv1.EndpointPort)) *EndpointPortDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*EndpointPortDie) DieStampAt ¶
func (d *EndpointPortDie) DieStampAt(jp string, fn interface{}) *EndpointPortDie
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 (*EndpointPortDie) DieWith ¶
func (d *EndpointPortDie) DieWith(fns ...func(d *EndpointPortDie)) *EndpointPortDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*EndpointPortDie) Name ¶
func (d *EndpointPortDie) Name(v *string) *EndpointPortDie
name represents the name of this port. All ports in an EndpointSlice must have a unique name.
If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name.
Name must either be an empty string or pass DNS_LABEL validation:
* must be no more than 63 characters long.
* must consist of lower case alphanumeric characters or '-'.
* must start and end with an alphanumeric character.
Default is empty string.
func (*EndpointPortDie) Port ¶
func (d *EndpointPortDie) Port(v *int32) *EndpointPortDie
port represents the port number of the endpoint.
If this is not specified, ports are not restricted and must be ¶
interpreted in the context of the specific consumer.
func (*EndpointPortDie) Protocol ¶
func (d *EndpointPortDie) Protocol(v *apicorev1.Protocol) *EndpointPortDie
protocol represents the IP protocol for this port.
Must be UDP, TCP, or SCTP.
Default is TCP.
type EndpointSliceDie ¶
type EndpointSliceDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*EndpointSliceDie) APIVersion ¶
func (d *EndpointSliceDie) APIVersion(v string) *EndpointSliceDie
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 (*EndpointSliceDie) AddressType ¶
func (d *EndpointSliceDie) AddressType(v discoveryv1.AddressType) *EndpointSliceDie
addressType specifies the type of address carried by this EndpointSlice.
All addresses in this slice must be the same type. This field is
immutable after creation. The following address types are currently
supported:
* IPv4: Represents an IPv4 Address.
* IPv6: Represents an IPv6 Address.
* FQDN: Represents a Fully Qualified Domain Name.
func (*EndpointSliceDie) DeepCopy ¶
func (d *EndpointSliceDie) DeepCopy() *EndpointSliceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*EndpointSliceDie) DeepCopyObject ¶
func (d *EndpointSliceDie) DeepCopyObject() runtime.Object
func (*EndpointSliceDie) DieDefaultTypeMetadata ¶
func (d *EndpointSliceDie) DieDefaultTypeMetadata() *EndpointSliceDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "discovery.k8s.io/v1" and "EndpointSlice" respectively.
func (*EndpointSliceDie) DieDiff ¶
func (d *EndpointSliceDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*EndpointSliceDie) DieFeed ¶
func (d *EndpointSliceDie) DieFeed(r discoveryv1.EndpointSlice) *EndpointSliceDie
DieFeed returns a new die with the provided resource.
func (*EndpointSliceDie) DieFeedJSON ¶
func (d *EndpointSliceDie) DieFeedJSON(j []byte) *EndpointSliceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*EndpointSliceDie) DieFeedPtr ¶
func (d *EndpointSliceDie) DieFeedPtr(r *discoveryv1.EndpointSlice) *EndpointSliceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*EndpointSliceDie) DieFeedRawExtension ¶
func (d *EndpointSliceDie) DieFeedRawExtension(raw runtime.RawExtension) *EndpointSliceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointSliceDie) DieFeedYAML ¶
func (d *EndpointSliceDie) DieFeedYAML(y []byte) *EndpointSliceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*EndpointSliceDie) DieFeedYAMLFile ¶
func (d *EndpointSliceDie) DieFeedYAMLFile(name string) *EndpointSliceDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*EndpointSliceDie) DieImmutable ¶
func (d *EndpointSliceDie) DieImmutable(immutable bool) *EndpointSliceDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*EndpointSliceDie) DiePatch ¶
func (d *EndpointSliceDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*EndpointSliceDie) DieRelease ¶
func (d *EndpointSliceDie) DieRelease() discoveryv1.EndpointSlice
DieRelease returns the resource managed by the die.
func (*EndpointSliceDie) DieReleaseJSON ¶
func (d *EndpointSliceDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*EndpointSliceDie) DieReleasePtr ¶
func (d *EndpointSliceDie) DieReleasePtr() *discoveryv1.EndpointSlice
DieReleasePtr returns a pointer to the resource managed by the die.
func (*EndpointSliceDie) DieReleaseRawExtension ¶
func (d *EndpointSliceDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*EndpointSliceDie) DieReleaseUnstructured ¶
func (d *EndpointSliceDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*EndpointSliceDie) DieReleaseYAML ¶
func (d *EndpointSliceDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*EndpointSliceDie) DieSeal ¶
func (d *EndpointSliceDie) DieSeal() *EndpointSliceDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*EndpointSliceDie) DieSealFeed ¶
func (d *EndpointSliceDie) DieSealFeed(r discoveryv1.EndpointSlice) *EndpointSliceDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*EndpointSliceDie) DieSealFeedPtr ¶
func (d *EndpointSliceDie) DieSealFeedPtr(r *discoveryv1.EndpointSlice) *EndpointSliceDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*EndpointSliceDie) DieSealRelease ¶
func (d *EndpointSliceDie) DieSealRelease() discoveryv1.EndpointSlice
DieSealRelease returns the sealed resource managed by the die.
func (*EndpointSliceDie) DieSealReleasePtr ¶
func (d *EndpointSliceDie) DieSealReleasePtr() *discoveryv1.EndpointSlice
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*EndpointSliceDie) DieStamp ¶
func (d *EndpointSliceDie) DieStamp(fn func(r *discoveryv1.EndpointSlice)) *EndpointSliceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*EndpointSliceDie) DieStampAt ¶
func (d *EndpointSliceDie) DieStampAt(jp string, fn interface{}) *EndpointSliceDie
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 (*EndpointSliceDie) DieWith ¶
func (d *EndpointSliceDie) DieWith(fns ...func(d *EndpointSliceDie)) *EndpointSliceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*EndpointSliceDie) Endpoints ¶
func (d *EndpointSliceDie) Endpoints(v ...discoveryv1.Endpoint) *EndpointSliceDie
endpoints is a list of unique endpoints in this slice. Each slice may
include a maximum of 1000 endpoints.
func (*EndpointSliceDie) EndpointsDie ¶
func (d *EndpointSliceDie) EndpointsDie(v ...*EndpointDie) *EndpointSliceDie
EndpointsDie replaces Endpoints by collecting the released value from each die passed.
endpoints is a list of unique endpoints in this slice. Each slice may
include a maximum of 1000 endpoints.
func (*EndpointSliceDie) GetObjectKind ¶
func (d *EndpointSliceDie) GetObjectKind() schema.ObjectKind
func (*EndpointSliceDie) Kind ¶
func (d *EndpointSliceDie) Kind(v string) *EndpointSliceDie
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 (*EndpointSliceDie) MarshalJSON ¶
func (d *EndpointSliceDie) MarshalJSON() ([]byte, error)
func (*EndpointSliceDie) Metadata ¶
func (d *EndpointSliceDie) Metadata(v apismetav1.ObjectMeta) *EndpointSliceDie
Metadata standard object's metadata.
func (*EndpointSliceDie) MetadataDie ¶
func (d *EndpointSliceDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *EndpointSliceDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*EndpointSliceDie) Ports ¶
func (d *EndpointSliceDie) Ports(v ...discoveryv1.EndpointPort) *EndpointSliceDie
ports specifies the list of network ports exposed by each endpoint in
this slice. Each port must have a unique name. When ports is empty, it
indicates that there are no defined ports. When a port is defined with a
nil port value, it indicates "all ports". Each slice may include a
maximum of 100 ports.
func (*EndpointSliceDie) PortsDie ¶
func (d *EndpointSliceDie) PortsDie(v ...*EndpointPortDie) *EndpointSliceDie
PortsDie replaces Ports by collecting the released value from each die passed.
ports specifies the list of network ports exposed by each endpoint in
this slice. Each port must have a unique name. When ports is empty, it
indicates that there are no defined ports. When a port is defined with a
nil port value, it indicates "all ports". Each slice may include a
maximum of 100 ports.
func (*EndpointSliceDie) TypeMetadata ¶
func (d *EndpointSliceDie) TypeMetadata(v apismetav1.TypeMeta) *EndpointSliceDie
TypeMetadata standard object's type metadata.
func (*EndpointSliceDie) TypeMetadataDie ¶
func (d *EndpointSliceDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *EndpointSliceDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*EndpointSliceDie) UnmarshalJSON ¶
func (d *EndpointSliceDie) UnmarshalJSON(b []byte) error
type ForZoneDie ¶
type ForZoneDie struct {
// contains filtered or unexported fields
}
func (*ForZoneDie) DeepCopy ¶
func (d *ForZoneDie) DeepCopy() *ForZoneDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ForZoneDie) DieDiff ¶
func (d *ForZoneDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ForZoneDie) DieFeed ¶
func (d *ForZoneDie) DieFeed(r discoveryv1.ForZone) *ForZoneDie
DieFeed returns a new die with the provided resource.
func (*ForZoneDie) DieFeedJSON ¶
func (d *ForZoneDie) DieFeedJSON(j []byte) *ForZoneDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ForZoneDie) DieFeedPtr ¶
func (d *ForZoneDie) DieFeedPtr(r *discoveryv1.ForZone) *ForZoneDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ForZoneDie) DieFeedRawExtension ¶
func (d *ForZoneDie) DieFeedRawExtension(raw runtime.RawExtension) *ForZoneDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ForZoneDie) DieFeedYAML ¶
func (d *ForZoneDie) DieFeedYAML(y []byte) *ForZoneDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ForZoneDie) DieFeedYAMLFile ¶
func (d *ForZoneDie) DieFeedYAMLFile(name string) *ForZoneDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ForZoneDie) DieImmutable ¶
func (d *ForZoneDie) DieImmutable(immutable bool) *ForZoneDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ForZoneDie) DiePatch ¶
func (d *ForZoneDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ForZoneDie) DieRelease ¶
func (d *ForZoneDie) DieRelease() discoveryv1.ForZone
DieRelease returns the resource managed by the die.
func (*ForZoneDie) DieReleaseJSON ¶
func (d *ForZoneDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ForZoneDie) DieReleasePtr ¶
func (d *ForZoneDie) DieReleasePtr() *discoveryv1.ForZone
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ForZoneDie) DieReleaseRawExtension ¶
func (d *ForZoneDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ForZoneDie) DieReleaseYAML ¶
func (d *ForZoneDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ForZoneDie) DieSeal ¶
func (d *ForZoneDie) DieSeal() *ForZoneDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ForZoneDie) DieSealFeed ¶
func (d *ForZoneDie) DieSealFeed(r discoveryv1.ForZone) *ForZoneDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ForZoneDie) DieSealFeedPtr ¶
func (d *ForZoneDie) DieSealFeedPtr(r *discoveryv1.ForZone) *ForZoneDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ForZoneDie) DieSealRelease ¶
func (d *ForZoneDie) DieSealRelease() discoveryv1.ForZone
DieSealRelease returns the sealed resource managed by the die.
func (*ForZoneDie) DieSealReleasePtr ¶
func (d *ForZoneDie) DieSealReleasePtr() *discoveryv1.ForZone
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ForZoneDie) DieStamp ¶
func (d *ForZoneDie) DieStamp(fn func(r *discoveryv1.ForZone)) *ForZoneDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ForZoneDie) DieStampAt ¶
func (d *ForZoneDie) DieStampAt(jp string, fn interface{}) *ForZoneDie
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 (*ForZoneDie) DieWith ¶
func (d *ForZoneDie) DieWith(fns ...func(d *ForZoneDie)) *ForZoneDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ForZoneDie) Name ¶
func (d *ForZoneDie) Name(v string) *ForZoneDie
name represents the name of the zone.