openapi

package
v1.77.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumSwitchSetting added in v1.77.2

type EnumSwitchSetting struct {
	// To lists the target discriminator values the confirmation applies to.
	// +listType=atomic
	To []string `json:"to"`

	// Impact is the severity of the switch: info (default), warning or destructive.
	// A destructive switch is applied only after an explicit acknowledgement, and the web
	// console records it with the applications.deckhouse.io/allow-destructive-settings-switch
	// annotation on the Application.
	// +optional
	Impact string `json:"impact,omitempty"`

	// Messages holds the dialog markdown text keyed by language code (en, ru).
	// +optional
	Messages map[string]string `json:"messages,omitempty"`
}

EnumSwitchSetting describes one confirmation the web console shows before the oneOf branch discriminator switches to one of the target values. Target values are matched against the discriminator value converted to a string, so boolean discriminators are addressed as "true"/"false".

func (*EnumSwitchSetting) DeepCopy added in v1.77.2

func (in *EnumSwitchSetting) DeepCopy() *EnumSwitchSetting

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnumSwitchSetting.

func (*EnumSwitchSetting) DeepCopyInto added in v1.77.2

func (in *EnumSwitchSetting) DeepCopyInto(out *EnumSwitchSetting)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExternalDocumentation

type ExternalDocumentation struct {
	Description string `json:"description,omitempty"`
	URL         string `json:"url,omitempty"`
}

ExternalDocumentation allows referencing an external resource for extended documentation.

func (*ExternalDocumentation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalDocumentation.

func (*ExternalDocumentation) DeepCopyInto

func (in *ExternalDocumentation) DeepCopyInto(out *ExternalDocumentation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenAPIV3Schema

type OpenAPIV3Schema struct {
	ID          string    `json:"id,omitempty"`
	Schema      SchemaURL `json:"$schema,omitempty"`
	Ref         *string   `json:"$ref,omitempty"`
	Description string    `json:"description,omitempty"`
	Type        string    `json:"type,omitempty"`
	Format      string    `json:"format,omitempty"`

	Title string `json:"title,omitempty"`
	// default is a default value for undefined object fields.
	Default *apiextensionsv1.JSON `json:"default,omitempty"`

	Maximum          *float64 `json:"maximum,omitempty"`
	ExclusiveMaximum bool     `json:"exclusiveMaximum,omitempty"`
	Minimum          *float64 `json:"minimum,omitempty"`
	ExclusiveMinimum bool     `json:"exclusiveMinimum,omitempty"`

	MaxLength *int64 `json:"maxLength,omitempty"`
	MinLength *int64 `json:"minLength,omitempty"`
	Pattern   string `json:"pattern,omitempty"`

	MaxItems    *int64 `json:"maxItems,omitempty"`
	MinItems    *int64 `json:"minItems,omitempty"`
	UniqueItems bool   `json:"uniqueItems,omitempty"`

	MultipleOf *float64 `json:"multipleOf,omitempty"`

	// +listType=atomic
	Enum []apiextensionsv1.JSON `json:"enum,omitempty"`

	MaxProperties *int64 `json:"maxProperties,omitempty"`
	MinProperties *int64 `json:"minProperties,omitempty"`

	// +listType=atomic
	Required []string                `json:"required,omitempty"`
	Items    *OpenAPIV3SchemaOrArray `json:"items,omitempty"`

	// +listType=atomic
	AllOf []OpenAPIV3Schema `json:"allOf,omitempty"`
	// +listType=atomic
	OneOf []OpenAPIV3Schema `json:"oneOf,omitempty"`
	// +listType=atomic
	AnyOf                []OpenAPIV3Schema          `json:"anyOf,omitempty"`
	Not                  *OpenAPIV3Schema           `json:"not,omitempty"`
	Properties           map[string]OpenAPIV3Schema `json:"properties,omitempty"`
	AdditionalProperties *OpenAPIV3SchemaOrBool     `json:"additionalProperties,omitempty"`
	PatternProperties    map[string]OpenAPIV3Schema `json:"patternProperties,omitempty"`
	Dependencies         SchemaDependencies         `json:"dependencies,omitempty"`
	AdditionalItems      *OpenAPIV3SchemaOrBool     `json:"additionalItems,omitempty"`
	Definitions          SchemaDefinitions          `json:"definitions,omitempty"`
	ExternalDocs         *ExternalDocumentation     `json:"externalDocs,omitempty"`
	Example              *apiextensionsv1.JSON      `json:"example,omitempty"`
	Nullable             bool                       `json:"nullable,omitempty"`

	// x-deckhouse-grantable-resource binds a string settings field to a grantable
	// cluster resource (multitenancy-manager AvailableClusterResource).
	// +optional
	XGrant string `json:"x-deckhouse-grantable-resource,omitempty"`

	// x-deckhouse-validations describes a list of validation rules written in the CEL expression language.
	// +optional
	// +patchMergeKey=expression
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=expression
	XValidations []ValidationRule `json:"x-deckhouse-validations,omitempty"`

	// x-deckhouse-ui-advanced marks a settings field as "advanced", hiding it behind
	// a toggle in the web console UI.
	// +optional
	XUIAdvanced bool `json:"x-deckhouse-ui-advanced,omitempty"`

	// x-deckhouse-immutable marks a settings field as editable only when the
	// application is created: the web console renders it read-only when editing.
	// +optional
	XImmutable bool `json:"x-deckhouse-immutable,omitempty"`

	// x-deckhouse-ui-order sets the display order of a settings field in the
	// web console UI: fields with lower values are shown first.
	// +optional
	XUIOrder *int64 `json:"x-deckhouse-ui-order,omitempty"`

	// x-deckhouse-ui-validation-message overrides the validation error.
	// +optional
	XUIValidationMessage string `json:"x-deckhouse-ui-validation-message,omitempty"`

	// x-deckhouse-ui-resource-name binds a string settings field to a live selection of
	// cluster resources of the given kind: the web console renders a dropdown of
	// matching resource names from the application's namespace.
	// +optional
	XUIResourceName *UIResourceNameSelector `json:"x-deckhouse-ui-resource-name,omitempty"`

	// x-deckhouse-ui-group renders a settings field inside the named root-level group
	// of the web console form; the field's path in settings stays unchanged.
	// +optional
	XUIGroup string `json:"x-deckhouse-ui-group,omitempty"`

	// x-deckhouse-enum-switch-settings, declared on a oneOf branch, lists the confirmation
	// dialogs the web console shows before switching the branch discriminator from a value
	// of that branch to one of the listed target values.
	// +optional
	// +listType=atomic
	XEnumSwitchSettings []EnumSwitchSetting `json:"x-deckhouse-enum-switch-settings,omitempty"`
}

OpenAPIV3Schema is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). It is a forked subset of apiextensionsv1.JSONSchemaProps that drops all x-kubernetes-* extensions and adds Deckhouse-specific x-deckhouse-* extensions as typed fields.

func (*OpenAPIV3Schema) DeepCopy

func (in *OpenAPIV3Schema) DeepCopy() *OpenAPIV3Schema

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenAPIV3Schema.

func (*OpenAPIV3Schema) DeepCopyInto

func (in *OpenAPIV3Schema) DeepCopyInto(out *OpenAPIV3Schema)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenAPIV3SchemaOrArray

type OpenAPIV3SchemaOrArray struct {
	Schema      *OpenAPIV3Schema  `json:"-"`
	JSONSchemas []OpenAPIV3Schema `json:"-"`
}

OpenAPIV3SchemaOrArray represents a value that can either be an OpenAPIV3Schema or an array of OpenAPIV3Schema.

func (*OpenAPIV3SchemaOrArray) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenAPIV3SchemaOrArray.

func (*OpenAPIV3SchemaOrArray) DeepCopyInto

func (in *OpenAPIV3SchemaOrArray) DeepCopyInto(out *OpenAPIV3SchemaOrArray)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (OpenAPIV3SchemaOrArray) MarshalJSON

func (s OpenAPIV3SchemaOrArray) MarshalJSON() ([]byte, error)

func (*OpenAPIV3SchemaOrArray) UnmarshalJSON

func (s *OpenAPIV3SchemaOrArray) UnmarshalJSON(data []byte) error

type OpenAPIV3SchemaOrBool

type OpenAPIV3SchemaOrBool struct {
	Allows bool             `json:"-"`
	Schema *OpenAPIV3Schema `json:"-"`
}

OpenAPIV3SchemaOrBool represents an OpenAPIV3Schema or a boolean value. Defaults to true for the boolean property.

func (*OpenAPIV3SchemaOrBool) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenAPIV3SchemaOrBool.

func (*OpenAPIV3SchemaOrBool) DeepCopyInto

func (in *OpenAPIV3SchemaOrBool) DeepCopyInto(out *OpenAPIV3SchemaOrBool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (OpenAPIV3SchemaOrBool) MarshalJSON

func (s OpenAPIV3SchemaOrBool) MarshalJSON() ([]byte, error)

func (*OpenAPIV3SchemaOrBool) UnmarshalJSON

func (s *OpenAPIV3SchemaOrBool) UnmarshalJSON(data []byte) error

type OpenAPIV3SchemaOrStringArray

type OpenAPIV3SchemaOrStringArray struct {
	Schema   *OpenAPIV3Schema `json:"-"`
	Property []string         `json:"-"`
}

OpenAPIV3SchemaOrStringArray represents an OpenAPIV3Schema or a string array.

func (*OpenAPIV3SchemaOrStringArray) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenAPIV3SchemaOrStringArray.

func (*OpenAPIV3SchemaOrStringArray) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (OpenAPIV3SchemaOrStringArray) MarshalJSON

func (s OpenAPIV3SchemaOrStringArray) MarshalJSON() ([]byte, error)

func (*OpenAPIV3SchemaOrStringArray) UnmarshalJSON

func (s *OpenAPIV3SchemaOrStringArray) UnmarshalJSON(data []byte) error

type SchemaDefinitions

type SchemaDefinitions map[string]OpenAPIV3Schema

SchemaDefinitions contains the models explicitly defined in this spec.

func (SchemaDefinitions) DeepCopy

func (in SchemaDefinitions) DeepCopy() SchemaDefinitions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchemaDefinitions.

func (SchemaDefinitions) DeepCopyInto

func (in SchemaDefinitions) DeepCopyInto(out *SchemaDefinitions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SchemaDependencies

type SchemaDependencies map[string]OpenAPIV3SchemaOrStringArray

SchemaDependencies represent a dependencies property.

func (SchemaDependencies) DeepCopy

func (in SchemaDependencies) DeepCopy() SchemaDependencies

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchemaDependencies.

func (SchemaDependencies) DeepCopyInto

func (in SchemaDependencies) DeepCopyInto(out *SchemaDependencies)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SchemaURL

type SchemaURL string

SchemaURL represents a schema url.

type UIResourceNameSelector added in v1.77.2

type UIResourceNameSelector struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`

	// +optional
	LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
}

UIResourceNameSelector selects objects of a cluster resource kind (apiVersion + kind); the optional labelSelector narrows the selection to objects whose labels match it.

func (*UIResourceNameSelector) DeepCopy added in v1.77.2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UIResourceNameSelector.

func (*UIResourceNameSelector) DeepCopyInto added in v1.77.2

func (in *UIResourceNameSelector) DeepCopyInto(out *UIResourceNameSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValidationRule

type ValidationRule struct {
	// Expression is the CEL expression evaluated against the scoped value.
	// The `self` variable in the expression is bound to that value.
	Expression string `json:"expression"`

	// Message represents the message displayed when validation fails.
	Message string `json:"message,omitempty"`

	// MessageExpression declares a CEL expression that evaluates to the
	// validation failure message that is returned when this rule fails.
	// +optional
	MessageExpression string `json:"messageExpression,omitempty"`

	// Reason provides a machine-readable validation failure reason.
	// +optional
	Reason *string `json:"reason,omitempty"`

	// FieldPath represents the field path returned when the validation fails.
	// +optional
	FieldPath string `json:"fieldPath,omitempty"`
}

ValidationRule describes a validation rule written in the CEL expression language. The expression key matches the shape module and application schema files use and the values CEL validator reads.

func (*ValidationRule) DeepCopy

func (in *ValidationRule) DeepCopy() *ValidationRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationRule.

func (*ValidationRule) DeepCopyInto

func (in *ValidationRule) DeepCopyInto(out *ValidationRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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