v1

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointBlank = (&EndpointDie{}).DieFeed(discoveryv1.Endpoint{})
View Source
var EndpointConditionsBlank = (&EndpointConditionsDie{}).DieFeed(discoveryv1.EndpointConditions{})
View Source
var EndpointHintsBlank = (&EndpointHintsDie{}).DieFeed(discoveryv1.EndpointHints{})
View Source
var EndpointPortBlank = (&EndpointPortDie{}).DieFeed(discoveryv1.EndpointPort{})
View Source
var EndpointSliceBlank = (&EndpointSliceDie{}).DieFeed(discoveryv1.EndpointSlice{})
View Source
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

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

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

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

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

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

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

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

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

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

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

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*EndpointConditionsDie) Ready

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL