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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTPIngressPathBlank = (&HTTPIngressPathDie{}).DieFeed(networkingv1.HTTPIngressPath{})
View Source
var HTTPIngressRuleValueBlank = (&HTTPIngressRuleValueDie{}).DieFeed(networkingv1.HTTPIngressRuleValue{})
View Source
var IPBlockBlank = (&IPBlockDie{}).DieFeed(networkingv1.IPBlock{})
View Source
var IngressBackendBlank = (&IngressBackendDie{}).DieFeed(networkingv1.IngressBackend{})
View Source
var IngressBlank = (&IngressDie{}).DieFeed(networkingv1.Ingress{})
View Source
var IngressClassBlank = (&IngressClassDie{}).DieFeed(networkingv1.IngressClass{})
View Source
var IngressClassParametersReferenceBlank = (&IngressClassParametersReferenceDie{}).DieFeed(networkingv1.IngressClassParametersReference{})
View Source
var IngressClassSpecBlank = (&IngressClassSpecDie{}).DieFeed(networkingv1.IngressClassSpec{})
View Source
var IngressLoadBalancerIngressBlank = (&IngressLoadBalancerIngressDie{}).DieFeed(networkingv1.IngressLoadBalancerIngress{})
View Source
var IngressLoadBalancerStatusBlank = (&IngressLoadBalancerStatusDie{}).DieFeed(networkingv1.IngressLoadBalancerStatus{})
View Source
var IngressPortStatusBlank = (&IngressPortStatusDie{}).DieFeed(networkingv1.IngressPortStatus{})
View Source
var IngressRuleBlank = (&IngressRuleDie{}).DieFeed(networkingv1.IngressRule{})
View Source
var IngressServiceBackendBlank = (&IngressServiceBackendDie{}).DieFeed(networkingv1.IngressServiceBackend{})
View Source
var IngressSpecBlank = (&IngressSpecDie{}).DieFeed(networkingv1.IngressSpec{})
View Source
var IngressStatusBlank = (&IngressStatusDie{}).DieFeed(networkingv1.IngressStatus{})
View Source
var IngressTLSBlank = (&IngressTLSDie{}).DieFeed(networkingv1.IngressTLS{})
View Source
var NetworkPolicyBlank = (&NetworkPolicyDie{}).DieFeed(networkingv1.NetworkPolicy{})
View Source
var NetworkPolicyEgressRuleBlank = (&NetworkPolicyEgressRuleDie{}).DieFeed(networkingv1.NetworkPolicyEgressRule{})
View Source
var NetworkPolicyIngressRuleBlank = (&NetworkPolicyIngressRuleDie{}).DieFeed(networkingv1.NetworkPolicyIngressRule{})
View Source
var NetworkPolicyPeerBlank = (&NetworkPolicyPeerDie{}).DieFeed(networkingv1.NetworkPolicyPeer{})
View Source
var NetworkPolicyPortBlank = (&NetworkPolicyPortDie{}).DieFeed(networkingv1.NetworkPolicyPort{})
View Source
var NetworkPolicySpecBlank = (&NetworkPolicySpecDie{}).DieFeed(networkingv1.NetworkPolicySpec{})
View Source
var ServiceBackendPortBlank = (&ServiceBackendPortDie{}).DieFeed(networkingv1.ServiceBackendPort{})

Functions

This section is empty.

Types

type HTTPIngressPathDie

type HTTPIngressPathDie struct {
	// contains filtered or unexported fields
}

func (*HTTPIngressPathDie) Backend

backend defines the referenced service endpoint to which the traffic

will be forwarded to.

func (*HTTPIngressPathDie) BackendDie

func (d *HTTPIngressPathDie) BackendDie(fn func(d *IngressBackendDie)) *HTTPIngressPathDie

BackendDie mutates Backend as a die.

backend defines the referenced service endpoint to which the traffic

will be forwarded to.

func (*HTTPIngressPathDie) DeepCopy

func (d *HTTPIngressPathDie) DeepCopy() *HTTPIngressPathDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*HTTPIngressPathDie) DieDiff added in v0.13.0

func (d *HTTPIngressPathDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*HTTPIngressPathDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HTTPIngressPathDie) DieFeedJSON

func (d *HTTPIngressPathDie) DieFeedJSON(j []byte) *HTTPIngressPathDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*HTTPIngressPathDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*HTTPIngressPathDie) DieFeedRawExtension

func (d *HTTPIngressPathDie) DieFeedRawExtension(raw runtime.RawExtension) *HTTPIngressPathDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*HTTPIngressPathDie) DieFeedYAML

func (d *HTTPIngressPathDie) DieFeedYAML(y []byte) *HTTPIngressPathDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*HTTPIngressPathDie) DieFeedYAMLFile

func (d *HTTPIngressPathDie) DieFeedYAMLFile(name string) *HTTPIngressPathDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*HTTPIngressPathDie) DieImmutable

func (d *HTTPIngressPathDie) DieImmutable(immutable bool) *HTTPIngressPathDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*HTTPIngressPathDie) DiePatch added in v0.13.0

func (d *HTTPIngressPathDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*HTTPIngressPathDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HTTPIngressPathDie) DieReleaseJSON

func (d *HTTPIngressPathDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*HTTPIngressPathDie) DieReleasePtr

func (d *HTTPIngressPathDie) DieReleasePtr() *networkingv1.HTTPIngressPath

DieReleasePtr returns a pointer to the resource managed by the die.

func (*HTTPIngressPathDie) DieReleaseRawExtension

func (d *HTTPIngressPathDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*HTTPIngressPathDie) DieReleaseYAML

func (d *HTTPIngressPathDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*HTTPIngressPathDie) DieSeal added in v0.13.0

func (d *HTTPIngressPathDie) DieSeal() *HTTPIngressPathDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*HTTPIngressPathDie) DieSealFeed added in v0.13.0

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 (*HTTPIngressPathDie) DieSealFeedPtr added in v0.13.0

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 (*HTTPIngressPathDie) DieSealRelease added in v0.13.0

func (d *HTTPIngressPathDie) DieSealRelease() networkingv1.HTTPIngressPath

DieSealRelease returns the sealed resource managed by the die.

func (*HTTPIngressPathDie) DieSealReleasePtr added in v0.13.0

func (d *HTTPIngressPathDie) DieSealReleasePtr() *networkingv1.HTTPIngressPath

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HTTPIngressPathDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*HTTPIngressPathDie) DieStampAt

func (d *HTTPIngressPathDie) DieStampAt(jp string, fn interface{}) *HTTPIngressPathDie

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 (*HTTPIngressPathDie) DieWith

func (d *HTTPIngressPathDie) DieWith(fns ...func(d *HTTPIngressPathDie)) *HTTPIngressPathDie

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

func (*HTTPIngressPathDie) Path

path is matched against the path of an incoming request. Currently it can

contain characters disallowed from the conventional "path" part of a URL

as defined by RFC 3986. Paths must begin with a '/' and must be present

when using PathType with value "Exact" or "Prefix".

func (*HTTPIngressPathDie) PathType

pathType determines the interpretation of the path matching. PathType can

be one of the following values:

* Exact: Matches the URL path exactly.

* Prefix: Matches based on a URL path prefix split by '/'. Matching is

done on a path element by element basis. A path element refers is the

list of labels in the path split by the '/' separator. A request is a

match for path p if every p is an element-wise prefix of p of the

request path. Note that if the last element of the path is a substring

of the last element in request path, it is not a match (e.g. /foo/bar

matches /foo/bar/baz, but does not match /foo/barbaz).

* ImplementationSpecific: Interpretation of the Path matching is up to

the IngressClass. Implementations can treat this as a separate PathType

or treat it identically to Prefix or Exact path types.

Implementations are required to support all path types.

type HTTPIngressRuleValueDie

type HTTPIngressRuleValueDie struct {
	// contains filtered or unexported fields
}

func (*HTTPIngressRuleValueDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*HTTPIngressRuleValueDie) DieDiff added in v0.13.0

func (d *HTTPIngressRuleValueDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*HTTPIngressRuleValueDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*HTTPIngressRuleValueDie) DieFeedJSON

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*HTTPIngressRuleValueDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*HTTPIngressRuleValueDie) DieFeedRawExtension

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*HTTPIngressRuleValueDie) DieFeedYAML

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*HTTPIngressRuleValueDie) DieFeedYAMLFile

func (d *HTTPIngressRuleValueDie) DieFeedYAMLFile(name string) *HTTPIngressRuleValueDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*HTTPIngressRuleValueDie) DieImmutable

func (d *HTTPIngressRuleValueDie) DieImmutable(immutable bool) *HTTPIngressRuleValueDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*HTTPIngressRuleValueDie) DiePatch added in v0.13.0

func (d *HTTPIngressRuleValueDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*HTTPIngressRuleValueDie) DieRelease

DieRelease returns the resource managed by the die.

func (*HTTPIngressRuleValueDie) DieReleaseJSON

func (d *HTTPIngressRuleValueDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*HTTPIngressRuleValueDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*HTTPIngressRuleValueDie) DieReleaseRawExtension

func (d *HTTPIngressRuleValueDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*HTTPIngressRuleValueDie) DieReleaseYAML

func (d *HTTPIngressRuleValueDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*HTTPIngressRuleValueDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*HTTPIngressRuleValueDie) DieSealFeed added in v0.13.0

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 (*HTTPIngressRuleValueDie) DieSealFeedPtr added in v0.13.0

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 (*HTTPIngressRuleValueDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*HTTPIngressRuleValueDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*HTTPIngressRuleValueDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*HTTPIngressRuleValueDie) DieStampAt

func (d *HTTPIngressRuleValueDie) DieStampAt(jp string, fn interface{}) *HTTPIngressRuleValueDie

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 (*HTTPIngressRuleValueDie) DieWith

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

func (*HTTPIngressRuleValueDie) Paths

paths is a collection of paths that map requests to backends.

func (*HTTPIngressRuleValueDie) PathsDie

PathsDie replaces Paths by collecting the released value from each die passed.

paths is a collection of paths that map requests to backends.

type IPBlockDie

type IPBlockDie struct {
	// contains filtered or unexported fields
}

func (*IPBlockDie) CIDR

func (d *IPBlockDie) CIDR(v string) *IPBlockDie

cidr is a string representing the IPBlock

Valid examples are "192.168.1.0/24" or "2001:db8::/64"

func (*IPBlockDie) DeepCopy

func (d *IPBlockDie) DeepCopy() *IPBlockDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IPBlockDie) DieDiff added in v0.13.0

func (d *IPBlockDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IPBlockDie) DieFeed

func (d *IPBlockDie) DieFeed(r networkingv1.IPBlock) *IPBlockDie

DieFeed returns a new die with the provided resource.

func (*IPBlockDie) DieFeedJSON

func (d *IPBlockDie) DieFeedJSON(j []byte) *IPBlockDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IPBlockDie) DieFeedPtr

func (d *IPBlockDie) DieFeedPtr(r *networkingv1.IPBlock) *IPBlockDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IPBlockDie) DieFeedRawExtension

func (d *IPBlockDie) DieFeedRawExtension(raw runtime.RawExtension) *IPBlockDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IPBlockDie) DieFeedYAML

func (d *IPBlockDie) DieFeedYAML(y []byte) *IPBlockDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IPBlockDie) DieFeedYAMLFile

func (d *IPBlockDie) DieFeedYAMLFile(name string) *IPBlockDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IPBlockDie) DieImmutable

func (d *IPBlockDie) DieImmutable(immutable bool) *IPBlockDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IPBlockDie) DiePatch added in v0.13.0

func (d *IPBlockDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IPBlockDie) DieRelease

func (d *IPBlockDie) DieRelease() networkingv1.IPBlock

DieRelease returns the resource managed by the die.

func (*IPBlockDie) DieReleaseJSON

func (d *IPBlockDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IPBlockDie) DieReleasePtr

func (d *IPBlockDie) DieReleasePtr() *networkingv1.IPBlock

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IPBlockDie) DieReleaseRawExtension

func (d *IPBlockDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IPBlockDie) DieReleaseYAML

func (d *IPBlockDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IPBlockDie) DieSeal added in v0.13.0

func (d *IPBlockDie) DieSeal() *IPBlockDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IPBlockDie) DieSealFeed added in v0.13.0

func (d *IPBlockDie) DieSealFeed(r networkingv1.IPBlock) *IPBlockDie

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 (*IPBlockDie) DieSealFeedPtr added in v0.13.0

func (d *IPBlockDie) DieSealFeedPtr(r *networkingv1.IPBlock) *IPBlockDie

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 (*IPBlockDie) DieSealRelease added in v0.13.0

func (d *IPBlockDie) DieSealRelease() networkingv1.IPBlock

DieSealRelease returns the sealed resource managed by the die.

func (*IPBlockDie) DieSealReleasePtr added in v0.13.0

func (d *IPBlockDie) DieSealReleasePtr() *networkingv1.IPBlock

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IPBlockDie) DieStamp

func (d *IPBlockDie) DieStamp(fn func(r *networkingv1.IPBlock)) *IPBlockDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IPBlockDie) DieStampAt

func (d *IPBlockDie) DieStampAt(jp string, fn interface{}) *IPBlockDie

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 (*IPBlockDie) DieWith

func (d *IPBlockDie) DieWith(fns ...func(d *IPBlockDie)) *IPBlockDie

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

func (*IPBlockDie) Except

func (d *IPBlockDie) Except(v ...string) *IPBlockDie

except is a slice of CIDRs that should not be included within an IPBlock

Valid examples are "192.168.1.0/24" or "2001:db8::/64"

Except values will be rejected if they are outside the cidr range

type IngressBackendDie

type IngressBackendDie struct {
	// contains filtered or unexported fields
}

func (*IngressBackendDie) DeepCopy

func (d *IngressBackendDie) DeepCopy() *IngressBackendDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressBackendDie) DieDiff added in v0.13.0

func (d *IngressBackendDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressBackendDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressBackendDie) DieFeedJSON

func (d *IngressBackendDie) DieFeedJSON(j []byte) *IngressBackendDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressBackendDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressBackendDie) DieFeedRawExtension

func (d *IngressBackendDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressBackendDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressBackendDie) DieFeedYAML

func (d *IngressBackendDie) DieFeedYAML(y []byte) *IngressBackendDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressBackendDie) DieFeedYAMLFile

func (d *IngressBackendDie) DieFeedYAMLFile(name string) *IngressBackendDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressBackendDie) DieImmutable

func (d *IngressBackendDie) DieImmutable(immutable bool) *IngressBackendDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressBackendDie) DiePatch added in v0.13.0

func (d *IngressBackendDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressBackendDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressBackendDie) DieReleaseJSON

func (d *IngressBackendDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressBackendDie) DieReleasePtr

func (d *IngressBackendDie) DieReleasePtr() *networkingv1.IngressBackend

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressBackendDie) DieReleaseRawExtension

func (d *IngressBackendDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressBackendDie) DieReleaseYAML

func (d *IngressBackendDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressBackendDie) DieSeal added in v0.13.0

func (d *IngressBackendDie) DieSeal() *IngressBackendDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressBackendDie) DieSealFeed added in v0.13.0

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 (*IngressBackendDie) DieSealFeedPtr added in v0.13.0

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 (*IngressBackendDie) DieSealRelease added in v0.13.0

func (d *IngressBackendDie) DieSealRelease() networkingv1.IngressBackend

DieSealRelease returns the sealed resource managed by the die.

func (*IngressBackendDie) DieSealReleasePtr added in v0.13.0

func (d *IngressBackendDie) DieSealReleasePtr() *networkingv1.IngressBackend

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressBackendDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressBackendDie) DieStampAt

func (d *IngressBackendDie) DieStampAt(jp string, fn interface{}) *IngressBackendDie

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 (*IngressBackendDie) DieWith

func (d *IngressBackendDie) DieWith(fns ...func(d *IngressBackendDie)) *IngressBackendDie

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

func (*IngressBackendDie) Resource

resource is an ObjectRef to another Kubernetes resource in the namespace

of the Ingress object. If resource is specified, a service.Name and

service.Port must not be specified.

This is a mutually exclusive setting with "Service".

func (*IngressBackendDie) ResourceDie

ResourceDie mutates Resource as a die.

resource is an ObjectRef to another Kubernetes resource in the namespace

of the Ingress object. If resource is specified, a service.Name and

service.Port must not be specified.

This is a mutually exclusive setting with "Service".

func (*IngressBackendDie) Service

service references a service as a backend.

This is a mutually exclusive setting with "Resource".

func (*IngressBackendDie) ServiceDie

func (d *IngressBackendDie) ServiceDie(fn func(d *IngressServiceBackendDie)) *IngressBackendDie

ServiceDie mutates Service as a die.

service references a service as a backend.

This is a mutually exclusive setting with "Resource".

type IngressClassDie

type IngressClassDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*IngressClassDie) APIVersion

func (d *IngressClassDie) APIVersion(v string) *IngressClassDie

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 (*IngressClassDie) DeepCopy

func (d *IngressClassDie) DeepCopy() *IngressClassDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressClassDie) DeepCopyObject

func (d *IngressClassDie) DeepCopyObject() runtime.Object

func (*IngressClassDie) DieDefaultTypeMetadata added in v0.13.0

func (d *IngressClassDie) DieDefaultTypeMetadata() *IngressClassDie

DieDefaultTypeMetadata sets the APIVersion and Kind to "networking.k8s.io/v1" and "IngressClass" respectively.

func (*IngressClassDie) DieDiff added in v0.13.0

func (d *IngressClassDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressClassDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressClassDie) DieFeedJSON

func (d *IngressClassDie) DieFeedJSON(j []byte) *IngressClassDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressClassDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressClassDie) DieFeedRawExtension

func (d *IngressClassDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressClassDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressClassDie) DieFeedYAML

func (d *IngressClassDie) DieFeedYAML(y []byte) *IngressClassDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressClassDie) DieFeedYAMLFile

func (d *IngressClassDie) DieFeedYAMLFile(name string) *IngressClassDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressClassDie) DieImmutable

func (d *IngressClassDie) DieImmutable(immutable bool) *IngressClassDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressClassDie) DiePatch added in v0.13.0

func (d *IngressClassDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressClassDie) DieRelease

func (d *IngressClassDie) DieRelease() networkingv1.IngressClass

DieRelease returns the resource managed by the die.

func (*IngressClassDie) DieReleaseJSON

func (d *IngressClassDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressClassDie) DieReleasePtr

func (d *IngressClassDie) DieReleasePtr() *networkingv1.IngressClass

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressClassDie) DieReleaseRawExtension

func (d *IngressClassDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressClassDie) DieReleaseUnstructured

func (d *IngressClassDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*IngressClassDie) DieReleaseYAML

func (d *IngressClassDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressClassDie) DieSeal added in v0.13.0

func (d *IngressClassDie) DieSeal() *IngressClassDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressClassDie) DieSealFeed added in v0.13.0

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 (*IngressClassDie) DieSealFeedPtr added in v0.13.0

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 (*IngressClassDie) DieSealRelease added in v0.13.0

func (d *IngressClassDie) DieSealRelease() networkingv1.IngressClass

DieSealRelease returns the sealed resource managed by the die.

func (*IngressClassDie) DieSealReleasePtr added in v0.13.0

func (d *IngressClassDie) DieSealReleasePtr() *networkingv1.IngressClass

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressClassDie) DieStamp

func (d *IngressClassDie) DieStamp(fn func(r *networkingv1.IngressClass)) *IngressClassDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressClassDie) DieStampAt

func (d *IngressClassDie) DieStampAt(jp string, fn interface{}) *IngressClassDie

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 (*IngressClassDie) DieWith

func (d *IngressClassDie) DieWith(fns ...func(d *IngressClassDie)) *IngressClassDie

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

func (*IngressClassDie) GetObjectKind

func (d *IngressClassDie) GetObjectKind() schema.ObjectKind

func (*IngressClassDie) 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 (*IngressClassDie) MarshalJSON

func (d *IngressClassDie) MarshalJSON() ([]byte, error)

func (*IngressClassDie) Metadata added in v0.13.0

Metadata standard object's metadata.

func (*IngressClassDie) MetadataDie

func (d *IngressClassDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *IngressClassDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*IngressClassDie) Spec

spec is the desired state of the IngressClass.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*IngressClassDie) SpecDie

func (d *IngressClassDie) SpecDie(fn func(d *IngressClassSpecDie)) *IngressClassDie

SpecDie stamps the resource's spec field with a mutable die.

func (*IngressClassDie) TypeMetadata added in v0.13.0

func (d *IngressClassDie) TypeMetadata(v apismetav1.TypeMeta) *IngressClassDie

TypeMetadata standard object's type metadata.

func (*IngressClassDie) TypeMetadataDie added in v0.13.0

func (d *IngressClassDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *IngressClassDie

TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.

func (*IngressClassDie) UnmarshalJSON

func (d *IngressClassDie) UnmarshalJSON(b []byte) error

type IngressClassParametersReferenceDie

type IngressClassParametersReferenceDie struct {
	// contains filtered or unexported fields
}

func (*IngressClassParametersReferenceDie) APIGroup

apiGroup is the group for the resource being referenced. If APIGroup is

not specified, the specified Kind must be in the core API group. For any

other third-party types, APIGroup is required.

func (*IngressClassParametersReferenceDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressClassParametersReferenceDie) DieDiff added in v0.13.0

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressClassParametersReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressClassParametersReferenceDie) DieFeedJSON

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressClassParametersReferenceDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressClassParametersReferenceDie) DieFeedRawExtension

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressClassParametersReferenceDie) DieFeedYAML

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressClassParametersReferenceDie) DieFeedYAMLFile

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressClassParametersReferenceDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressClassParametersReferenceDie) DiePatch added in v0.13.0

func (d *IngressClassParametersReferenceDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressClassParametersReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressClassParametersReferenceDie) DieReleaseJSON

func (d *IngressClassParametersReferenceDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressClassParametersReferenceDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressClassParametersReferenceDie) DieReleaseRawExtension

func (d *IngressClassParametersReferenceDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressClassParametersReferenceDie) DieReleaseYAML

func (d *IngressClassParametersReferenceDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressClassParametersReferenceDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressClassParametersReferenceDie) DieSealFeed added in v0.13.0

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 (*IngressClassParametersReferenceDie) DieSealFeedPtr added in v0.13.0

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 (*IngressClassParametersReferenceDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*IngressClassParametersReferenceDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressClassParametersReferenceDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressClassParametersReferenceDie) DieStampAt

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 (*IngressClassParametersReferenceDie) DieWith

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

func (*IngressClassParametersReferenceDie) Kind

kind is the type of resource being referenced.

func (*IngressClassParametersReferenceDie) Name

name is the name of resource being referenced.

func (*IngressClassParametersReferenceDie) Namespace

namespace is the namespace of the resource being referenced. This field is

required when scope is set to "Namespace" and must be unset when scope is set to

"Cluster".

func (*IngressClassParametersReferenceDie) Scope

scope represents if this refers to a cluster or namespace scoped resource.

This may be set to "Cluster" (default) or "Namespace".

type IngressClassSpecDie

type IngressClassSpecDie struct {
	// contains filtered or unexported fields
}

func (*IngressClassSpecDie) Controller

controller refers to the name of the controller that should handle this

class. This allows for different "flavors" that are controlled by the

same controller. For example, you may have different parameters for the

same implementing controller. This should be specified as a

domain-prefixed path no more than 250 characters in length, e.g.

"acme.io/ingress-controller". This field is immutable.

func (*IngressClassSpecDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressClassSpecDie) DieDiff added in v0.13.0

func (d *IngressClassSpecDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressClassSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressClassSpecDie) DieFeedJSON

func (d *IngressClassSpecDie) DieFeedJSON(j []byte) *IngressClassSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressClassSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressClassSpecDie) DieFeedRawExtension

func (d *IngressClassSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressClassSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressClassSpecDie) DieFeedYAML

func (d *IngressClassSpecDie) DieFeedYAML(y []byte) *IngressClassSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressClassSpecDie) DieFeedYAMLFile

func (d *IngressClassSpecDie) DieFeedYAMLFile(name string) *IngressClassSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressClassSpecDie) DieImmutable

func (d *IngressClassSpecDie) DieImmutable(immutable bool) *IngressClassSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressClassSpecDie) DiePatch added in v0.13.0

func (d *IngressClassSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressClassSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressClassSpecDie) DieReleaseJSON

func (d *IngressClassSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressClassSpecDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressClassSpecDie) DieReleaseRawExtension

func (d *IngressClassSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressClassSpecDie) DieReleaseYAML

func (d *IngressClassSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressClassSpecDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressClassSpecDie) DieSealFeed added in v0.13.0

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 (*IngressClassSpecDie) DieSealFeedPtr added in v0.13.0

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 (*IngressClassSpecDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*IngressClassSpecDie) DieSealReleasePtr added in v0.13.0

func (d *IngressClassSpecDie) DieSealReleasePtr() *networkingv1.IngressClassSpec

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressClassSpecDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressClassSpecDie) DieStampAt

func (d *IngressClassSpecDie) DieStampAt(jp string, fn interface{}) *IngressClassSpecDie

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 (*IngressClassSpecDie) DieWith

func (d *IngressClassSpecDie) DieWith(fns ...func(d *IngressClassSpecDie)) *IngressClassSpecDie

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

func (*IngressClassSpecDie) Parameters

parameters is a link to a custom resource containing additional

configuration for the controller. This is optional if the controller does

not require extra parameters.

func (*IngressClassSpecDie) ParametersDie

ParametersDie mutates Parameters as a die.

parameters is a link to a custom resource containing additional

configuration for the controller. This is optional if the controller does

not require extra parameters.

type IngressDie

type IngressDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*IngressDie) APIVersion

func (d *IngressDie) APIVersion(v string) *IngressDie

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 (*IngressDie) DeepCopy

func (d *IngressDie) DeepCopy() *IngressDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressDie) DeepCopyObject

func (d *IngressDie) DeepCopyObject() runtime.Object

func (*IngressDie) DieDefaultTypeMetadata added in v0.13.0

func (d *IngressDie) DieDefaultTypeMetadata() *IngressDie

DieDefaultTypeMetadata sets the APIVersion and Kind to "networking.k8s.io/v1" and "Ingress" respectively.

func (*IngressDie) DieDiff added in v0.13.0

func (d *IngressDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressDie) DieFeed

func (d *IngressDie) DieFeed(r networkingv1.Ingress) *IngressDie

DieFeed returns a new die with the provided resource.

func (*IngressDie) DieFeedJSON

func (d *IngressDie) DieFeedJSON(j []byte) *IngressDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressDie) DieFeedPtr

func (d *IngressDie) DieFeedPtr(r *networkingv1.Ingress) *IngressDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressDie) DieFeedRawExtension

func (d *IngressDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressDie) DieFeedYAML

func (d *IngressDie) DieFeedYAML(y []byte) *IngressDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressDie) DieFeedYAMLFile

func (d *IngressDie) DieFeedYAMLFile(name string) *IngressDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressDie) DieImmutable

func (d *IngressDie) DieImmutable(immutable bool) *IngressDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressDie) DiePatch added in v0.13.0

func (d *IngressDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressDie) DieRelease

func (d *IngressDie) DieRelease() networkingv1.Ingress

DieRelease returns the resource managed by the die.

func (*IngressDie) DieReleaseJSON

func (d *IngressDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressDie) DieReleasePtr

func (d *IngressDie) DieReleasePtr() *networkingv1.Ingress

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressDie) DieReleaseRawExtension

func (d *IngressDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressDie) DieReleaseUnstructured

func (d *IngressDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*IngressDie) DieReleaseYAML

func (d *IngressDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressDie) DieSeal added in v0.13.0

func (d *IngressDie) DieSeal() *IngressDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressDie) DieSealFeed added in v0.13.0

func (d *IngressDie) DieSealFeed(r networkingv1.Ingress) *IngressDie

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 (*IngressDie) DieSealFeedPtr added in v0.13.0

func (d *IngressDie) DieSealFeedPtr(r *networkingv1.Ingress) *IngressDie

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 (*IngressDie) DieSealRelease added in v0.13.0

func (d *IngressDie) DieSealRelease() networkingv1.Ingress

DieSealRelease returns the sealed resource managed by the die.

func (*IngressDie) DieSealReleasePtr added in v0.13.0

func (d *IngressDie) DieSealReleasePtr() *networkingv1.Ingress

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressDie) DieStamp

func (d *IngressDie) DieStamp(fn func(r *networkingv1.Ingress)) *IngressDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressDie) DieStampAt

func (d *IngressDie) DieStampAt(jp string, fn interface{}) *IngressDie

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 (*IngressDie) DieWith

func (d *IngressDie) DieWith(fns ...func(d *IngressDie)) *IngressDie

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

func (*IngressDie) GetObjectKind

func (d *IngressDie) GetObjectKind() schema.ObjectKind

func (*IngressDie) Kind

func (d *IngressDie) Kind(v string) *IngressDie

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 (*IngressDie) MarshalJSON

func (d *IngressDie) MarshalJSON() ([]byte, error)

func (*IngressDie) Metadata added in v0.13.0

func (d *IngressDie) Metadata(v apismetav1.ObjectMeta) *IngressDie

Metadata standard object's metadata.

func (*IngressDie) MetadataDie

func (d *IngressDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *IngressDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*IngressDie) Spec

spec is the desired state of the Ingress.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*IngressDie) SpecDie

func (d *IngressDie) SpecDie(fn func(d *IngressSpecDie)) *IngressDie

SpecDie stamps the resource's spec field with a mutable die.

func (*IngressDie) Status

status is the current state of the Ingress.

More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

func (*IngressDie) StatusDie

func (d *IngressDie) StatusDie(fn func(d *IngressStatusDie)) *IngressDie

StatusDie stamps the resource's status field with a mutable die.

func (*IngressDie) TypeMetadata added in v0.13.0

func (d *IngressDie) TypeMetadata(v apismetav1.TypeMeta) *IngressDie

TypeMetadata standard object's type metadata.

func (*IngressDie) TypeMetadataDie added in v0.13.0

func (d *IngressDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *IngressDie

TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.

func (*IngressDie) UnmarshalJSON

func (d *IngressDie) UnmarshalJSON(b []byte) error

type IngressLoadBalancerIngress

type IngressLoadBalancerIngress = networkingv1.IngressLoadBalancerIngress

+die +die:field:name=Ports,die=IngressPortStatusDie,listType=atomic

type IngressLoadBalancerIngressDie

type IngressLoadBalancerIngressDie struct {
	// contains filtered or unexported fields
}

func (*IngressLoadBalancerIngressDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressLoadBalancerIngressDie) DieDiff added in v0.13.0

func (d *IngressLoadBalancerIngressDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressLoadBalancerIngressDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressLoadBalancerIngressDie) DieFeedJSON

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressLoadBalancerIngressDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressLoadBalancerIngressDie) DieFeedRawExtension

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressLoadBalancerIngressDie) DieFeedYAML

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressLoadBalancerIngressDie) DieFeedYAMLFile

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressLoadBalancerIngressDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressLoadBalancerIngressDie) DiePatch added in v0.13.0

func (d *IngressLoadBalancerIngressDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressLoadBalancerIngressDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressLoadBalancerIngressDie) DieReleaseJSON

func (d *IngressLoadBalancerIngressDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressLoadBalancerIngressDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressLoadBalancerIngressDie) DieReleaseRawExtension

func (d *IngressLoadBalancerIngressDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressLoadBalancerIngressDie) DieReleaseYAML

func (d *IngressLoadBalancerIngressDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressLoadBalancerIngressDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressLoadBalancerIngressDie) DieSealFeed added in v0.13.0

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 (*IngressLoadBalancerIngressDie) DieSealFeedPtr added in v0.13.0

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 (*IngressLoadBalancerIngressDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*IngressLoadBalancerIngressDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressLoadBalancerIngressDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressLoadBalancerIngressDie) DieStampAt

func (d *IngressLoadBalancerIngressDie) DieStampAt(jp string, fn interface{}) *IngressLoadBalancerIngressDie

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 (*IngressLoadBalancerIngressDie) DieWith

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

func (*IngressLoadBalancerIngressDie) Hostname

hostname is set for load-balancer ingress points that are DNS based.

func (*IngressLoadBalancerIngressDie) IP

ip is set for load-balancer ingress points that are IP based.

func (*IngressLoadBalancerIngressDie) Ports

ports provides information about the ports exposed by this LoadBalancer.

func (*IngressLoadBalancerIngressDie) PortsDie

PortsDie replaces Ports by collecting the released value from each die passed.

ports provides information about the ports exposed by this LoadBalancer.

type IngressLoadBalancerStatus

type IngressLoadBalancerStatus = networkingv1.IngressLoadBalancerStatus

+die +die:field:name=Ingress,die=IngressLoadBalancerIngressDie,listType=atomic

type IngressLoadBalancerStatusDie

type IngressLoadBalancerStatusDie struct {
	// contains filtered or unexported fields
}

func (*IngressLoadBalancerStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressLoadBalancerStatusDie) DieDiff added in v0.13.0

func (d *IngressLoadBalancerStatusDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressLoadBalancerStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressLoadBalancerStatusDie) DieFeedJSON

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressLoadBalancerStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressLoadBalancerStatusDie) DieFeedRawExtension

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressLoadBalancerStatusDie) DieFeedYAML

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressLoadBalancerStatusDie) DieFeedYAMLFile

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressLoadBalancerStatusDie) DieImmutable

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressLoadBalancerStatusDie) DiePatch added in v0.13.0

func (d *IngressLoadBalancerStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressLoadBalancerStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressLoadBalancerStatusDie) DieReleaseJSON

func (d *IngressLoadBalancerStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressLoadBalancerStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressLoadBalancerStatusDie) DieReleaseRawExtension

func (d *IngressLoadBalancerStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressLoadBalancerStatusDie) DieReleaseYAML

func (d *IngressLoadBalancerStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressLoadBalancerStatusDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressLoadBalancerStatusDie) DieSealFeed added in v0.13.0

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 (*IngressLoadBalancerStatusDie) DieSealFeedPtr added in v0.13.0

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 (*IngressLoadBalancerStatusDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*IngressLoadBalancerStatusDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressLoadBalancerStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressLoadBalancerStatusDie) DieStampAt

func (d *IngressLoadBalancerStatusDie) DieStampAt(jp string, fn interface{}) *IngressLoadBalancerStatusDie

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 (*IngressLoadBalancerStatusDie) DieWith

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

func (*IngressLoadBalancerStatusDie) Ingress

ingress is a list containing ingress points for the load-balancer.

func (*IngressLoadBalancerStatusDie) IngressDie

IngressDie replaces Ingress by collecting the released value from each die passed.

ingress is a list containing ingress points for the load-balancer.

type IngressPortStatus

type IngressPortStatus = networkingv1.IngressPortStatus

+die

type IngressPortStatusDie

type IngressPortStatusDie struct {
	// contains filtered or unexported fields
}

func (*IngressPortStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressPortStatusDie) DieDiff added in v0.13.0

func (d *IngressPortStatusDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressPortStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressPortStatusDie) DieFeedJSON

func (d *IngressPortStatusDie) DieFeedJSON(j []byte) *IngressPortStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressPortStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressPortStatusDie) DieFeedRawExtension

func (d *IngressPortStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressPortStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressPortStatusDie) DieFeedYAML

func (d *IngressPortStatusDie) DieFeedYAML(y []byte) *IngressPortStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressPortStatusDie) DieFeedYAMLFile

func (d *IngressPortStatusDie) DieFeedYAMLFile(name string) *IngressPortStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressPortStatusDie) DieImmutable

func (d *IngressPortStatusDie) DieImmutable(immutable bool) *IngressPortStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressPortStatusDie) DiePatch added in v0.13.0

func (d *IngressPortStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressPortStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressPortStatusDie) DieReleaseJSON

func (d *IngressPortStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressPortStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressPortStatusDie) DieReleaseRawExtension

func (d *IngressPortStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressPortStatusDie) DieReleaseYAML

func (d *IngressPortStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressPortStatusDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressPortStatusDie) DieSealFeed added in v0.13.0

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 (*IngressPortStatusDie) DieSealFeedPtr added in v0.13.0

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 (*IngressPortStatusDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*IngressPortStatusDie) DieSealReleasePtr added in v0.13.0

func (d *IngressPortStatusDie) DieSealReleasePtr() *networkingv1.IngressPortStatus

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressPortStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressPortStatusDie) DieStampAt

func (d *IngressPortStatusDie) DieStampAt(jp string, fn interface{}) *IngressPortStatusDie

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 (*IngressPortStatusDie) DieWith

func (d *IngressPortStatusDie) DieWith(fns ...func(d *IngressPortStatusDie)) *IngressPortStatusDie

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

func (*IngressPortStatusDie) Error

error is to record the problem with the service port

The format of the error shall comply with the following rules:

- built-in error values shall be specified in this file and those shall use

CamelCase names

- cloud provider specific error values must have names that comply with the

format foo.example.com/CamelCase.

---

The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)

func (*IngressPortStatusDie) Port

port is the port number of the ingress port.

func (*IngressPortStatusDie) Protocol

protocol is the protocol of the ingress port.

The supported values are: "TCP", "UDP", "SCTP"

type IngressRuleDie

type IngressRuleDie struct {
	// contains filtered or unexported fields
}

func (*IngressRuleDie) DeepCopy

func (d *IngressRuleDie) DeepCopy() *IngressRuleDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressRuleDie) DieDiff added in v0.13.0

func (d *IngressRuleDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressRuleDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressRuleDie) DieFeedJSON

func (d *IngressRuleDie) DieFeedJSON(j []byte) *IngressRuleDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressRuleDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressRuleDie) DieFeedRawExtension

func (d *IngressRuleDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressRuleDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressRuleDie) DieFeedYAML

func (d *IngressRuleDie) DieFeedYAML(y []byte) *IngressRuleDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressRuleDie) DieFeedYAMLFile

func (d *IngressRuleDie) DieFeedYAMLFile(name string) *IngressRuleDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressRuleDie) DieImmutable

func (d *IngressRuleDie) DieImmutable(immutable bool) *IngressRuleDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressRuleDie) DiePatch added in v0.13.0

func (d *IngressRuleDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressRuleDie) DieRelease

func (d *IngressRuleDie) DieRelease() networkingv1.IngressRule

DieRelease returns the resource managed by the die.

func (*IngressRuleDie) DieReleaseJSON

func (d *IngressRuleDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressRuleDie) DieReleasePtr

func (d *IngressRuleDie) DieReleasePtr() *networkingv1.IngressRule

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressRuleDie) DieReleaseRawExtension

func (d *IngressRuleDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressRuleDie) DieReleaseYAML

func (d *IngressRuleDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressRuleDie) DieSeal added in v0.13.0

func (d *IngressRuleDie) DieSeal() *IngressRuleDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressRuleDie) DieSealFeed added in v0.13.0

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 (*IngressRuleDie) DieSealFeedPtr added in v0.13.0

func (d *IngressRuleDie) DieSealFeedPtr(r *networkingv1.IngressRule) *IngressRuleDie

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 (*IngressRuleDie) DieSealRelease added in v0.13.0

func (d *IngressRuleDie) DieSealRelease() networkingv1.IngressRule

DieSealRelease returns the sealed resource managed by the die.

func (*IngressRuleDie) DieSealReleasePtr added in v0.13.0

func (d *IngressRuleDie) DieSealReleasePtr() *networkingv1.IngressRule

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressRuleDie) DieStamp

func (d *IngressRuleDie) DieStamp(fn func(r *networkingv1.IngressRule)) *IngressRuleDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressRuleDie) DieStampAt

func (d *IngressRuleDie) DieStampAt(jp string, fn interface{}) *IngressRuleDie

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 (*IngressRuleDie) DieWith

func (d *IngressRuleDie) DieWith(fns ...func(d *IngressRuleDie)) *IngressRuleDie

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

func (*IngressRuleDie) HTTPDie

func (d *IngressRuleDie) HTTPDie(fn func(d *HTTPIngressRuleValueDie)) *IngressRuleDie

HTTPDie mutates HTTP as a die.

func (*IngressRuleDie) Host

func (d *IngressRuleDie) Host(v string) *IngressRuleDie

host is the fully qualified domain name of a network host, as defined by RFC 3986.

Note the following deviations from the "host" part of the

URI as defined in RFC 3986:

1. IPs are not allowed. Currently an IngressRuleValue can only apply to

the IP in the Spec of the parent Ingress.

2. The `:` delimiter is not respected because ports are not allowed.

Currently the port of an Ingress is implicitly :80 for http and

:443 for https.

Both these may change in the future.

Incoming requests are matched against the host before the

IngressRuleValue. If the host is unspecified, the Ingress routes all

traffic based on the specified IngressRuleValue.

host can be "precise" which is a domain name without the terminating dot of

a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name

prefixed with a single wildcard label (e.g. "*.foo.com").

The wildcard character '*' must appear by itself as the first DNS label and

matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").

Requests will be matched against the Host field in the following way:

1. If host is precise, the request matches this rule if the http host header is equal to Host.

2. If host is a wildcard, then the request matches this rule if the http host header

is to equal to the suffix (removing the first label) of the wildcard rule.

func (*IngressRuleDie) IngressRuleValue

IngressRuleValue represents a rule to route requests for this IngressRule.

If unspecified, the rule defaults to a http catch-all. Whether that sends

just traffic matching the host to the default backend or all traffic to the

default backend, is left to the controller fulfilling the Ingress. Http is

currently the only supported IngressRuleValue.

type IngressServiceBackendDie

type IngressServiceBackendDie struct {
	// contains filtered or unexported fields
}

func (*IngressServiceBackendDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressServiceBackendDie) DieDiff added in v0.13.0

func (d *IngressServiceBackendDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressServiceBackendDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressServiceBackendDie) DieFeedJSON

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressServiceBackendDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressServiceBackendDie) DieFeedRawExtension

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressServiceBackendDie) DieFeedYAML

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressServiceBackendDie) DieFeedYAMLFile

func (d *IngressServiceBackendDie) DieFeedYAMLFile(name string) *IngressServiceBackendDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressServiceBackendDie) DieImmutable

func (d *IngressServiceBackendDie) DieImmutable(immutable bool) *IngressServiceBackendDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressServiceBackendDie) DiePatch added in v0.13.0

func (d *IngressServiceBackendDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressServiceBackendDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressServiceBackendDie) DieReleaseJSON

func (d *IngressServiceBackendDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressServiceBackendDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressServiceBackendDie) DieReleaseRawExtension

func (d *IngressServiceBackendDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressServiceBackendDie) DieReleaseYAML

func (d *IngressServiceBackendDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressServiceBackendDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressServiceBackendDie) DieSealFeed added in v0.13.0

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 (*IngressServiceBackendDie) DieSealFeedPtr added in v0.13.0

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 (*IngressServiceBackendDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*IngressServiceBackendDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressServiceBackendDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressServiceBackendDie) DieStampAt

func (d *IngressServiceBackendDie) DieStampAt(jp string, fn interface{}) *IngressServiceBackendDie

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 (*IngressServiceBackendDie) DieWith

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

func (*IngressServiceBackendDie) Name

name is the referenced service. The service must exist in

the same namespace as the Ingress object.

func (*IngressServiceBackendDie) Port

port of the referenced service. A port name or port number

is required for a IngressServiceBackend.

func (*IngressServiceBackendDie) PortDie

PortDie mutates Port as a die.

port of the referenced service. A port name or port number

is required for a IngressServiceBackend.

type IngressSpecDie

type IngressSpecDie struct {
	// contains filtered or unexported fields
}

func (*IngressSpecDie) DeepCopy

func (d *IngressSpecDie) DeepCopy() *IngressSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressSpecDie) DefaultBackend

defaultBackend is the backend that should handle requests that don't

match any rule. If Rules are not specified, DefaultBackend must be specified.

If DefaultBackend is not set, the handling of requests that do not match any

of the rules will be up to the Ingress controller.

func (*IngressSpecDie) DefaultBackendDie

func (d *IngressSpecDie) DefaultBackendDie(fn func(d *IngressBackendDie)) *IngressSpecDie

DefaultBackendDie mutates DefaultBackend as a die.

defaultBackend is the backend that should handle requests that don't

match any rule. If Rules are not specified, DefaultBackend must be specified.

If DefaultBackend is not set, the handling of requests that do not match any

of the rules will be up to the Ingress controller.

func (*IngressSpecDie) DieDiff added in v0.13.0

func (d *IngressSpecDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressSpecDie) DieFeedJSON

func (d *IngressSpecDie) DieFeedJSON(j []byte) *IngressSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressSpecDie) DieFeedRawExtension

func (d *IngressSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressSpecDie) DieFeedYAML

func (d *IngressSpecDie) DieFeedYAML(y []byte) *IngressSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressSpecDie) DieFeedYAMLFile

func (d *IngressSpecDie) DieFeedYAMLFile(name string) *IngressSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressSpecDie) DieImmutable

func (d *IngressSpecDie) DieImmutable(immutable bool) *IngressSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressSpecDie) DiePatch added in v0.13.0

func (d *IngressSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressSpecDie) DieRelease

func (d *IngressSpecDie) DieRelease() networkingv1.IngressSpec

DieRelease returns the resource managed by the die.

func (*IngressSpecDie) DieReleaseJSON

func (d *IngressSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressSpecDie) DieReleasePtr

func (d *IngressSpecDie) DieReleasePtr() *networkingv1.IngressSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressSpecDie) DieReleaseRawExtension

func (d *IngressSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressSpecDie) DieReleaseYAML

func (d *IngressSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressSpecDie) DieSeal added in v0.13.0

func (d *IngressSpecDie) DieSeal() *IngressSpecDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressSpecDie) DieSealFeed added in v0.13.0

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 (*IngressSpecDie) DieSealFeedPtr added in v0.13.0

func (d *IngressSpecDie) DieSealFeedPtr(r *networkingv1.IngressSpec) *IngressSpecDie

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 (*IngressSpecDie) DieSealRelease added in v0.13.0

func (d *IngressSpecDie) DieSealRelease() networkingv1.IngressSpec

DieSealRelease returns the sealed resource managed by the die.

func (*IngressSpecDie) DieSealReleasePtr added in v0.13.0

func (d *IngressSpecDie) DieSealReleasePtr() *networkingv1.IngressSpec

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressSpecDie) DieStamp

func (d *IngressSpecDie) DieStamp(fn func(r *networkingv1.IngressSpec)) *IngressSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressSpecDie) DieStampAt

func (d *IngressSpecDie) DieStampAt(jp string, fn interface{}) *IngressSpecDie

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 (*IngressSpecDie) DieWith

func (d *IngressSpecDie) DieWith(fns ...func(d *IngressSpecDie)) *IngressSpecDie

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

func (*IngressSpecDie) IngressClassName

func (d *IngressSpecDie) IngressClassName(v *string) *IngressSpecDie

ingressClassName is the name of an IngressClass cluster resource. Ingress

controller implementations use this field to know whether they should be

serving this Ingress resource, by a transitive connection

(controller -> IngressClass -> Ingress resource). Although the

`kubernetes.io/ingress.class` annotation (simple constant name) was never

formally defined, it was widely supported by Ingress controllers to create

a direct binding between Ingress controller and Ingress resources. Newly

created Ingress resources should prefer using the field. However, even

though the annotation is officially deprecated, for backwards compatibility

reasons, ingress controllers should still honor that annotation if present.

func (*IngressSpecDie) Rules

rules is a list of host rules used to configure the Ingress. If unspecified,

or no rule matches, all traffic is sent to the default backend.

func (*IngressSpecDie) RulesDie

func (d *IngressSpecDie) RulesDie(v ...*IngressRuleDie) *IngressSpecDie

RulesDie replaces Rules by collecting the released value from each die passed.

rules is a list of host rules used to configure the Ingress. If unspecified,

or no rule matches, all traffic is sent to the default backend.

func (*IngressSpecDie) TLS

tls represents the TLS configuration. Currently the Ingress only supports a

single TLS port, 443. If multiple members of this list specify different hosts,

they will be multiplexed on the same port according to the hostname specified

through the SNI TLS extension, if the ingress controller fulfilling the

ingress supports SNI.

func (*IngressSpecDie) TLSDie

func (d *IngressSpecDie) TLSDie(v ...*IngressTLSDie) *IngressSpecDie

TLSDie replaces TLS by collecting the released value from each die passed.

tls represents the TLS configuration. Currently the Ingress only supports a

single TLS port, 443. If multiple members of this list specify different hosts,

they will be multiplexed on the same port according to the hostname specified

through the SNI TLS extension, if the ingress controller fulfilling the

ingress supports SNI.

type IngressStatus

type IngressStatus = networkingv1.IngressStatus

+die +die:field:name=LoadBalancer,die=IngressLoadBalancerStatusDie

type IngressStatusDie

type IngressStatusDie struct {
	// contains filtered or unexported fields
}

func (*IngressStatusDie) DeepCopy

func (d *IngressStatusDie) DeepCopy() *IngressStatusDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressStatusDie) DieDiff added in v0.13.0

func (d *IngressStatusDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressStatusDie) DieFeedJSON

func (d *IngressStatusDie) DieFeedJSON(j []byte) *IngressStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressStatusDie) DieFeedRawExtension

func (d *IngressStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressStatusDie) DieFeedYAML

func (d *IngressStatusDie) DieFeedYAML(y []byte) *IngressStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressStatusDie) DieFeedYAMLFile

func (d *IngressStatusDie) DieFeedYAMLFile(name string) *IngressStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressStatusDie) DieImmutable

func (d *IngressStatusDie) DieImmutable(immutable bool) *IngressStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressStatusDie) DiePatch added in v0.13.0

func (d *IngressStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*IngressStatusDie) DieReleaseJSON

func (d *IngressStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressStatusDie) DieReleasePtr

func (d *IngressStatusDie) DieReleasePtr() *networkingv1.IngressStatus

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressStatusDie) DieReleaseRawExtension

func (d *IngressStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressStatusDie) DieReleaseYAML

func (d *IngressStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressStatusDie) DieSeal added in v0.13.0

func (d *IngressStatusDie) DieSeal() *IngressStatusDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressStatusDie) DieSealFeed added in v0.13.0

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 (*IngressStatusDie) DieSealFeedPtr added in v0.13.0

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 (*IngressStatusDie) DieSealRelease added in v0.13.0

func (d *IngressStatusDie) DieSealRelease() networkingv1.IngressStatus

DieSealRelease returns the sealed resource managed by the die.

func (*IngressStatusDie) DieSealReleasePtr added in v0.13.0

func (d *IngressStatusDie) DieSealReleasePtr() *networkingv1.IngressStatus

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressStatusDie) DieStamp

func (d *IngressStatusDie) DieStamp(fn func(r *networkingv1.IngressStatus)) *IngressStatusDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressStatusDie) DieStampAt

func (d *IngressStatusDie) DieStampAt(jp string, fn interface{}) *IngressStatusDie

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 (*IngressStatusDie) DieWith

func (d *IngressStatusDie) DieWith(fns ...func(d *IngressStatusDie)) *IngressStatusDie

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

func (*IngressStatusDie) LoadBalancer

loadBalancer contains the current status of the load-balancer.

func (*IngressStatusDie) LoadBalancerDie

func (d *IngressStatusDie) LoadBalancerDie(fn func(d *IngressLoadBalancerStatusDie)) *IngressStatusDie

LoadBalancerDie mutates LoadBalancer as a die.

loadBalancer contains the current status of the load-balancer.

type IngressTLSDie

type IngressTLSDie struct {
	// contains filtered or unexported fields
}

func (*IngressTLSDie) DeepCopy

func (d *IngressTLSDie) DeepCopy() *IngressTLSDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*IngressTLSDie) DieDiff added in v0.13.0

func (d *IngressTLSDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*IngressTLSDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*IngressTLSDie) DieFeedJSON

func (d *IngressTLSDie) DieFeedJSON(j []byte) *IngressTLSDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*IngressTLSDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*IngressTLSDie) DieFeedRawExtension

func (d *IngressTLSDie) DieFeedRawExtension(raw runtime.RawExtension) *IngressTLSDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressTLSDie) DieFeedYAML

func (d *IngressTLSDie) DieFeedYAML(y []byte) *IngressTLSDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*IngressTLSDie) DieFeedYAMLFile

func (d *IngressTLSDie) DieFeedYAMLFile(name string) *IngressTLSDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*IngressTLSDie) DieImmutable

func (d *IngressTLSDie) DieImmutable(immutable bool) *IngressTLSDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*IngressTLSDie) DiePatch added in v0.13.0

func (d *IngressTLSDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*IngressTLSDie) DieRelease

func (d *IngressTLSDie) DieRelease() networkingv1.IngressTLS

DieRelease returns the resource managed by the die.

func (*IngressTLSDie) DieReleaseJSON

func (d *IngressTLSDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*IngressTLSDie) DieReleasePtr

func (d *IngressTLSDie) DieReleasePtr() *networkingv1.IngressTLS

DieReleasePtr returns a pointer to the resource managed by the die.

func (*IngressTLSDie) DieReleaseRawExtension

func (d *IngressTLSDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*IngressTLSDie) DieReleaseYAML

func (d *IngressTLSDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*IngressTLSDie) DieSeal added in v0.13.0

func (d *IngressTLSDie) DieSeal() *IngressTLSDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*IngressTLSDie) DieSealFeed added in v0.13.0

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 (*IngressTLSDie) DieSealFeedPtr added in v0.13.0

func (d *IngressTLSDie) DieSealFeedPtr(r *networkingv1.IngressTLS) *IngressTLSDie

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 (*IngressTLSDie) DieSealRelease added in v0.13.0

func (d *IngressTLSDie) DieSealRelease() networkingv1.IngressTLS

DieSealRelease returns the sealed resource managed by the die.

func (*IngressTLSDie) DieSealReleasePtr added in v0.13.0

func (d *IngressTLSDie) DieSealReleasePtr() *networkingv1.IngressTLS

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*IngressTLSDie) DieStamp

func (d *IngressTLSDie) DieStamp(fn func(r *networkingv1.IngressTLS)) *IngressTLSDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*IngressTLSDie) DieStampAt

func (d *IngressTLSDie) DieStampAt(jp string, fn interface{}) *IngressTLSDie

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 (*IngressTLSDie) DieWith

func (d *IngressTLSDie) DieWith(fns ...func(d *IngressTLSDie)) *IngressTLSDie

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

func (*IngressTLSDie) Hosts

func (d *IngressTLSDie) Hosts(v ...string) *IngressTLSDie

hosts is a list of hosts included in the TLS certificate. The values in

this list must match the name/s used in the tlsSecret. Defaults to the

wildcard host setting for the loadbalancer controller fulfilling this

Ingress, if left unspecified.

func (*IngressTLSDie) SecretName

func (d *IngressTLSDie) SecretName(v string) *IngressTLSDie

secretName is the name of the secret used to terminate TLS traffic on

port 443. Field is left optional to allow TLS routing based on SNI

hostname alone. If the SNI host in a listener conflicts with the "Host"

header field used by an IngressRule, the SNI host is used for termination

and value of the "Host" header is used for routing.

type NetworkPolicyDie

type NetworkPolicyDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*NetworkPolicyDie) APIVersion

func (d *NetworkPolicyDie) APIVersion(v string) *NetworkPolicyDie

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 (*NetworkPolicyDie) DeepCopy

func (d *NetworkPolicyDie) DeepCopy() *NetworkPolicyDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*NetworkPolicyDie) DeepCopyObject

func (d *NetworkPolicyDie) DeepCopyObject() runtime.Object

func (*NetworkPolicyDie) DieDefaultTypeMetadata added in v0.13.0

func (d *NetworkPolicyDie) DieDefaultTypeMetadata() *NetworkPolicyDie

DieDefaultTypeMetadata sets the APIVersion and Kind to "networking.k8s.io/v1" and "NetworkPolicy" respectively.

func (*NetworkPolicyDie) DieDiff added in v0.13.0

func (d *NetworkPolicyDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*NetworkPolicyDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*NetworkPolicyDie) DieFeedJSON

func (d *NetworkPolicyDie) DieFeedJSON(j []byte) *NetworkPolicyDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*NetworkPolicyDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*NetworkPolicyDie) DieFeedRawExtension

func (d *NetworkPolicyDie) DieFeedRawExtension(raw runtime.RawExtension) *NetworkPolicyDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyDie) DieFeedYAML

func (d *NetworkPolicyDie) DieFeedYAML(y []byte) *NetworkPolicyDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*NetworkPolicyDie) DieFeedYAMLFile

func (d *NetworkPolicyDie) DieFeedYAMLFile(name string) *NetworkPolicyDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*NetworkPolicyDie) DieImmutable

func (d *NetworkPolicyDie) DieImmutable(immutable bool) *NetworkPolicyDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*NetworkPolicyDie) DiePatch added in v0.13.0

func (d *NetworkPolicyDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*NetworkPolicyDie) DieRelease

DieRelease returns the resource managed by the die.

func (*NetworkPolicyDie) DieReleaseJSON

func (d *NetworkPolicyDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*NetworkPolicyDie) DieReleasePtr

func (d *NetworkPolicyDie) DieReleasePtr() *networkingv1.NetworkPolicy

DieReleasePtr returns a pointer to the resource managed by the die.

func (*NetworkPolicyDie) DieReleaseRawExtension

func (d *NetworkPolicyDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyDie) DieReleaseUnstructured

func (d *NetworkPolicyDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*NetworkPolicyDie) DieReleaseYAML

func (d *NetworkPolicyDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*NetworkPolicyDie) DieSeal added in v0.13.0

func (d *NetworkPolicyDie) DieSeal() *NetworkPolicyDie

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*NetworkPolicyDie) DieSealFeed added in v0.13.0

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 (*NetworkPolicyDie) DieSealFeedPtr added in v0.13.0

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 (*NetworkPolicyDie) DieSealRelease added in v0.13.0

func (d *NetworkPolicyDie) DieSealRelease() networkingv1.NetworkPolicy

DieSealRelease returns the sealed resource managed by the die.

func (*NetworkPolicyDie) DieSealReleasePtr added in v0.13.0

func (d *NetworkPolicyDie) DieSealReleasePtr() *networkingv1.NetworkPolicy

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*NetworkPolicyDie) DieStamp

func (d *NetworkPolicyDie) DieStamp(fn func(r *networkingv1.NetworkPolicy)) *NetworkPolicyDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*NetworkPolicyDie) DieStampAt

func (d *NetworkPolicyDie) DieStampAt(jp string, fn interface{}) *NetworkPolicyDie

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 (*NetworkPolicyDie) DieWith

func (d *NetworkPolicyDie) DieWith(fns ...func(d *NetworkPolicyDie)) *NetworkPolicyDie

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

func (*NetworkPolicyDie) GetObjectKind

func (d *NetworkPolicyDie) GetObjectKind() schema.ObjectKind

func (*NetworkPolicyDie) 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 (*NetworkPolicyDie) MarshalJSON

func (d *NetworkPolicyDie) MarshalJSON() ([]byte, error)

func (*NetworkPolicyDie) Metadata added in v0.13.0

Metadata standard object's metadata.

func (*NetworkPolicyDie) MetadataDie

func (d *NetworkPolicyDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *NetworkPolicyDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*NetworkPolicyDie) Spec

spec represents the specification of the desired behavior for this NetworkPolicy.

func (*NetworkPolicyDie) SpecDie

func (d *NetworkPolicyDie) SpecDie(fn func(d *NetworkPolicySpecDie)) *NetworkPolicyDie

SpecDie stamps the resource's spec field with a mutable die.

func (*NetworkPolicyDie) TypeMetadata added in v0.13.0

TypeMetadata standard object's type metadata.

func (*NetworkPolicyDie) TypeMetadataDie added in v0.13.0

func (d *NetworkPolicyDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *NetworkPolicyDie

TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.

func (*NetworkPolicyDie) UnmarshalJSON

func (d *NetworkPolicyDie) UnmarshalJSON(b []byte) error

type NetworkPolicyEgressRuleDie

type NetworkPolicyEgressRuleDie struct {
	// contains filtered or unexported fields
}

func (*NetworkPolicyEgressRuleDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*NetworkPolicyEgressRuleDie) DieDiff added in v0.13.0

func (d *NetworkPolicyEgressRuleDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*NetworkPolicyEgressRuleDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*NetworkPolicyEgressRuleDie) DieFeedJSON

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*NetworkPolicyEgressRuleDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*NetworkPolicyEgressRuleDie) DieFeedRawExtension

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyEgressRuleDie) DieFeedYAML

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*NetworkPolicyEgressRuleDie) DieFeedYAMLFile

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*NetworkPolicyEgressRuleDie) DieImmutable

func (d *NetworkPolicyEgressRuleDie) DieImmutable(immutable bool) *NetworkPolicyEgressRuleDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*NetworkPolicyEgressRuleDie) DiePatch added in v0.13.0

func (d *NetworkPolicyEgressRuleDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*NetworkPolicyEgressRuleDie) DieRelease

DieRelease returns the resource managed by the die.

func (*NetworkPolicyEgressRuleDie) DieReleaseJSON

func (d *NetworkPolicyEgressRuleDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*NetworkPolicyEgressRuleDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*NetworkPolicyEgressRuleDie) DieReleaseRawExtension

func (d *NetworkPolicyEgressRuleDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyEgressRuleDie) DieReleaseYAML

func (d *NetworkPolicyEgressRuleDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*NetworkPolicyEgressRuleDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*NetworkPolicyEgressRuleDie) DieSealFeed added in v0.13.0

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 (*NetworkPolicyEgressRuleDie) DieSealFeedPtr added in v0.13.0

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 (*NetworkPolicyEgressRuleDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*NetworkPolicyEgressRuleDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*NetworkPolicyEgressRuleDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*NetworkPolicyEgressRuleDie) DieStampAt

func (d *NetworkPolicyEgressRuleDie) DieStampAt(jp string, fn interface{}) *NetworkPolicyEgressRuleDie

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 (*NetworkPolicyEgressRuleDie) DieWith

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

func (*NetworkPolicyEgressRuleDie) Ports

ports is a list of destination ports for outgoing traffic.

Each item in this list is combined using a logical OR. If this field is

empty or missing, this rule matches all ports (traffic not restricted by port).

If this field is present and contains at least one item, then this rule allows

traffic only if the traffic matches at least one port in the list.

func (*NetworkPolicyEgressRuleDie) PortsDie

PortsDie replaces Ports by collecting the released value from each die passed.

ports is a list of destination ports for outgoing traffic.

Each item in this list is combined using a logical OR. If this field is

empty or missing, this rule matches all ports (traffic not restricted by port).

If this field is present and contains at least one item, then this rule allows

traffic only if the traffic matches at least one port in the list.

func (*NetworkPolicyEgressRuleDie) To

to is a list of destinations for outgoing traffic of pods selected for this rule.

Items in this list are combined using a logical OR operation. If this field is

empty or missing, this rule matches all destinations (traffic not restricted by

destination). If this field is present and contains at least one item, this rule

allows traffic only if the traffic matches at least one item in the to list.

func (*NetworkPolicyEgressRuleDie) ToDie

ToDie replaces To by collecting the released value from each die passed.

to is a list of destinations for outgoing traffic of pods selected for this rule.

Items in this list are combined using a logical OR operation. If this field is

empty or missing, this rule matches all destinations (traffic not restricted by

destination). If this field is present and contains at least one item, this rule

allows traffic only if the traffic matches at least one item in the to list.

type NetworkPolicyIngressRuleDie

type NetworkPolicyIngressRuleDie struct {
	// contains filtered or unexported fields
}

func (*NetworkPolicyIngressRuleDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*NetworkPolicyIngressRuleDie) DieDiff added in v0.13.0

func (d *NetworkPolicyIngressRuleDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*NetworkPolicyIngressRuleDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*NetworkPolicyIngressRuleDie) DieFeedJSON

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*NetworkPolicyIngressRuleDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*NetworkPolicyIngressRuleDie) DieFeedRawExtension

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyIngressRuleDie) DieFeedYAML

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*NetworkPolicyIngressRuleDie) DieFeedYAMLFile

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*NetworkPolicyIngressRuleDie) DieImmutable

func (d *NetworkPolicyIngressRuleDie) DieImmutable(immutable bool) *NetworkPolicyIngressRuleDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*NetworkPolicyIngressRuleDie) DiePatch added in v0.13.0

func (d *NetworkPolicyIngressRuleDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*NetworkPolicyIngressRuleDie) DieRelease

DieRelease returns the resource managed by the die.

func (*NetworkPolicyIngressRuleDie) DieReleaseJSON

func (d *NetworkPolicyIngressRuleDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*NetworkPolicyIngressRuleDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*NetworkPolicyIngressRuleDie) DieReleaseRawExtension

func (d *NetworkPolicyIngressRuleDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyIngressRuleDie) DieReleaseYAML

func (d *NetworkPolicyIngressRuleDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*NetworkPolicyIngressRuleDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*NetworkPolicyIngressRuleDie) DieSealFeed added in v0.13.0

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 (*NetworkPolicyIngressRuleDie) DieSealFeedPtr added in v0.13.0

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 (*NetworkPolicyIngressRuleDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*NetworkPolicyIngressRuleDie) DieSealReleasePtr added in v0.13.0

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*NetworkPolicyIngressRuleDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*NetworkPolicyIngressRuleDie) DieStampAt

func (d *NetworkPolicyIngressRuleDie) DieStampAt(jp string, fn interface{}) *NetworkPolicyIngressRuleDie

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 (*NetworkPolicyIngressRuleDie) DieWith

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

func (*NetworkPolicyIngressRuleDie) From

from is a list of sources which should be able to access the pods selected for this rule.

Items in this list are combined using a logical OR operation. If this field is

empty or missing, this rule matches all sources (traffic not restricted by

source). If this field is present and contains at least one item, this rule

allows traffic only if the traffic matches at least one item in the from list.

func (*NetworkPolicyIngressRuleDie) FromDie

FromDie replaces From by collecting the released value from each die passed.

from is a list of sources which should be able to access the pods selected for this rule.

Items in this list are combined using a logical OR operation. If this field is

empty or missing, this rule matches all sources (traffic not restricted by

source). If this field is present and contains at least one item, this rule

allows traffic only if the traffic matches at least one item in the from list.

func (*NetworkPolicyIngressRuleDie) Ports

ports is a list of ports which should be made accessible on the pods selected for

this rule. Each item in this list is combined using a logical OR. If this field is

empty or missing, this rule matches all ports (traffic not restricted by port).

If this field is present and contains at least one item, then this rule allows

traffic only if the traffic matches at least one port in the list.

func (*NetworkPolicyIngressRuleDie) PortsDie

PortsDie replaces Ports by collecting the released value from each die passed.

ports is a list of ports which should be made accessible on the pods selected for

this rule. Each item in this list is combined using a logical OR. If this field is

empty or missing, this rule matches all ports (traffic not restricted by port).

If this field is present and contains at least one item, then this rule allows

traffic only if the traffic matches at least one port in the list.

type NetworkPolicyPeerDie

type NetworkPolicyPeerDie struct {
	// contains filtered or unexported fields
}

func (*NetworkPolicyPeerDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*NetworkPolicyPeerDie) DieDiff added in v0.13.0

func (d *NetworkPolicyPeerDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*NetworkPolicyPeerDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*NetworkPolicyPeerDie) DieFeedJSON

func (d *NetworkPolicyPeerDie) DieFeedJSON(j []byte) *NetworkPolicyPeerDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*NetworkPolicyPeerDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*NetworkPolicyPeerDie) DieFeedRawExtension

func (d *NetworkPolicyPeerDie) DieFeedRawExtension(raw runtime.RawExtension) *NetworkPolicyPeerDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyPeerDie) DieFeedYAML

func (d *NetworkPolicyPeerDie) DieFeedYAML(y []byte) *NetworkPolicyPeerDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*NetworkPolicyPeerDie) DieFeedYAMLFile

func (d *NetworkPolicyPeerDie) DieFeedYAMLFile(name string) *NetworkPolicyPeerDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*NetworkPolicyPeerDie) DieImmutable

func (d *NetworkPolicyPeerDie) DieImmutable(immutable bool) *NetworkPolicyPeerDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*NetworkPolicyPeerDie) DiePatch added in v0.13.0

func (d *NetworkPolicyPeerDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*NetworkPolicyPeerDie) DieRelease

DieRelease returns the resource managed by the die.

func (*NetworkPolicyPeerDie) DieReleaseJSON

func (d *NetworkPolicyPeerDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*NetworkPolicyPeerDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*NetworkPolicyPeerDie) DieReleaseRawExtension

func (d *NetworkPolicyPeerDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyPeerDie) DieReleaseYAML

func (d *NetworkPolicyPeerDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*NetworkPolicyPeerDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*NetworkPolicyPeerDie) DieSealFeed added in v0.13.0

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 (*NetworkPolicyPeerDie) DieSealFeedPtr added in v0.13.0

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 (*NetworkPolicyPeerDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*NetworkPolicyPeerDie) DieSealReleasePtr added in v0.13.0

func (d *NetworkPolicyPeerDie) DieSealReleasePtr() *networkingv1.NetworkPolicyPeer

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*NetworkPolicyPeerDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*NetworkPolicyPeerDie) DieStampAt

func (d *NetworkPolicyPeerDie) DieStampAt(jp string, fn interface{}) *NetworkPolicyPeerDie

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 (*NetworkPolicyPeerDie) DieWith

func (d *NetworkPolicyPeerDie) DieWith(fns ...func(d *NetworkPolicyPeerDie)) *NetworkPolicyPeerDie

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

func (*NetworkPolicyPeerDie) IPBlock

ipBlock defines policy on a particular IPBlock. If this field is set then

neither of the other fields can be.

func (*NetworkPolicyPeerDie) IPBlockDie

func (d *NetworkPolicyPeerDie) IPBlockDie(fn func(d *IPBlockDie)) *NetworkPolicyPeerDie

IPBlockDie mutates IPBlock as a die.

ipBlock defines policy on a particular IPBlock. If this field is set then

neither of the other fields can be.

func (*NetworkPolicyPeerDie) NamespaceSelector

namespaceSelector selects namespaces using cluster-scoped labels. This field follows

standard label selector semantics; if present but empty, it selects all namespaces.

If podSelector is also set, then the NetworkPolicyPeer as a whole selects

the pods matching podSelector in the namespaces selected by namespaceSelector.

Otherwise it selects all pods in the namespaces selected by namespaceSelector.

func (*NetworkPolicyPeerDie) NamespaceSelectorDie

func (d *NetworkPolicyPeerDie) NamespaceSelectorDie(fn func(d *metav1.LabelSelectorDie)) *NetworkPolicyPeerDie

NamespaceSelectorDie mutates NamespaceSelector as a die.

namespaceSelector selects namespaces using cluster-scoped labels. This field follows

standard label selector semantics; if present but empty, it selects all namespaces.

If podSelector is also set, then the NetworkPolicyPeer as a whole selects

the pods matching podSelector in the namespaces selected by namespaceSelector.

Otherwise it selects all pods in the namespaces selected by namespaceSelector.

func (*NetworkPolicyPeerDie) PodSelector

podSelector is a label selector which selects pods. This field follows standard label

selector semantics; if present but empty, it selects all pods.

If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects

the pods matching podSelector in the Namespaces selected by NamespaceSelector.

Otherwise it selects the pods matching podSelector in the policy's own namespace.

func (*NetworkPolicyPeerDie) PodSelectorDie

func (d *NetworkPolicyPeerDie) PodSelectorDie(fn func(d *metav1.LabelSelectorDie)) *NetworkPolicyPeerDie

PodSelectorDie mutates PodSelector as a die.

podSelector is a label selector which selects pods. This field follows standard label

selector semantics; if present but empty, it selects all pods.

If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects

the pods matching podSelector in the Namespaces selected by NamespaceSelector.

Otherwise it selects the pods matching podSelector in the policy's own namespace.

type NetworkPolicyPortDie

type NetworkPolicyPortDie struct {
	// contains filtered or unexported fields
}

func (*NetworkPolicyPortDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*NetworkPolicyPortDie) DieDiff added in v0.13.0

func (d *NetworkPolicyPortDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*NetworkPolicyPortDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*NetworkPolicyPortDie) DieFeedJSON

func (d *NetworkPolicyPortDie) DieFeedJSON(j []byte) *NetworkPolicyPortDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*NetworkPolicyPortDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*NetworkPolicyPortDie) DieFeedRawExtension

func (d *NetworkPolicyPortDie) DieFeedRawExtension(raw runtime.RawExtension) *NetworkPolicyPortDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyPortDie) DieFeedYAML

func (d *NetworkPolicyPortDie) DieFeedYAML(y []byte) *NetworkPolicyPortDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*NetworkPolicyPortDie) DieFeedYAMLFile

func (d *NetworkPolicyPortDie) DieFeedYAMLFile(name string) *NetworkPolicyPortDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*NetworkPolicyPortDie) DieImmutable

func (d *NetworkPolicyPortDie) DieImmutable(immutable bool) *NetworkPolicyPortDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*NetworkPolicyPortDie) DiePatch added in v0.13.0

func (d *NetworkPolicyPortDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*NetworkPolicyPortDie) DieRelease

DieRelease returns the resource managed by the die.

func (*NetworkPolicyPortDie) DieReleaseJSON

func (d *NetworkPolicyPortDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*NetworkPolicyPortDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*NetworkPolicyPortDie) DieReleaseRawExtension

func (d *NetworkPolicyPortDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicyPortDie) DieReleaseYAML

func (d *NetworkPolicyPortDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*NetworkPolicyPortDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*NetworkPolicyPortDie) DieSealFeed added in v0.13.0

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 (*NetworkPolicyPortDie) DieSealFeedPtr added in v0.13.0

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 (*NetworkPolicyPortDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*NetworkPolicyPortDie) DieSealReleasePtr added in v0.13.0

func (d *NetworkPolicyPortDie) DieSealReleasePtr() *networkingv1.NetworkPolicyPort

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*NetworkPolicyPortDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*NetworkPolicyPortDie) DieStampAt

func (d *NetworkPolicyPortDie) DieStampAt(jp string, fn interface{}) *NetworkPolicyPortDie

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 (*NetworkPolicyPortDie) DieWith

func (d *NetworkPolicyPortDie) DieWith(fns ...func(d *NetworkPolicyPortDie)) *NetworkPolicyPortDie

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

func (*NetworkPolicyPortDie) EndPort

endPort indicates that the range of ports from port to endPort if set, inclusive,

should be allowed by the policy. This field cannot be defined if the port field

is not defined or if the port field is defined as a named (string) port.

The endPort must be equal or greater than port.

func (*NetworkPolicyPortDie) Port

port represents the port on the given protocol. This can either be a numerical or named

port on a pod. If this field is not provided, this matches all port names and

numbers.

If present, only traffic on the specified protocol AND port will be matched.

func (*NetworkPolicyPortDie) PortInt

PortInt sets Port with the int value.

port represents the port on the given protocol. This can either be a numerical or named

port on a pod. If this field is not provided, this matches all port names and

numbers.

If present, only traffic on the specified protocol AND port will be matched.

func (*NetworkPolicyPortDie) PortString

PortString sets Port with the string value.

port represents the port on the given protocol. This can either be a numerical or named

port on a pod. If this field is not provided, this matches all port names and

numbers.

If present, only traffic on the specified protocol AND port will be matched.

func (*NetworkPolicyPortDie) Protocol

protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.

If not specified, this field defaults to TCP.

type NetworkPolicySpecDie

type NetworkPolicySpecDie struct {
	// contains filtered or unexported fields
}

func (*NetworkPolicySpecDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*NetworkPolicySpecDie) DieDiff added in v0.13.0

func (d *NetworkPolicySpecDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*NetworkPolicySpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*NetworkPolicySpecDie) DieFeedJSON

func (d *NetworkPolicySpecDie) DieFeedJSON(j []byte) *NetworkPolicySpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*NetworkPolicySpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*NetworkPolicySpecDie) DieFeedRawExtension

func (d *NetworkPolicySpecDie) DieFeedRawExtension(raw runtime.RawExtension) *NetworkPolicySpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicySpecDie) DieFeedYAML

func (d *NetworkPolicySpecDie) DieFeedYAML(y []byte) *NetworkPolicySpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*NetworkPolicySpecDie) DieFeedYAMLFile

func (d *NetworkPolicySpecDie) DieFeedYAMLFile(name string) *NetworkPolicySpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*NetworkPolicySpecDie) DieImmutable

func (d *NetworkPolicySpecDie) DieImmutable(immutable bool) *NetworkPolicySpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*NetworkPolicySpecDie) DiePatch added in v0.13.0

func (d *NetworkPolicySpecDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*NetworkPolicySpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*NetworkPolicySpecDie) DieReleaseJSON

func (d *NetworkPolicySpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*NetworkPolicySpecDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*NetworkPolicySpecDie) DieReleaseRawExtension

func (d *NetworkPolicySpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*NetworkPolicySpecDie) DieReleaseYAML

func (d *NetworkPolicySpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*NetworkPolicySpecDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*NetworkPolicySpecDie) DieSealFeed added in v0.13.0

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 (*NetworkPolicySpecDie) DieSealFeedPtr added in v0.13.0

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 (*NetworkPolicySpecDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*NetworkPolicySpecDie) DieSealReleasePtr added in v0.13.0

func (d *NetworkPolicySpecDie) DieSealReleasePtr() *networkingv1.NetworkPolicySpec

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*NetworkPolicySpecDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*NetworkPolicySpecDie) DieStampAt

func (d *NetworkPolicySpecDie) DieStampAt(jp string, fn interface{}) *NetworkPolicySpecDie

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 (*NetworkPolicySpecDie) DieWith

func (d *NetworkPolicySpecDie) DieWith(fns ...func(d *NetworkPolicySpecDie)) *NetworkPolicySpecDie

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

func (*NetworkPolicySpecDie) Egress

egress is a list of egress rules to be applied to the selected pods. Outgoing traffic

is allowed if there are no NetworkPolicies selecting the pod (and cluster policy

otherwise allows the traffic), OR if the traffic matches at least one egress rule

across all of the NetworkPolicy objects whose podSelector matches the pod. If

this field is empty then this NetworkPolicy limits all outgoing traffic (and serves

solely to ensure that the pods it selects are isolated by default).

This field is beta-level in 1.8

func (*NetworkPolicySpecDie) EgressDie

EgressDie replaces Egress by collecting the released value from each die passed.

egress is a list of egress rules to be applied to the selected pods. Outgoing traffic

is allowed if there are no NetworkPolicies selecting the pod (and cluster policy

otherwise allows the traffic), OR if the traffic matches at least one egress rule

across all of the NetworkPolicy objects whose podSelector matches the pod. If

this field is empty then this NetworkPolicy limits all outgoing traffic (and serves

solely to ensure that the pods it selects are isolated by default).

This field is beta-level in 1.8

func (*NetworkPolicySpecDie) Ingress

ingress is a list of ingress rules to be applied to the selected pods.

Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod

(and cluster policy otherwise allows the traffic), OR if the traffic source is

the pod's local node, OR if the traffic matches at least one ingress rule

across all of the NetworkPolicy objects whose podSelector matches the pod. If

this field is empty then this NetworkPolicy does not allow any traffic (and serves

solely to ensure that the pods it selects are isolated by default)

func (*NetworkPolicySpecDie) IngressDie

IngressDie replaces Ingress by collecting the released value from each die passed.

ingress is a list of ingress rules to be applied to the selected pods.

Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod

(and cluster policy otherwise allows the traffic), OR if the traffic source is

the pod's local node, OR if the traffic matches at least one ingress rule

across all of the NetworkPolicy objects whose podSelector matches the pod. If

this field is empty then this NetworkPolicy does not allow any traffic (and serves

solely to ensure that the pods it selects are isolated by default)

func (*NetworkPolicySpecDie) PodSelector

podSelector selects the pods to which this NetworkPolicy object applies.

The array of ingress rules is applied to any pods selected by this field.

Multiple network policies can select the same set of pods. In this case,

the ingress rules for each are combined additively.

This field is NOT optional and follows standard label selector semantics.

An empty podSelector matches all pods in this namespace.

func (*NetworkPolicySpecDie) PodSelectorDie

func (d *NetworkPolicySpecDie) PodSelectorDie(fn func(d *metav1.LabelSelectorDie)) *NetworkPolicySpecDie

PodSelectorDie mutates PodSelector as a die.

podSelector selects the pods to which this NetworkPolicy object applies.

The array of ingress rules is applied to any pods selected by this field.

Multiple network policies can select the same set of pods. In this case,

the ingress rules for each are combined additively.

This field is NOT optional and follows standard label selector semantics.

An empty podSelector matches all pods in this namespace.

func (*NetworkPolicySpecDie) PolicyTypes

policyTypes is a list of rule types that the NetworkPolicy relates to.

Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].

If this field is not specified, it will default based on the existence of ingress or egress rules;

policies that contain an egress section are assumed to affect egress, and all policies

(whether or not they contain an ingress section) are assumed to affect ingress.

If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].

Likewise, if you want to write a policy that specifies that no egress is allowed,

you must specify a policyTypes value that include "Egress" (since such a policy would not include

an egress section and would otherwise default to just [ "Ingress" ]).

This field is beta-level in 1.8

type ServiceBackendPortDie

type ServiceBackendPortDie struct {
	// contains filtered or unexported fields
}

func (*ServiceBackendPortDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ServiceBackendPortDie) DieDiff added in v0.13.0

func (d *ServiceBackendPortDie) DieDiff(opts ...cmp.Option) string

DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.

func (*ServiceBackendPortDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ServiceBackendPortDie) DieFeedJSON

func (d *ServiceBackendPortDie) DieFeedJSON(j []byte) *ServiceBackendPortDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ServiceBackendPortDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ServiceBackendPortDie) DieFeedRawExtension

func (d *ServiceBackendPortDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceBackendPortDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ServiceBackendPortDie) DieFeedYAML

func (d *ServiceBackendPortDie) DieFeedYAML(y []byte) *ServiceBackendPortDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ServiceBackendPortDie) DieFeedYAMLFile

func (d *ServiceBackendPortDie) DieFeedYAMLFile(name string) *ServiceBackendPortDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ServiceBackendPortDie) DieImmutable

func (d *ServiceBackendPortDie) DieImmutable(immutable bool) *ServiceBackendPortDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ServiceBackendPortDie) DiePatch added in v0.13.0

func (d *ServiceBackendPortDie) DiePatch(patchType types.PatchType) ([]byte, error)

DiePatch generates a patch between the current value of the die and the sealed value.

func (*ServiceBackendPortDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ServiceBackendPortDie) DieReleaseJSON

func (d *ServiceBackendPortDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ServiceBackendPortDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ServiceBackendPortDie) DieReleaseRawExtension

func (d *ServiceBackendPortDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ServiceBackendPortDie) DieReleaseYAML

func (d *ServiceBackendPortDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ServiceBackendPortDie) DieSeal added in v0.13.0

DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.

func (*ServiceBackendPortDie) DieSealFeed added in v0.13.0

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 (*ServiceBackendPortDie) DieSealFeedPtr added in v0.13.0

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 (*ServiceBackendPortDie) DieSealRelease added in v0.13.0

DieSealRelease returns the sealed resource managed by the die.

func (*ServiceBackendPortDie) DieSealReleasePtr added in v0.13.0

func (d *ServiceBackendPortDie) DieSealReleasePtr() *networkingv1.ServiceBackendPort

DieSealReleasePtr returns the sealed resource pointer managed by the die.

func (*ServiceBackendPortDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ServiceBackendPortDie) DieStampAt

func (d *ServiceBackendPortDie) DieStampAt(jp string, fn interface{}) *ServiceBackendPortDie

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 (*ServiceBackendPortDie) DieWith

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

func (*ServiceBackendPortDie) Name

name is the name of the port on the Service.

This is a mutually exclusive setting with "Number".

func (*ServiceBackendPortDie) Number

number is the numerical port number (e.g. 80) on the Service.

This is a mutually exclusive setting with "Name".

Jump to

Keyboard shortcuts

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