v1beta1

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExemptPriorityLevelConfigurationBlank = (&ExemptPriorityLevelConfigurationDie{}).DieFeed(flowcontrolv1beta1.ExemptPriorityLevelConfiguration{})
View Source
var FlowDistinguisherMethodBlank = (&FlowDistinguisherMethodDie{}).DieFeed(flowcontrolv1beta1.FlowDistinguisherMethod{})
View Source
var FlowSchemaBlank = (&FlowSchemaDie{}).DieFeed(flowcontrolv1beta1.FlowSchema{})
View Source
var FlowSchemaSpecBlank = (&FlowSchemaSpecDie{}).DieFeed(flowcontrolv1beta1.FlowSchemaSpec{})
View Source
var FlowSchemaStatusBlank = (&FlowSchemaStatusDie{}).DieFeed(flowcontrolv1beta1.FlowSchemaStatus{})
View Source
var GroupSubjectBlank = (&GroupSubjectDie{}).DieFeed(flowcontrolv1beta1.GroupSubject{})
View Source
var LimitResponseBlank = (&LimitResponseDie{}).DieFeed(flowcontrolv1beta1.LimitResponse{})
View Source
var LimitedPriorityLevelConfigurationBlank = (&LimitedPriorityLevelConfigurationDie{}).DieFeed(flowcontrolv1beta1.LimitedPriorityLevelConfiguration{})
View Source
var NonResourcePolicyRuleBlank = (&NonResourcePolicyRuleDie{}).DieFeed(flowcontrolv1beta1.NonResourcePolicyRule{})
View Source
var PolicyRulesWithSubjectsBlank = (&PolicyRulesWithSubjectsDie{}).DieFeed(flowcontrolv1beta1.PolicyRulesWithSubjects{})
View Source
var PriorityLevelConfigurationBlank = (&PriorityLevelConfigurationDie{}).DieFeed(flowcontrolv1beta1.PriorityLevelConfiguration{})
View Source
var PriorityLevelConfigurationReferenceBlank = (&PriorityLevelConfigurationReferenceDie{}).DieFeed(flowcontrolv1beta1.PriorityLevelConfigurationReference{})
View Source
var PriorityLevelConfigurationSpecBlank = (&PriorityLevelConfigurationSpecDie{}).DieFeed(flowcontrolv1beta1.PriorityLevelConfigurationSpec{})
View Source
var PriorityLevelConfigurationStatusBlank = (&PriorityLevelConfigurationStatusDie{}).DieFeed(flowcontrolv1beta1.PriorityLevelConfigurationStatus{})
View Source
var QueuingConfigurationBlank = (&QueuingConfigurationDie{}).DieFeed(flowcontrolv1beta1.QueuingConfiguration{})
View Source
var ResourcePolicyRuleBlank = (&ResourcePolicyRuleDie{}).DieFeed(flowcontrolv1beta1.ResourcePolicyRule{})
View Source
var ServiceAccountSubjectBlank = (&ServiceAccountSubjectDie{}).DieFeed(flowcontrolv1beta1.ServiceAccountSubject{})
View Source
var SubjectBlank = (&SubjectDie{}).DieFeed(flowcontrolv1beta1.Subject{})
View Source
var UserSubjectBlank = (&UserSubjectDie{}).DieFeed(flowcontrolv1beta1.UserSubject{})

Functions

This section is empty.

Types

type ExemptPriorityLevelConfigurationDie added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DeepCopy added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieFeed added in v0.9.0

DieFeed returns a new die with the provided resource.

func (*ExemptPriorityLevelConfigurationDie) DieFeedJSON added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieFeedPtr added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieFeedRawExtension added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieFeedYAML added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieFeedYAMLFile added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieImmutable added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieRelease added in v0.9.0

DieRelease returns the resource managed by the die.

func (*ExemptPriorityLevelConfigurationDie) DieReleaseJSON added in v0.9.0

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

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

func (*ExemptPriorityLevelConfigurationDie) DieReleasePtr added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieReleaseRawExtension added in v0.9.0

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

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

func (*ExemptPriorityLevelConfigurationDie) DieReleaseYAML added in v0.9.0

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

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

func (*ExemptPriorityLevelConfigurationDie) DieStamp added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) DieStampAt added in v0.9.0

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 (*ExemptPriorityLevelConfigurationDie) DieWith added in v0.9.0

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

func (*ExemptPriorityLevelConfigurationDie) LendablePercent added in v0.9.0

`lendablePercent` prescribes the fraction of the level's NominalCL that

can be borrowed by other priority levels. This value of this

field must be between 0 and 100, inclusive, and it defaults to 0.

The number of seats that other levels can borrow from this level, known

as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.

LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )

func (*ExemptPriorityLevelConfigurationDie) NominalConcurrencyShares added in v0.9.0

`nominalConcurrencyShares` (NCS) contributes to the computation of the

NominalConcurrencyLimit (NominalCL) of this level.

This is the number of execution seats nominally reserved for this priority level.

This DOES NOT limit the dispatching from this priority level

but affects the other priority levels through the borrowing mechanism.

The server's concurrency limit (ServerCL) is divided among all the

priority levels in proportion to their NCS values:

NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs )

sum_ncs = sum[priority level k] NCS(k)

Bigger numbers mean a larger nominal concurrency limit,

at the expense of every other priority level.

This field has a default value of zero.

type FlowDistinguisherMethodDie

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

func (*FlowDistinguisherMethodDie) DeepCopy

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

func (*FlowDistinguisherMethodDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*FlowDistinguisherMethodDie) DieFeedJSON added in v0.8.0

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

func (*FlowDistinguisherMethodDie) DieFeedPtr

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

func (*FlowDistinguisherMethodDie) DieFeedRawExtension added in v0.5.0

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

func (*FlowDistinguisherMethodDie) DieFeedYAML added in v0.8.0

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

func (*FlowDistinguisherMethodDie) DieFeedYAMLFile added in v0.8.0

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

func (*FlowDistinguisherMethodDie) DieImmutable

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

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

func (*FlowDistinguisherMethodDie) DieRelease

DieRelease returns the resource managed by the die.

func (*FlowDistinguisherMethodDie) DieReleaseJSON added in v0.8.0

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

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

func (*FlowDistinguisherMethodDie) DieReleasePtr

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

func (*FlowDistinguisherMethodDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*FlowDistinguisherMethodDie) DieReleaseYAML added in v0.8.0

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

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

func (*FlowDistinguisherMethodDie) DieStamp

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

func (*FlowDistinguisherMethodDie) DieStampAt added in v0.8.0

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

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 (*FlowDistinguisherMethodDie) DieWith added in v0.9.0

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

func (*FlowDistinguisherMethodDie) Type

`type` is the type of flow distinguisher method

The supported types are "ByUser" and "ByNamespace".

Required.

type FlowSchemaDie

type FlowSchemaDie struct {
	v1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*FlowSchemaDie) APIVersion added in v0.5.0

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

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

func (d *FlowSchemaDie) DeepCopy() *FlowSchemaDie

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

func (*FlowSchemaDie) DeepCopyObject

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

func (*FlowSchemaDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*FlowSchemaDie) DieFeedJSON added in v0.8.0

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

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

func (*FlowSchemaDie) DieFeedPtr

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

func (*FlowSchemaDie) DieFeedRawExtension added in v0.5.0

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

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

func (*FlowSchemaDie) DieFeedYAML added in v0.8.0

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

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

func (*FlowSchemaDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*FlowSchemaDie) DieImmutable

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

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

func (*FlowSchemaDie) DieRelease

DieRelease returns the resource managed by the die.

func (*FlowSchemaDie) DieReleaseJSON added in v0.8.0

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

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

func (*FlowSchemaDie) DieReleasePtr

func (d *FlowSchemaDie) DieReleasePtr() *flowcontrolv1beta1.FlowSchema

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

func (*FlowSchemaDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*FlowSchemaDie) DieReleaseUnstructured

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

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

func (*FlowSchemaDie) DieReleaseYAML added in v0.8.0

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

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

func (*FlowSchemaDie) DieStamp

func (d *FlowSchemaDie) DieStamp(fn func(r *flowcontrolv1beta1.FlowSchema)) *FlowSchemaDie

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

func (*FlowSchemaDie) DieStampAt added in v0.8.0

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

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 (*FlowSchemaDie) DieWith added in v0.9.0

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

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

func (*FlowSchemaDie) GetObjectKind

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

func (*FlowSchemaDie) Kind added in v0.5.0

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

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

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

func (*FlowSchemaDie) MetadataDie

func (d *FlowSchemaDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *FlowSchemaDie

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

func (*FlowSchemaDie) Spec

`spec` is the specification of the desired behavior of a FlowSchema.

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

func (*FlowSchemaDie) SpecDie

func (d *FlowSchemaDie) SpecDie(fn func(d *FlowSchemaSpecDie)) *FlowSchemaDie

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

func (*FlowSchemaDie) StatusDie

func (d *FlowSchemaDie) StatusDie(fn func(d *FlowSchemaStatusDie)) *FlowSchemaDie

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

func (*FlowSchemaDie) UnmarshalJSON

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

type FlowSchemaSpecDie

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

func (*FlowSchemaSpecDie) DeepCopy

func (d *FlowSchemaSpecDie) DeepCopy() *FlowSchemaSpecDie

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

func (*FlowSchemaSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*FlowSchemaSpecDie) DieFeedJSON added in v0.8.0

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

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

func (*FlowSchemaSpecDie) DieFeedPtr

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

func (*FlowSchemaSpecDie) DieFeedRawExtension added in v0.5.0

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

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

func (*FlowSchemaSpecDie) DieFeedYAML added in v0.8.0

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

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

func (*FlowSchemaSpecDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*FlowSchemaSpecDie) DieImmutable

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

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

func (*FlowSchemaSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*FlowSchemaSpecDie) DieReleaseJSON added in v0.8.0

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

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

func (*FlowSchemaSpecDie) DieReleasePtr

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

func (*FlowSchemaSpecDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*FlowSchemaSpecDie) DieReleaseYAML added in v0.8.0

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

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

func (*FlowSchemaSpecDie) DieStamp

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

func (*FlowSchemaSpecDie) DieStampAt added in v0.8.0

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

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 (*FlowSchemaSpecDie) DieWith added in v0.9.0

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

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

func (*FlowSchemaSpecDie) DistinguisherMethod

`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema.

`nil` specifies that the distinguisher is disabled and thus will always be the empty string.

func (*FlowSchemaSpecDie) DistinguisherMethodDie

func (d *FlowSchemaSpecDie) DistinguisherMethodDie(fn func(d *FlowDistinguisherMethodDie)) *FlowSchemaSpecDie

func (*FlowSchemaSpecDie) MatchingPrecedence

func (d *FlowSchemaSpecDie) MatchingPrecedence(v int32) *FlowSchemaSpecDie

`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen

FlowSchema is among those with the numerically lowest (which we take to be logically highest)

MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000].

Note that if the precedence is not specified, it will be set to 1000 as default.

func (*FlowSchemaSpecDie) PriorityLevelConfiguration

`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot

be resolved, the FlowSchema will be ignored and marked as invalid in its status.

Required.

func (*FlowSchemaSpecDie) PriorityLevelConfigurationDie

func (d *FlowSchemaSpecDie) PriorityLevelConfigurationDie(fn func(d *PriorityLevelConfigurationReferenceDie)) *FlowSchemaSpecDie

func (*FlowSchemaSpecDie) Rules

`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if

at least one member of rules matches the request.

if it is an empty slice, there will be no requests matching the FlowSchema.

func (*FlowSchemaSpecDie) RulesDie

type FlowSchemaStatusDie

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

func (*FlowSchemaStatusDie) Conditions

`conditions` is a list of the current states of FlowSchema.

func (*FlowSchemaStatusDie) ConditionsDie

func (d *FlowSchemaStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *FlowSchemaStatusDie

func (*FlowSchemaStatusDie) DeepCopy

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

func (*FlowSchemaStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*FlowSchemaStatusDie) DieFeedJSON added in v0.8.0

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

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

func (*FlowSchemaStatusDie) DieFeedPtr

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

func (*FlowSchemaStatusDie) DieFeedRawExtension added in v0.5.0

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

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

func (*FlowSchemaStatusDie) DieFeedYAML added in v0.8.0

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

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

func (*FlowSchemaStatusDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*FlowSchemaStatusDie) DieImmutable

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

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

func (*FlowSchemaStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*FlowSchemaStatusDie) DieReleaseJSON added in v0.8.0

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

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

func (*FlowSchemaStatusDie) DieReleasePtr

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

func (*FlowSchemaStatusDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*FlowSchemaStatusDie) DieReleaseYAML added in v0.8.0

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

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

func (*FlowSchemaStatusDie) DieStamp

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

func (*FlowSchemaStatusDie) DieStampAt added in v0.8.0

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

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 (*FlowSchemaStatusDie) DieWith added in v0.9.0

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

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

type GroupSubjectDie

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

func (*GroupSubjectDie) DeepCopy

func (d *GroupSubjectDie) DeepCopy() *GroupSubjectDie

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

func (*GroupSubjectDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*GroupSubjectDie) DieFeedJSON added in v0.8.0

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

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

func (*GroupSubjectDie) DieFeedPtr

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

func (*GroupSubjectDie) DieFeedRawExtension added in v0.5.0

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

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

func (*GroupSubjectDie) DieFeedYAML added in v0.8.0

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

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

func (*GroupSubjectDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*GroupSubjectDie) DieImmutable

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

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

func (*GroupSubjectDie) DieRelease

DieRelease returns the resource managed by the die.

func (*GroupSubjectDie) DieReleaseJSON added in v0.8.0

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

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

func (*GroupSubjectDie) DieReleasePtr

func (d *GroupSubjectDie) DieReleasePtr() *flowcontrolv1beta1.GroupSubject

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

func (*GroupSubjectDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*GroupSubjectDie) DieReleaseYAML added in v0.8.0

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

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

func (*GroupSubjectDie) DieStamp

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

func (*GroupSubjectDie) DieStampAt added in v0.8.0

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

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 (*GroupSubjectDie) DieWith added in v0.9.0

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

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

func (*GroupSubjectDie) Name

name is the user group that matches, or "*" to match all user groups.

See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some

well-known group names.

Required.

type LimitResponseDie

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

func (*LimitResponseDie) DeepCopy

func (d *LimitResponseDie) DeepCopy() *LimitResponseDie

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

func (*LimitResponseDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*LimitResponseDie) DieFeedJSON added in v0.8.0

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

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

func (*LimitResponseDie) DieFeedPtr

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

func (*LimitResponseDie) DieFeedRawExtension added in v0.5.0

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

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

func (*LimitResponseDie) DieFeedYAML added in v0.8.0

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

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

func (*LimitResponseDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*LimitResponseDie) DieImmutable

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

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

func (*LimitResponseDie) DieRelease

DieRelease returns the resource managed by the die.

func (*LimitResponseDie) DieReleaseJSON added in v0.8.0

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

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

func (*LimitResponseDie) DieReleasePtr

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

func (*LimitResponseDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*LimitResponseDie) DieReleaseYAML added in v0.8.0

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

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

func (*LimitResponseDie) DieStamp

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

func (*LimitResponseDie) DieStampAt added in v0.8.0

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

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 (*LimitResponseDie) DieWith added in v0.9.0

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

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

func (*LimitResponseDie) Queuing

`queuing` holds the configuration parameters for queuing.

This field may be non-empty only if `type` is `"Queue"`.

func (*LimitResponseDie) QueuingDie

func (d *LimitResponseDie) QueuingDie(fn func(d *QueuingConfigurationDie)) *LimitResponseDie

func (*LimitResponseDie) Type

`type` is "Queue" or "Reject".

"Queue" means that requests that can not be executed upon arrival

are held in a queue until they can be executed or a queuing limit

is reached.

"Reject" means that requests that can not be executed upon arrival

are rejected.

Required.

type LimitedPriorityLevelConfigurationDie

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

func (*LimitedPriorityLevelConfigurationDie) AssuredConcurrencyShares

`assuredConcurrencyShares` (ACS) configures the execution

limit, which is a limit on the number of requests of this

priority level that may be executing at a given time. ACS must

be a positive number. The server's concurrency limit (SCL) is

divided among the concurrency-controlled priority levels in

proportion to their assured concurrency shares. This produces

the assured concurrency value (ACV) --- the number of requests

that may be executing at a time --- for each such priority

level:

ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )

bigger numbers of ACS mean more reserved concurrent requests (at the

expense of every other PL).

This field has a default value of 30.

func (*LimitedPriorityLevelConfigurationDie) BorrowingLimitPercent added in v0.7.0

`borrowingLimitPercent`, if present, configures a limit on how many

seats this priority level can borrow from other priority levels.

The limit is known as this level's BorrowingConcurrencyLimit

(BorrowingCL) and is a limit on the total number of seats that this

level may borrow at any one time.

This field holds the ratio of that limit to the level's nominal

concurrency limit. When this field is non-nil, it must hold a

non-negative integer and the limit is calculated as follows.

BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )

The value of this field can be more than 100, implying that this

priority level can borrow a number of seats that is greater than

its own nominal concurrency limit (NominalCL).

When this field is left `nil`, the limit is effectively infinite.

func (*LimitedPriorityLevelConfigurationDie) DeepCopy

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

func (*LimitedPriorityLevelConfigurationDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*LimitedPriorityLevelConfigurationDie) DieFeedJSON added in v0.8.0

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

func (*LimitedPriorityLevelConfigurationDie) DieFeedPtr

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

func (*LimitedPriorityLevelConfigurationDie) DieFeedRawExtension added in v0.5.0

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

func (*LimitedPriorityLevelConfigurationDie) DieFeedYAML added in v0.8.0

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

func (*LimitedPriorityLevelConfigurationDie) DieFeedYAMLFile added in v0.8.0

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

func (*LimitedPriorityLevelConfigurationDie) DieImmutable

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

func (*LimitedPriorityLevelConfigurationDie) DieRelease

DieRelease returns the resource managed by the die.

func (*LimitedPriorityLevelConfigurationDie) DieReleaseJSON added in v0.8.0

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

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

func (*LimitedPriorityLevelConfigurationDie) DieReleasePtr

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

func (*LimitedPriorityLevelConfigurationDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*LimitedPriorityLevelConfigurationDie) DieReleaseYAML added in v0.8.0

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

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

func (*LimitedPriorityLevelConfigurationDie) DieStamp

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

func (*LimitedPriorityLevelConfigurationDie) DieStampAt added in v0.8.0

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 (*LimitedPriorityLevelConfigurationDie) DieWith added in v0.9.0

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

func (*LimitedPriorityLevelConfigurationDie) LendablePercent added in v0.7.0

`lendablePercent` prescribes the fraction of the level's NominalCL that

can be borrowed by other priority levels. The value of this

field must be between 0 and 100, inclusive, and it defaults to 0.

The number of seats that other levels can borrow from this level, known

as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.

LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )

func (*LimitedPriorityLevelConfigurationDie) LimitResponse

`limitResponse` indicates what to do with requests that can not be executed right now

func (*LimitedPriorityLevelConfigurationDie) LimitResponseDie

type NonResourcePolicyRuleDie

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

func (*NonResourcePolicyRuleDie) DeepCopy

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

func (*NonResourcePolicyRuleDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*NonResourcePolicyRuleDie) DieFeedJSON added in v0.8.0

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

func (*NonResourcePolicyRuleDie) DieFeedPtr

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

func (*NonResourcePolicyRuleDie) DieFeedRawExtension added in v0.5.0

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

func (*NonResourcePolicyRuleDie) DieFeedYAML added in v0.8.0

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

func (*NonResourcePolicyRuleDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*NonResourcePolicyRuleDie) DieImmutable

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

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

func (*NonResourcePolicyRuleDie) DieRelease

DieRelease returns the resource managed by the die.

func (*NonResourcePolicyRuleDie) DieReleaseJSON added in v0.8.0

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

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

func (*NonResourcePolicyRuleDie) DieReleasePtr

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

func (*NonResourcePolicyRuleDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*NonResourcePolicyRuleDie) DieReleaseYAML added in v0.8.0

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

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

func (*NonResourcePolicyRuleDie) DieStamp

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

func (*NonResourcePolicyRuleDie) DieStampAt added in v0.8.0

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

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 (*NonResourcePolicyRuleDie) DieWith added in v0.9.0

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

func (*NonResourcePolicyRuleDie) NonResourceURLs

func (d *NonResourcePolicyRuleDie) NonResourceURLs(v ...string) *NonResourcePolicyRuleDie

`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.

For example:

- "/healthz" is legal

- "/hea*" is illegal

- "/hea" is legal but matches nothing

- "/hea/*" also matches nothing

- "/healthz/*" matches all per-component health checks.

"*" matches all non-resource urls. if it is present, it must be the only entry.

Required.

func (*NonResourcePolicyRuleDie) Verbs

`verbs` is a list of matching verbs and may not be empty.

"*" matches all verbs. If it is present, it must be the only entry.

Required.

type PolicyRulesWithSubjectsDie

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

func (*PolicyRulesWithSubjectsDie) DeepCopy

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

func (*PolicyRulesWithSubjectsDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PolicyRulesWithSubjectsDie) DieFeedJSON added in v0.8.0

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

func (*PolicyRulesWithSubjectsDie) DieFeedPtr

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

func (*PolicyRulesWithSubjectsDie) DieFeedRawExtension added in v0.5.0

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

func (*PolicyRulesWithSubjectsDie) DieFeedYAML added in v0.8.0

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

func (*PolicyRulesWithSubjectsDie) DieFeedYAMLFile added in v0.8.0

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

func (*PolicyRulesWithSubjectsDie) DieImmutable

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

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

func (*PolicyRulesWithSubjectsDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PolicyRulesWithSubjectsDie) DieReleaseJSON added in v0.8.0

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

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

func (*PolicyRulesWithSubjectsDie) DieReleasePtr

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

func (*PolicyRulesWithSubjectsDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*PolicyRulesWithSubjectsDie) DieReleaseYAML added in v0.8.0

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

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

func (*PolicyRulesWithSubjectsDie) DieStamp

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

func (*PolicyRulesWithSubjectsDie) DieStampAt added in v0.8.0

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

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 (*PolicyRulesWithSubjectsDie) DieWith added in v0.9.0

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

func (*PolicyRulesWithSubjectsDie) NonResourcePolicyRuleDie

func (d *PolicyRulesWithSubjectsDie) NonResourcePolicyRuleDie(rules ...*NonResourcePolicyRuleDie) *PolicyRulesWithSubjectsDie

func (*PolicyRulesWithSubjectsDie) NonResourceRules

`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb

and the target non-resource URL.

func (*PolicyRulesWithSubjectsDie) ResourceRules

`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the

target resource.

At least one of `resourceRules` and `nonResourceRules` has to be non-empty.

func (*PolicyRulesWithSubjectsDie) ResourceRulesDie

func (*PolicyRulesWithSubjectsDie) Subjects

subjects is the list of normal user, serviceaccount, or group that this rule cares about.

There must be at least one member in this slice.

A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request.

Required.

func (*PolicyRulesWithSubjectsDie) SubjectsDie

type PriorityLevelConfigurationDie

type PriorityLevelConfigurationDie struct {
	v1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*PriorityLevelConfigurationDie) APIVersion added in v0.5.0

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

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

func (*PriorityLevelConfigurationDie) DeepCopyObject

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

func (*PriorityLevelConfigurationDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PriorityLevelConfigurationDie) DieFeedJSON added in v0.8.0

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

func (*PriorityLevelConfigurationDie) DieFeedPtr

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

func (*PriorityLevelConfigurationDie) DieFeedRawExtension added in v0.5.0

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

func (*PriorityLevelConfigurationDie) DieFeedYAML added in v0.8.0

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

func (*PriorityLevelConfigurationDie) DieFeedYAMLFile added in v0.8.0

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

func (*PriorityLevelConfigurationDie) DieImmutable

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

func (*PriorityLevelConfigurationDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PriorityLevelConfigurationDie) DieReleaseJSON added in v0.8.0

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

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

func (*PriorityLevelConfigurationDie) DieReleasePtr

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

func (*PriorityLevelConfigurationDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*PriorityLevelConfigurationDie) DieReleaseUnstructured

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

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

func (*PriorityLevelConfigurationDie) DieReleaseYAML added in v0.8.0

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

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

func (*PriorityLevelConfigurationDie) DieStamp

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

func (*PriorityLevelConfigurationDie) DieStampAt added in v0.8.0

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

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 (*PriorityLevelConfigurationDie) DieWith added in v0.9.0

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

func (*PriorityLevelConfigurationDie) GetObjectKind

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

func (*PriorityLevelConfigurationDie) Kind added in v0.5.0

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

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

func (*PriorityLevelConfigurationDie) MetadataDie

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

func (*PriorityLevelConfigurationDie) Spec

`spec` is the specification of the desired behavior of a "request-priority".

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

func (*PriorityLevelConfigurationDie) SpecDie

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

func (*PriorityLevelConfigurationDie) StatusDie

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

func (*PriorityLevelConfigurationDie) UnmarshalJSON

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

type PriorityLevelConfigurationReferenceDie

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

func (*PriorityLevelConfigurationReferenceDie) DeepCopy

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

func (*PriorityLevelConfigurationReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PriorityLevelConfigurationReferenceDie) DieFeedJSON added in v0.8.0

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

func (*PriorityLevelConfigurationReferenceDie) DieFeedPtr

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

func (*PriorityLevelConfigurationReferenceDie) DieFeedRawExtension added in v0.5.0

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

func (*PriorityLevelConfigurationReferenceDie) DieFeedYAML added in v0.8.0

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

func (*PriorityLevelConfigurationReferenceDie) DieFeedYAMLFile added in v0.8.0

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

func (*PriorityLevelConfigurationReferenceDie) DieImmutable

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

func (*PriorityLevelConfigurationReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PriorityLevelConfigurationReferenceDie) DieReleaseJSON added in v0.8.0

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

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

func (*PriorityLevelConfigurationReferenceDie) DieReleasePtr

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

func (*PriorityLevelConfigurationReferenceDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*PriorityLevelConfigurationReferenceDie) DieReleaseYAML added in v0.8.0

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

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

func (*PriorityLevelConfigurationReferenceDie) DieStamp

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

func (*PriorityLevelConfigurationReferenceDie) DieStampAt added in v0.8.0

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 (*PriorityLevelConfigurationReferenceDie) DieWith added in v0.9.0

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

func (*PriorityLevelConfigurationReferenceDie) Name

`name` is the name of the priority level configuration being referenced

Required.

type PriorityLevelConfigurationSpecDie

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

func (*PriorityLevelConfigurationSpecDie) DeepCopy

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

func (*PriorityLevelConfigurationSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PriorityLevelConfigurationSpecDie) DieFeedJSON added in v0.8.0

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

func (*PriorityLevelConfigurationSpecDie) DieFeedPtr

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

func (*PriorityLevelConfigurationSpecDie) DieFeedRawExtension added in v0.5.0

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

func (*PriorityLevelConfigurationSpecDie) DieFeedYAML added in v0.8.0

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

func (*PriorityLevelConfigurationSpecDie) DieFeedYAMLFile added in v0.8.0

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

func (*PriorityLevelConfigurationSpecDie) DieImmutable

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

func (*PriorityLevelConfigurationSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PriorityLevelConfigurationSpecDie) DieReleaseJSON added in v0.8.0

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

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

func (*PriorityLevelConfigurationSpecDie) DieReleasePtr

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

func (*PriorityLevelConfigurationSpecDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*PriorityLevelConfigurationSpecDie) DieReleaseYAML added in v0.8.0

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

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

func (*PriorityLevelConfigurationSpecDie) DieStamp

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

func (*PriorityLevelConfigurationSpecDie) DieStampAt added in v0.8.0

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 (*PriorityLevelConfigurationSpecDie) DieWith added in v0.9.0

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

func (*PriorityLevelConfigurationSpecDie) Exempt added in v0.9.0

`exempt` specifies how requests are handled for an exempt priority level.

This field MUST be empty if `type` is `"Limited"`.

This field MAY be non-empty if `type` is `"Exempt"`.

If empty and `type` is `"Exempt"` then the default values

for `ExemptPriorityLevelConfiguration` apply.

func (*PriorityLevelConfigurationSpecDie) ExemptDie added in v0.9.0

func (*PriorityLevelConfigurationSpecDie) Limited

`limited` specifies how requests are handled for a Limited priority level.

This field must be non-empty if and only if `type` is `"Limited"`.

func (*PriorityLevelConfigurationSpecDie) LimitedDie

func (*PriorityLevelConfigurationSpecDie) Type

`type` indicates whether this priority level is subject to

limitation on request execution. A value of `"Exempt"` means

that requests of this priority level are not subject to a limit

(and thus are never queued) and do not detract from the

capacity made available to other priority levels. A value of

`"Limited"` means that (a) requests of this priority level

_are_ subject to limits and (b) some of the server's limited

capacity is made available exclusively to this priority level.

Required.

type PriorityLevelConfigurationStatusDie

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

func (*PriorityLevelConfigurationStatusDie) Conditions

`conditions` is the current state of "request-priority".

func (*PriorityLevelConfigurationStatusDie) ConditionsDie

func (*PriorityLevelConfigurationStatusDie) DeepCopy

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

func (*PriorityLevelConfigurationStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*PriorityLevelConfigurationStatusDie) DieFeedJSON added in v0.8.0

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

func (*PriorityLevelConfigurationStatusDie) DieFeedPtr

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

func (*PriorityLevelConfigurationStatusDie) DieFeedRawExtension added in v0.5.0

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

func (*PriorityLevelConfigurationStatusDie) DieFeedYAML added in v0.8.0

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

func (*PriorityLevelConfigurationStatusDie) DieFeedYAMLFile added in v0.8.0

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

func (*PriorityLevelConfigurationStatusDie) DieImmutable

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

func (*PriorityLevelConfigurationStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*PriorityLevelConfigurationStatusDie) DieReleaseJSON added in v0.8.0

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

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

func (*PriorityLevelConfigurationStatusDie) DieReleasePtr

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

func (*PriorityLevelConfigurationStatusDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*PriorityLevelConfigurationStatusDie) DieReleaseYAML added in v0.8.0

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

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

func (*PriorityLevelConfigurationStatusDie) DieStamp

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

func (*PriorityLevelConfigurationStatusDie) DieStampAt added in v0.8.0

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 (*PriorityLevelConfigurationStatusDie) DieWith added in v0.9.0

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

type QueuingConfigurationDie

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

func (*QueuingConfigurationDie) DeepCopy

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

func (*QueuingConfigurationDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*QueuingConfigurationDie) DieFeedJSON added in v0.8.0

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

func (*QueuingConfigurationDie) DieFeedPtr

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

func (*QueuingConfigurationDie) DieFeedRawExtension added in v0.5.0

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

func (*QueuingConfigurationDie) DieFeedYAML added in v0.8.0

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

func (*QueuingConfigurationDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*QueuingConfigurationDie) DieImmutable

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

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

func (*QueuingConfigurationDie) DieRelease

DieRelease returns the resource managed by the die.

func (*QueuingConfigurationDie) DieReleaseJSON added in v0.8.0

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

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

func (*QueuingConfigurationDie) DieReleasePtr

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

func (*QueuingConfigurationDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*QueuingConfigurationDie) DieReleaseYAML added in v0.8.0

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

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

func (*QueuingConfigurationDie) DieStamp

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

func (*QueuingConfigurationDie) DieStampAt added in v0.8.0

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

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 (*QueuingConfigurationDie) DieWith added in v0.9.0

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

func (*QueuingConfigurationDie) HandSize

`handSize` is a small positive number that configures the

shuffle sharding of requests into queues. When enqueuing a request

at this priority level the request's flow identifier (a string

pair) is hashed and the hash value is used to shuffle the list

of queues and deal a hand of the size specified here. The

request is put into one of the shortest queues in that hand.

`handSize` must be no larger than `queues`, and should be

significantly smaller (so that a few heavy flows do not

saturate most of the queues). See the user-facing

documentation for more extensive guidance on setting this

field. This field has a default value of 8.

func (*QueuingConfigurationDie) QueueLengthLimit

func (d *QueuingConfigurationDie) QueueLengthLimit(v int32) *QueuingConfigurationDie

`queueLengthLimit` is the maximum number of requests allowed to

be waiting in a given queue of this priority level at a time;

excess requests are rejected. This value must be positive. If

not specified, it will be defaulted to 50.

func (*QueuingConfigurationDie) Queues

`queues` is the number of queues for this priority level. The

queues exist independently at each apiserver. The value must be

positive. Setting it to 1 effectively precludes

shufflesharding and thus makes the distinguisher method of

associated flow schemas irrelevant. This field has a default

value of 64.

type ResourcePolicyRuleDie

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

func (*ResourcePolicyRuleDie) APIGroups

`apiGroups` is a list of matching API groups and may not be empty.

"*" matches all API groups and, if present, must be the only entry.

Required.

func (*ResourcePolicyRuleDie) ClusterScope

func (d *ResourcePolicyRuleDie) ClusterScope(v bool) *ResourcePolicyRuleDie

`clusterScope` indicates whether to match requests that do not

specify a namespace (which happens either because the resource

is not namespaced or the request targets all namespaces).

If this field is omitted or false then the `namespaces` field

must contain a non-empty list.

func (*ResourcePolicyRuleDie) DeepCopy

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

func (*ResourcePolicyRuleDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ResourcePolicyRuleDie) DieFeedJSON added in v0.8.0

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

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

func (*ResourcePolicyRuleDie) DieFeedPtr

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

func (*ResourcePolicyRuleDie) DieFeedRawExtension added in v0.5.0

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

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

func (*ResourcePolicyRuleDie) DieFeedYAML added in v0.8.0

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

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

func (*ResourcePolicyRuleDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*ResourcePolicyRuleDie) DieImmutable

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

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

func (*ResourcePolicyRuleDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ResourcePolicyRuleDie) DieReleaseJSON added in v0.8.0

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

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

func (*ResourcePolicyRuleDie) DieReleasePtr

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

func (*ResourcePolicyRuleDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*ResourcePolicyRuleDie) DieReleaseYAML added in v0.8.0

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

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

func (*ResourcePolicyRuleDie) DieStamp

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

func (*ResourcePolicyRuleDie) DieStampAt added in v0.8.0

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

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 (*ResourcePolicyRuleDie) DieWith added in v0.9.0

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

func (*ResourcePolicyRuleDie) Namespaces

func (d *ResourcePolicyRuleDie) Namespaces(v ...string) *ResourcePolicyRuleDie

`namespaces` is a list of target namespaces that restricts

matches. A request that specifies a target namespace matches

only if either (a) this list contains that target namespace or

(b) this list contains "*". Note that "*" matches any

specified namespace but does not match a request that _does

not specify_ a namespace (see the `clusterScope` field for

that).

This list may be empty, but only if `clusterScope` is true.

func (*ResourcePolicyRuleDie) Resources

`resources` is a list of matching resources (i.e., lowercase

and plural) with, if desired, subresource. For example, [

"services", "nodes/status" ]. This list may not be empty.

"*" matches all resources and, if present, must be the only entry.

Required.

func (*ResourcePolicyRuleDie) Verbs

`verbs` is a list of matching verbs and may not be empty.

"*" matches all verbs and, if present, must be the only entry.

Required.

type ServiceAccountSubjectDie

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

func (*ServiceAccountSubjectDie) DeepCopy

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

func (*ServiceAccountSubjectDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ServiceAccountSubjectDie) DieFeedJSON added in v0.8.0

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

func (*ServiceAccountSubjectDie) DieFeedPtr

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

func (*ServiceAccountSubjectDie) DieFeedRawExtension added in v0.5.0

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

func (*ServiceAccountSubjectDie) DieFeedYAML added in v0.8.0

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

func (*ServiceAccountSubjectDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*ServiceAccountSubjectDie) DieImmutable

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

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

func (*ServiceAccountSubjectDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ServiceAccountSubjectDie) DieReleaseJSON added in v0.8.0

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

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

func (*ServiceAccountSubjectDie) DieReleasePtr

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

func (*ServiceAccountSubjectDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*ServiceAccountSubjectDie) DieReleaseYAML added in v0.8.0

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

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

func (*ServiceAccountSubjectDie) DieStamp

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

func (*ServiceAccountSubjectDie) DieStampAt added in v0.8.0

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

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 (*ServiceAccountSubjectDie) DieWith added in v0.9.0

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

func (*ServiceAccountSubjectDie) Name

`name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.

Required.

func (*ServiceAccountSubjectDie) Namespace

`namespace` is the namespace of matching ServiceAccount objects.

Required.

type SubjectDie

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

func (*SubjectDie) DeepCopy

func (d *SubjectDie) DeepCopy() *SubjectDie

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

func (*SubjectDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*SubjectDie) DieFeedJSON added in v0.8.0

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

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

func (*SubjectDie) DieFeedPtr

func (d *SubjectDie) DieFeedPtr(r *flowcontrolv1beta1.Subject) *SubjectDie

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

func (*SubjectDie) DieFeedRawExtension added in v0.5.0

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

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

func (*SubjectDie) DieFeedYAML added in v0.8.0

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

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

func (*SubjectDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*SubjectDie) DieImmutable

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

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

func (*SubjectDie) DieRelease

func (d *SubjectDie) DieRelease() flowcontrolv1beta1.Subject

DieRelease returns the resource managed by the die.

func (*SubjectDie) DieReleaseJSON added in v0.8.0

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

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

func (*SubjectDie) DieReleasePtr

func (d *SubjectDie) DieReleasePtr() *flowcontrolv1beta1.Subject

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

func (*SubjectDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*SubjectDie) DieReleaseYAML added in v0.8.0

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

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

func (*SubjectDie) DieStamp

func (d *SubjectDie) DieStamp(fn func(r *flowcontrolv1beta1.Subject)) *SubjectDie

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

func (*SubjectDie) DieStampAt added in v0.8.0

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

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 (*SubjectDie) DieWith added in v0.9.0

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

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

func (*SubjectDie) Group

`group` matches based on user group name.

func (*SubjectDie) GroupDie

func (d *SubjectDie) GroupDie(fn func(d *GroupSubjectDie)) *SubjectDie

func (*SubjectDie) Kind

`kind` indicates which one of the other fields is non-empty.

Required

func (*SubjectDie) ServiceAccount

`serviceAccount` matches ServiceAccounts.

func (*SubjectDie) ServiceAccountDie

func (d *SubjectDie) ServiceAccountDie(fn func(d *ServiceAccountSubjectDie)) *SubjectDie

func (*SubjectDie) User

`user` matches based on username.

func (*SubjectDie) UserDie

func (d *SubjectDie) UserDie(fn func(d *UserSubjectDie)) *SubjectDie

type UserSubjectDie

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

func (*UserSubjectDie) DeepCopy

func (d *UserSubjectDie) DeepCopy() *UserSubjectDie

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

func (*UserSubjectDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*UserSubjectDie) DieFeedJSON added in v0.8.0

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

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

func (*UserSubjectDie) DieFeedPtr

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

func (*UserSubjectDie) DieFeedRawExtension added in v0.5.0

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

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

func (*UserSubjectDie) DieFeedYAML added in v0.8.0

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

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

func (*UserSubjectDie) DieFeedYAMLFile added in v0.8.0

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

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

func (*UserSubjectDie) DieImmutable

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

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

func (*UserSubjectDie) DieRelease

DieRelease returns the resource managed by the die.

func (*UserSubjectDie) DieReleaseJSON added in v0.8.0

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

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

func (*UserSubjectDie) DieReleasePtr

func (d *UserSubjectDie) DieReleasePtr() *flowcontrolv1beta1.UserSubject

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

func (*UserSubjectDie) DieReleaseRawExtension added in v0.5.0

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

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

func (*UserSubjectDie) DieReleaseYAML added in v0.8.0

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

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

func (*UserSubjectDie) DieStamp

func (d *UserSubjectDie) DieStamp(fn func(r *flowcontrolv1beta1.UserSubject)) *UserSubjectDie

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

func (*UserSubjectDie) DieStampAt added in v0.8.0

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

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 (*UserSubjectDie) DieWith added in v0.9.0

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

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

func (*UserSubjectDie) Name

func (d *UserSubjectDie) Name(v string) *UserSubjectDie

`name` is the username that matches, or "*" to match all usernames.

Required.

Jump to

Keyboard shortcuts

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