v1beta1

package
v1.14.0-kw5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomResourceColumnDefinition

type CustomResourceColumnDefinition struct {

	// JSONPath is a simple JSON path, i.e. with array notation.
	// Required: true
	JSONPath *string `json:"JSONPath"`

	// description is a human readable description of this column.
	Description string `json:"description,omitempty"`

	// format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
	Format string `json:"format,omitempty"`

	// name is a human readable name for the column.
	// Required: true
	Name *string `json:"name"`

	// priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.
	Priority int32 `json:"priority,omitempty"`

	// type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
	// Required: true
	Type *string `json:"type"`
}

CustomResourceColumnDefinition CustomResourceColumnDefinition specifies a column for server side printing.

swagger:model CustomResourceColumnDefinition

func (CustomResourceColumnDefinition) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceColumnDefinition) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceColumnDefinition) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceColumnDefinition) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceConversion

type CustomResourceConversion struct {

	// ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`.
	ConversionReviewVersions []string `json:"conversionReviewVersions,omitempty"`

	// `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
	// Required: true
	Strategy *string `json:"strategy"`

	// `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
	WebhookClientConfig *WebhookClientConfig `json:"webhookClientConfig,omitempty"`
}

CustomResourceConversion CustomResourceConversion describes how to convert different versions of a CR.

swagger:model CustomResourceConversion

func (CustomResourceConversion) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceConversion) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceConversion) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceConversion) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceDefinition

type CustomResourceDefinition 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/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/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes how the user wants the resources to appear
	// Required: true
	Spec *CustomResourceDefinitionSpec `json:"spec"`

	// Status indicates the actual state of the CustomResourceDefinition
	Status *CustomResourceDefinitionStatus `json:"status,omitempty"`
}

CustomResourceDefinition CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.

swagger:model CustomResourceDefinition

func (CustomResourceDefinition) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceDefinition) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceDefinition) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceDefinition) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceDefinitionCondition

type CustomResourceDefinitionCondition struct {

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

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

	// 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: true
	Status *string `json:"status"`

	// Type is the type of the condition.
	// Required: true
	Type *string `json:"type"`
}

CustomResourceDefinitionCondition CustomResourceDefinitionCondition contains details for the current condition of this pod.

swagger:model CustomResourceDefinitionCondition

func (CustomResourceDefinitionCondition) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceDefinitionCondition) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceDefinitionCondition) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceDefinitionCondition) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceDefinitionList

type CustomResourceDefinitionList 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/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Items individual CustomResourceDefinitions
	// Required: true
	Items []*CustomResourceDefinition `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/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

CustomResourceDefinitionList CustomResourceDefinitionList is a list of CustomResourceDefinition objects.

swagger:model CustomResourceDefinitionList

func (CustomResourceDefinitionList) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceDefinitionList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceDefinitionList) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceDefinitionList) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceDefinitionNames

type CustomResourceDefinitionNames struct {

	// Categories is a list of grouped resources custom resources belong to (e.g. 'all')
	Categories []string `json:"categories,omitempty"`

	// Kind is the serialized kind of the resource.  It is normally CamelCase and singular.
	// Required: true
	Kind *string `json:"kind"`

	// ListKind is the serialized kind of the list for this resource.  Defaults to <kind>List.
	ListKind string `json:"listKind,omitempty"`

	// Plural is the plural name of the resource to serve.  It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase.
	// Required: true
	Plural *string `json:"plural"`

	// ShortNames are short names for the resource.  It must be all lowercase.
	ShortNames []string `json:"shortNames,omitempty"`

	// Singular is the singular name of the resource.  It must be all lowercase  Defaults to lowercased <kind>
	Singular string `json:"singular,omitempty"`
}

CustomResourceDefinitionNames CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition

swagger:model CustomResourceDefinitionNames

func (CustomResourceDefinitionNames) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceDefinitionNames) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceDefinitionNames) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceDefinitionNames) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceDefinitionSpec

type CustomResourceDefinitionSpec struct {

	// AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive.
	AdditionalPrinterColumns []*CustomResourceColumnDefinition `json:"additionalPrinterColumns,omitempty"`

	// `conversion` defines conversion settings for the CRD.
	Conversion *CustomResourceConversion `json:"conversion,omitempty"`

	// Group is the group this resource belongs in
	// Required: true
	Group *string `json:"group"`

	// Names are the names used to describe this custom resource
	// Required: true
	Names *CustomResourceDefinitionNames `json:"names"`

	// Scope indicates whether this resource is cluster or namespace scoped.  Default is namespaced
	// Required: true
	Scope *string `json:"scope"`

	// Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive.
	Subresources *CustomResourceSubresources `json:"subresources,omitempty"`

	// Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive.
	Validation *CustomResourceValidation `json:"validation,omitempty"`

	// Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`.
	Version string `json:"version,omitempty"`

	// Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
	Versions []*CustomResourceDefinitionVersion `json:"versions,omitempty"`
}

CustomResourceDefinitionSpec CustomResourceDefinitionSpec describes how a user wants their resource to appear

swagger:model CustomResourceDefinitionSpec

func (CustomResourceDefinitionSpec) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceDefinitionSpec) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceDefinitionSpec) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceDefinitionSpec) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceDefinitionStatus

type CustomResourceDefinitionStatus struct {

	// AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec.
	// Required: true
	AcceptedNames *CustomResourceDefinitionNames `json:"acceptedNames"`

	// Conditions indicate state for particular aspects of a CustomResourceDefinition
	// Required: true
	Conditions []*CustomResourceDefinitionCondition `json:"conditions"`

	// StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field.
	// Required: true
	StoredVersions []string `json:"storedVersions"`
}

CustomResourceDefinitionStatus CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition

swagger:model CustomResourceDefinitionStatus

func (CustomResourceDefinitionStatus) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceDefinitionStatus) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceDefinitionStatus) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceDefinitionStatus) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceDefinitionVersion

type CustomResourceDefinitionVersion struct {

	// AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null
	AdditionalPrinterColumns []*CustomResourceColumnDefinition `json:"additionalPrinterColumns,omitempty"`

	// Name is the version name, e.g. “v1”, “v2beta1”, etc.
	// Required: true
	Name *string `json:"name"`

	// Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
	Schema *CustomResourceValidation `json:"schema,omitempty"`

	// Served is a flag enabling/disabling this version from being served via REST APIs
	// Required: true
	Served *bool `json:"served"`

	// Storage flags the version as storage version. There must be exactly one flagged as storage version.
	// Required: true
	Storage *bool `json:"storage"`

	// Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.
	Subresources *CustomResourceSubresources `json:"subresources,omitempty"`
}

CustomResourceDefinitionVersion CustomResourceDefinitionVersion describes a version for CRD.

swagger:model CustomResourceDefinitionVersion

func (CustomResourceDefinitionVersion) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceDefinitionVersion) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceDefinitionVersion) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceDefinitionVersion) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceSubresourceScale

type CustomResourceSubresourceScale struct {

	// LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.
	LabelSelectorPath string `json:"labelSelectorPath,omitempty"`

	// SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.
	// Required: true
	SpecReplicasPath *string `json:"specReplicasPath"`

	// StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0.
	// Required: true
	StatusReplicasPath *string `json:"statusReplicasPath"`
}

CustomResourceSubresourceScale CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.

swagger:model CustomResourceSubresourceScale

func (CustomResourceSubresourceScale) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceSubresourceScale) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceSubresourceScale) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceSubresourceScale) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceSubresourceStatus

type CustomResourceSubresourceStatus interface{}

CustomResourceSubresourceStatus CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza

swagger:model CustomResourceSubresourceStatus

type CustomResourceSubresources

type CustomResourceSubresources struct {

	// Scale denotes the scale subresource for CustomResources
	Scale *CustomResourceSubresourceScale `json:"scale,omitempty"`

	// Status denotes the status subresource for CustomResources
	Status easyjson.RawMessage `json:"status,omitempty"`
}

CustomResourceSubresources CustomResourceSubresources defines the status and scale subresources for CustomResources.

swagger:model CustomResourceSubresources

func (CustomResourceSubresources) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceSubresources) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceSubresources) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceSubresources) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CustomResourceValidation

type CustomResourceValidation struct {

	// OpenAPIV3Schema is the OpenAPI v3 schema to be validated against.
	OpenAPIV3Schema *JSONSchemaProps `json:"openAPIV3Schema,omitempty"`
}

CustomResourceValidation CustomResourceValidation is a list of validation methods for CustomResources.

swagger:model CustomResourceValidation

func (CustomResourceValidation) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomResourceValidation) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CustomResourceValidation) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomResourceValidation) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ExternalDocumentation

type ExternalDocumentation struct {

	// description
	Description string `json:"description,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

ExternalDocumentation ExternalDocumentation allows referencing an external resource for extended documentation.

swagger:model ExternalDocumentation

func (ExternalDocumentation) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ExternalDocumentation) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ExternalDocumentation) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ExternalDocumentation) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type JSON

type JSON interface{}

JSON JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.

swagger:model JSON

type JSONSchemaProps

type JSONSchemaProps struct {

	// dollar ref
	DollarRef string `json:"$ref,omitempty"`

	// dollar schema
	DollarSchema string `json:"$schema,omitempty"`

	// additional items
	AdditionalItems easyjson.RawMessage `json:"additionalItems,omitempty"`

	// additional properties
	AdditionalProperties easyjson.RawMessage `json:"additionalProperties,omitempty"`

	// all of
	AllOf []*JSONSchemaProps `json:"allOf,omitempty"`

	// any of
	AnyOf []*JSONSchemaProps `json:"anyOf,omitempty"`

	// default
	Default easyjson.RawMessage `json:"default,omitempty"`

	// definitions
	Definitions map[string]*JSONSchemaProps `json:"definitions,omitempty"`

	// dependencies
	Dependencies map[string]easyjson.RawMessage `json:"dependencies,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// enum
	Enum []easyjson.RawMessage `json:"enum,omitempty"`

	// example
	Example easyjson.RawMessage `json:"example,omitempty"`

	// exclusive maximum
	ExclusiveMaximum bool `json:"exclusiveMaximum,omitempty"`

	// exclusive minimum
	ExclusiveMinimum bool `json:"exclusiveMinimum,omitempty"`

	// external docs
	ExternalDocs *ExternalDocumentation `json:"externalDocs,omitempty"`

	// format
	Format string `json:"format,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// items
	Items easyjson.RawMessage `json:"items,omitempty"`

	// max items
	MaxItems int64 `json:"maxItems,omitempty"`

	// max length
	MaxLength int64 `json:"maxLength,omitempty"`

	// max properties
	MaxProperties int64 `json:"maxProperties,omitempty"`

	// maximum
	Maximum float64 `json:"maximum,omitempty"`

	// min items
	MinItems int64 `json:"minItems,omitempty"`

	// min length
	MinLength int64 `json:"minLength,omitempty"`

	// min properties
	MinProperties int64 `json:"minProperties,omitempty"`

	// minimum
	Minimum float64 `json:"minimum,omitempty"`

	// multiple of
	MultipleOf float64 `json:"multipleOf,omitempty"`

	// not
	Not *JSONSchemaProps `json:"not,omitempty"`

	// nullable
	Nullable bool `json:"nullable,omitempty"`

	// one of
	OneOf []*JSONSchemaProps `json:"oneOf,omitempty"`

	// pattern
	Pattern string `json:"pattern,omitempty"`

	// pattern properties
	PatternProperties map[string]*JSONSchemaProps `json:"patternProperties,omitempty"`

	// properties
	Properties map[string]*JSONSchemaProps `json:"properties,omitempty"`

	// required
	Required []string `json:"required,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// unique items
	UniqueItems bool `json:"uniqueItems,omitempty"`
}

JSONSchemaProps JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).

swagger:model JSONSchemaProps

func (JSONSchemaProps) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (JSONSchemaProps) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*JSONSchemaProps) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*JSONSchemaProps) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type JSONSchemaPropsOrArray

type JSONSchemaPropsOrArray interface{}

JSONSchemaPropsOrArray JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.

swagger:model JSONSchemaPropsOrArray

type JSONSchemaPropsOrBool

type JSONSchemaPropsOrBool interface{}

JSONSchemaPropsOrBool JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.

swagger:model JSONSchemaPropsOrBool

type JSONSchemaPropsOrStringArray

type JSONSchemaPropsOrStringArray interface{}

JSONSchemaPropsOrStringArray JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.

swagger:model JSONSchemaPropsOrStringArray

type ServiceReference

type ServiceReference struct {

	// `name` is the name of the service. Required
	// Required: true
	Name *string `json:"name"`

	// `namespace` is the namespace of the service. Required
	// Required: true
	Namespace *string `json:"namespace"`

	// `path` is an optional URL path which will be sent in any request to this service.
	Path string `json:"path,omitempty"`
}

ServiceReference ServiceReference holds a reference to Service.legacy.k8s.io

swagger:model ServiceReference

func (ServiceReference) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceReference) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ServiceReference) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceReference) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type WebhookClientConfig

type WebhookClientConfig struct {

	// `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.
	// Format: byte
	CaBundle strfmt.Base64 `json:"caBundle,omitempty"`

	// `service` is a reference to the service for this webhook. Either `service` or `url` must be specified.
	//
	// If the webhook is running within the cluster, then you should use `service`.
	//
	// Port 443 will be used if it is open, otherwise it is an error.
	Service *ServiceReference `json:"service,omitempty"`

	// `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.
	//
	// The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.
	//
	// Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.
	//
	// The scheme must be "https"; the URL must begin with "https://".
	//
	// A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.
	//
	// Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either.
	URL string `json:"url,omitempty"`
}

WebhookClientConfig WebhookClientConfig contains the information to make a TLS connection with the webhook. It has the same field as admissionregistration.v1beta1.WebhookClientConfig.

swagger:model WebhookClientConfig

func (WebhookClientConfig) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebhookClientConfig) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WebhookClientConfig) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebhookClientConfig) UnmarshalJSON

func (v *WebhookClientConfig) 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