v1beta1

package
v1.24.0-kw7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "flowcontrol.apiserver.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type FlowDistinguisherMethod

type FlowDistinguisherMethod struct {

	// `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required.
	// Required: true
	Type *string `json:"type"`
}

FlowDistinguisherMethod FlowDistinguisherMethod specifies the method of a flow distinguisher.

swagger:model FlowDistinguisherMethod

func (FlowDistinguisherMethod) MarshalEasyJSON

func (v FlowDistinguisherMethod) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlowDistinguisherMethod) MarshalJSON

func (v FlowDistinguisherMethod) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlowDistinguisherMethod) UnmarshalEasyJSON

func (v *FlowDistinguisherMethod) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlowDistinguisherMethod) UnmarshalJSON

func (v *FlowDistinguisherMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlowSchema

type FlowSchema struct {

	// 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
	APIVersion string `json:"apiVersion,omitempty"`

	// 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
	Kind string `json:"kind,omitempty"`

	// `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// `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
	Spec *FlowSchemaSpec `json:"spec,omitempty"`

	// `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *FlowSchemaStatus `json:"status,omitempty"`
}

FlowSchema FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".

swagger:model FlowSchema

func (*FlowSchema) GroupVersionKind

func (v *FlowSchema) GroupVersionKind() schema.GroupVersionKind

func (FlowSchema) MarshalEasyJSON

func (v FlowSchema) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlowSchema) MarshalJSON

func (v FlowSchema) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlowSchema) UnmarshalEasyJSON

func (v *FlowSchema) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlowSchema) UnmarshalJSON

func (v *FlowSchema) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlowSchemaCondition

type FlowSchemaCondition struct {

	// `lastTransitionTime` is the last time the condition transitioned from one status to another.
	LastTransitionTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastTransitionTime,omitempty"`

	// `message` is a human-readable message indicating details about last transition.
	Message string `json:"message,omitempty"`

	// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// `status` is the status of the condition. Can be True, False, Unknown. Required.
	Status string `json:"status,omitempty"`

	// `type` is the type of the condition. Required.
	Type string `json:"type,omitempty"`
}

FlowSchemaCondition FlowSchemaCondition describes conditions for a FlowSchema.

swagger:model FlowSchemaCondition

func (FlowSchemaCondition) MarshalEasyJSON

func (v FlowSchemaCondition) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlowSchemaCondition) MarshalJSON

func (v FlowSchemaCondition) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlowSchemaCondition) UnmarshalEasyJSON

func (v *FlowSchemaCondition) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlowSchemaCondition) UnmarshalJSON

func (v *FlowSchemaCondition) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlowSchemaList

type FlowSchemaList struct {

	// 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
	APIVersion string `json:"apiVersion,omitempty"`

	// `items` is a list of FlowSchemas.
	// Required: true
	Items []*FlowSchema `json:"items"`

	// 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
	Kind string `json:"kind,omitempty"`

	// `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

FlowSchemaList FlowSchemaList is a list of FlowSchema objects.

swagger:model FlowSchemaList

func (*FlowSchemaList) GroupVersionKind

func (v *FlowSchemaList) GroupVersionKind() schema.GroupVersionKind

func (FlowSchemaList) MarshalEasyJSON

func (v FlowSchemaList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlowSchemaList) MarshalJSON

func (v FlowSchemaList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlowSchemaList) UnmarshalEasyJSON

func (v *FlowSchemaList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlowSchemaList) UnmarshalJSON

func (v *FlowSchemaList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlowSchemaSpec

type FlowSchemaSpec struct {

	// `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.
	DistinguisherMethod *FlowDistinguisherMethod `json:"distinguisherMethod,omitempty"`

	// `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.
	MatchingPrecedence int32 `json:"matchingPrecedence,omitempty"`

	// `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.
	// Required: true
	PriorityLevelConfiguration *PriorityLevelConfigurationReference `json:"priorityLevelConfiguration"`

	// `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.
	Rules []*PolicyRulesWithSubjects `json:"rules,omitempty"`
}

FlowSchemaSpec FlowSchemaSpec describes how the FlowSchema's specification looks like.

swagger:model FlowSchemaSpec

func (FlowSchemaSpec) MarshalEasyJSON

func (v FlowSchemaSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlowSchemaSpec) MarshalJSON

func (v FlowSchemaSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlowSchemaSpec) UnmarshalEasyJSON

func (v *FlowSchemaSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlowSchemaSpec) UnmarshalJSON

func (v *FlowSchemaSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FlowSchemaStatus

type FlowSchemaStatus struct {

	// `conditions` is a list of the current states of FlowSchema.
	Conditions []*FlowSchemaCondition `json:"conditions,omitempty"`
}

FlowSchemaStatus FlowSchemaStatus represents the current state of a FlowSchema.

swagger:model FlowSchemaStatus

func (FlowSchemaStatus) MarshalEasyJSON

func (v FlowSchemaStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FlowSchemaStatus) MarshalJSON

func (v FlowSchemaStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FlowSchemaStatus) UnmarshalEasyJSON

func (v *FlowSchemaStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FlowSchemaStatus) UnmarshalJSON

func (v *FlowSchemaStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GroupSubject

type GroupSubject struct {

	// 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.
	// Required: true
	Name *string `json:"name"`
}

GroupSubject GroupSubject holds detailed information for group-kind subject.

swagger:model GroupSubject

func (GroupSubject) MarshalEasyJSON

func (v GroupSubject) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GroupSubject) MarshalJSON

func (v GroupSubject) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GroupSubject) UnmarshalEasyJSON

func (v *GroupSubject) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GroupSubject) UnmarshalJSON

func (v *GroupSubject) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LimitResponse

type LimitResponse struct {

	// `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`.
	Queuing *QueuingConfiguration `json:"queuing,omitempty"`

	// `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.
	// Required: true
	Type *string `json:"type"`
}

LimitResponse LimitResponse defines how to handle requests that can not be executed right now.

swagger:model LimitResponse

func (LimitResponse) MarshalEasyJSON

func (v LimitResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LimitResponse) MarshalJSON

func (v LimitResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LimitResponse) UnmarshalEasyJSON

func (v *LimitResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LimitResponse) UnmarshalJSON

func (v *LimitResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LimitedPriorityLevelConfiguration

type LimitedPriorityLevelConfiguration struct {

	// `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting 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.
	AssuredConcurrencyShares int32 `json:"assuredConcurrencyShares,omitempty"`

	// `limitResponse` indicates what to do with requests that can not be executed right now
	LimitResponse *LimitResponse `json:"limitResponse,omitempty"`
}

LimitedPriorityLevelConfiguration LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:

  • How are requests for this priority level limited?
  • What should be done with requests that exceed the limit?

swagger:model LimitedPriorityLevelConfiguration

func (LimitedPriorityLevelConfiguration) MarshalEasyJSON

func (v LimitedPriorityLevelConfiguration) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LimitedPriorityLevelConfiguration) MarshalJSON

func (v LimitedPriorityLevelConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LimitedPriorityLevelConfiguration) UnmarshalEasyJSON

func (v *LimitedPriorityLevelConfiguration) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LimitedPriorityLevelConfiguration) UnmarshalJSON

func (v *LimitedPriorityLevelConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type NonResourcePolicyRule

type NonResourcePolicyRule struct {

	// `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.
	// Required: true
	NonResourceURLs []string `json:"nonResourceURLs"`

	// `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.
	// Required: true
	Verbs []string `json:"verbs"`
}

NonResourcePolicyRule NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.

swagger:model NonResourcePolicyRule

func (NonResourcePolicyRule) MarshalEasyJSON

func (v NonResourcePolicyRule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (NonResourcePolicyRule) MarshalJSON

func (v NonResourcePolicyRule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*NonResourcePolicyRule) UnmarshalEasyJSON

func (v *NonResourcePolicyRule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*NonResourcePolicyRule) UnmarshalJSON

func (v *NonResourcePolicyRule) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PolicyRulesWithSubjects

type PolicyRulesWithSubjects struct {

	// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
	NonResourceRules []*NonResourcePolicyRule `json:"nonResourceRules,omitempty"`

	// `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.
	ResourceRules []*ResourcePolicyRule `json:"resourceRules,omitempty"`

	// 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.
	// Required: true
	Subjects []*Subject `json:"subjects"`
}

PolicyRulesWithSubjects PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.

swagger:model PolicyRulesWithSubjects

func (PolicyRulesWithSubjects) MarshalEasyJSON

func (v PolicyRulesWithSubjects) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PolicyRulesWithSubjects) MarshalJSON

func (v PolicyRulesWithSubjects) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PolicyRulesWithSubjects) UnmarshalEasyJSON

func (v *PolicyRulesWithSubjects) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PolicyRulesWithSubjects) UnmarshalJSON

func (v *PolicyRulesWithSubjects) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriorityLevelConfiguration

type PriorityLevelConfiguration struct {

	// 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
	APIVersion string `json:"apiVersion,omitempty"`

	// 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
	Kind string `json:"kind,omitempty"`

	// `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// `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
	Spec *PriorityLevelConfigurationSpec `json:"spec,omitempty"`

	// `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *PriorityLevelConfigurationStatus `json:"status,omitempty"`
}

PriorityLevelConfiguration PriorityLevelConfiguration represents the configuration of a priority level.

swagger:model PriorityLevelConfiguration

func (*PriorityLevelConfiguration) GroupVersionKind

func (v *PriorityLevelConfiguration) GroupVersionKind() schema.GroupVersionKind

func (PriorityLevelConfiguration) MarshalEasyJSON

func (v PriorityLevelConfiguration) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriorityLevelConfiguration) MarshalJSON

func (v PriorityLevelConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PriorityLevelConfiguration) UnmarshalEasyJSON

func (v *PriorityLevelConfiguration) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriorityLevelConfiguration) UnmarshalJSON

func (v *PriorityLevelConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriorityLevelConfigurationCondition

type PriorityLevelConfigurationCondition struct {

	// `lastTransitionTime` is the last time the condition transitioned from one status to another.
	LastTransitionTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastTransitionTime,omitempty"`

	// `message` is a human-readable message indicating details about last transition.
	Message string `json:"message,omitempty"`

	// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// `status` is the status of the condition. Can be True, False, Unknown. Required.
	Status string `json:"status,omitempty"`

	// `type` is the type of the condition. Required.
	Type string `json:"type,omitempty"`
}

PriorityLevelConfigurationCondition PriorityLevelConfigurationCondition defines the condition of priority level.

swagger:model PriorityLevelConfigurationCondition

func (PriorityLevelConfigurationCondition) MarshalEasyJSON

func (v PriorityLevelConfigurationCondition) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriorityLevelConfigurationCondition) MarshalJSON

func (v PriorityLevelConfigurationCondition) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PriorityLevelConfigurationCondition) UnmarshalEasyJSON

func (v *PriorityLevelConfigurationCondition) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriorityLevelConfigurationCondition) UnmarshalJSON

func (v *PriorityLevelConfigurationCondition) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriorityLevelConfigurationList

type PriorityLevelConfigurationList struct {

	// 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
	APIVersion string `json:"apiVersion,omitempty"`

	// `items` is a list of request-priorities.
	// Required: true
	Items []*PriorityLevelConfiguration `json:"items"`

	// 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
	Kind string `json:"kind,omitempty"`

	// `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

PriorityLevelConfigurationList PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.

swagger:model PriorityLevelConfigurationList

func (*PriorityLevelConfigurationList) GroupVersionKind

func (PriorityLevelConfigurationList) MarshalEasyJSON

func (v PriorityLevelConfigurationList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriorityLevelConfigurationList) MarshalJSON

func (v PriorityLevelConfigurationList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PriorityLevelConfigurationList) UnmarshalEasyJSON

func (v *PriorityLevelConfigurationList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriorityLevelConfigurationList) UnmarshalJSON

func (v *PriorityLevelConfigurationList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriorityLevelConfigurationReference

type PriorityLevelConfigurationReference struct {

	// `name` is the name of the priority level configuration being referenced Required.
	// Required: true
	Name *string `json:"name"`
}

PriorityLevelConfigurationReference PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.

swagger:model PriorityLevelConfigurationReference

func (PriorityLevelConfigurationReference) MarshalEasyJSON

func (v PriorityLevelConfigurationReference) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriorityLevelConfigurationReference) MarshalJSON

func (v PriorityLevelConfigurationReference) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PriorityLevelConfigurationReference) UnmarshalEasyJSON

func (v *PriorityLevelConfigurationReference) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriorityLevelConfigurationReference) UnmarshalJSON

func (v *PriorityLevelConfigurationReference) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriorityLevelConfigurationSpec

type PriorityLevelConfigurationSpec struct {

	// `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`.
	Limited *LimitedPriorityLevelConfiguration `json:"limited,omitempty"`

	// `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.
	// Required: true
	Type *string `json:"type"`
}

PriorityLevelConfigurationSpec PriorityLevelConfigurationSpec specifies the configuration of a priority level.

swagger:model PriorityLevelConfigurationSpec

func (PriorityLevelConfigurationSpec) MarshalEasyJSON

func (v PriorityLevelConfigurationSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriorityLevelConfigurationSpec) MarshalJSON

func (v PriorityLevelConfigurationSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PriorityLevelConfigurationSpec) UnmarshalEasyJSON

func (v *PriorityLevelConfigurationSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriorityLevelConfigurationSpec) UnmarshalJSON

func (v *PriorityLevelConfigurationSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PriorityLevelConfigurationStatus

type PriorityLevelConfigurationStatus struct {

	// `conditions` is the current state of "request-priority".
	Conditions []*PriorityLevelConfigurationCondition `json:"conditions,omitempty"`
}

PriorityLevelConfigurationStatus PriorityLevelConfigurationStatus represents the current state of a "request-priority".

swagger:model PriorityLevelConfigurationStatus

func (PriorityLevelConfigurationStatus) MarshalEasyJSON

func (v PriorityLevelConfigurationStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PriorityLevelConfigurationStatus) MarshalJSON

func (v PriorityLevelConfigurationStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PriorityLevelConfigurationStatus) UnmarshalEasyJSON

func (v *PriorityLevelConfigurationStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PriorityLevelConfigurationStatus) UnmarshalJSON

func (v *PriorityLevelConfigurationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type QueuingConfiguration

type QueuingConfiguration struct {

	// `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.
	HandSize int32 `json:"handSize,omitempty"`

	// `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.
	QueueLengthLimit int32 `json:"queueLengthLimit,omitempty"`

	// `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.
	Queues int32 `json:"queues,omitempty"`
}

QueuingConfiguration QueuingConfiguration holds the configuration parameters for queuing

swagger:model QueuingConfiguration

func (QueuingConfiguration) MarshalEasyJSON

func (v QueuingConfiguration) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (QueuingConfiguration) MarshalJSON

func (v QueuingConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*QueuingConfiguration) UnmarshalEasyJSON

func (v *QueuingConfiguration) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*QueuingConfiguration) UnmarshalJSON

func (v *QueuingConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResourcePolicyRule

type ResourcePolicyRule struct {

	// `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.
	// Required: true
	APIGroups []string `json:"apiGroups"`

	// `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.
	ClusterScope bool `json:"clusterScope,omitempty"`

	// `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.
	Namespaces []string `json:"namespaces,omitempty"`

	// `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.
	// Required: true
	Resources []string `json:"resources"`

	// `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required.
	// Required: true
	Verbs []string `json:"verbs"`
}

ResourcePolicyRule ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.

swagger:model ResourcePolicyRule

func (ResourcePolicyRule) MarshalEasyJSON

func (v ResourcePolicyRule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResourcePolicyRule) MarshalJSON

func (v ResourcePolicyRule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResourcePolicyRule) UnmarshalEasyJSON

func (v *ResourcePolicyRule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResourcePolicyRule) UnmarshalJSON

func (v *ResourcePolicyRule) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceAccountSubject

type ServiceAccountSubject struct {

	// `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
	// Required: true
	Name *string `json:"name"`

	// `namespace` is the namespace of matching ServiceAccount objects. Required.
	// Required: true
	Namespace *string `json:"namespace"`
}

ServiceAccountSubject ServiceAccountSubject holds detailed information for service-account-kind subject.

swagger:model ServiceAccountSubject

func (ServiceAccountSubject) MarshalEasyJSON

func (v ServiceAccountSubject) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceAccountSubject) MarshalJSON

func (v ServiceAccountSubject) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceAccountSubject) UnmarshalEasyJSON

func (v *ServiceAccountSubject) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceAccountSubject) UnmarshalJSON

func (v *ServiceAccountSubject) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Subject

type Subject struct {

	// `group` matches based on user group name.
	Group *GroupSubject `json:"group,omitempty"`

	// `kind` indicates which one of the other fields is non-empty. Required
	// Required: true
	Kind *string `json:"kind"`

	// `serviceAccount` matches ServiceAccounts.
	ServiceAccount *ServiceAccountSubject `json:"serviceAccount,omitempty"`

	// `user` matches based on username.
	User *UserSubject `json:"user,omitempty"`
}

Subject Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.

swagger:model Subject

func (Subject) MarshalEasyJSON

func (v Subject) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Subject) MarshalJSON

func (v Subject) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Subject) UnmarshalEasyJSON

func (v *Subject) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Subject) UnmarshalJSON

func (v *Subject) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserSubject

type UserSubject struct {

	// `name` is the username that matches, or "*" to match all usernames. Required.
	// Required: true
	Name *string `json:"name"`
}

UserSubject UserSubject holds detailed information for user-kind subject.

swagger:model UserSubject

func (UserSubject) MarshalEasyJSON

func (v UserSubject) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserSubject) MarshalJSON

func (v UserSubject) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UserSubject) UnmarshalEasyJSON

func (v *UserSubject) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserSubject) UnmarshalJSON

func (v *UserSubject) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Source Files

Jump to

Keyboard shortcuts

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