v1alpha1

package
v1.24.0-kw4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerStorageVersion

type ServerStorageVersion struct {

	// The ID of the reporting API server.
	APIServerID string `json:"apiServerID,omitempty"`

	// The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
	DecodableVersions []string `json:"decodableVersions,omitempty"`

	// The API server encodes the object to this version when persisting it in the backend (e.g., etcd).
	EncodingVersion string `json:"encodingVersion,omitempty"`
}

ServerStorageVersion An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.

swagger:model ServerStorageVersion

func (ServerStorageVersion) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServerStorageVersion) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ServerStorageVersion) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServerStorageVersion) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type StorageVersion

type StorageVersion 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"`

	// The name is <group>.<resource>.
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is an empty spec. It is here to comply with Kubernetes API style.
	// Required: true
	Spec *easyjson.RawMessage `json:"spec"`

	// API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend.
	// Required: true
	Status *StorageVersionStatus `json:"status"`
}

StorageVersion Storage version of a specific resource.

swagger:model StorageVersion

func (StorageVersion) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StorageVersion) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StorageVersion) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StorageVersion) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type StorageVersionCondition

type StorageVersionCondition struct {

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

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`

	// If set, this represents the .metadata.generation that the condition was set based upon.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// The reason for the condition's last transition.
	// Required: true
	Reason *string `json:"reason"`

	// Status of the condition, one of True, False, Unknown.
	// Required: true
	Status *string `json:"status"`

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

StorageVersionCondition Describes the state of the storageVersion at a certain point.

swagger:model StorageVersionCondition

func (StorageVersionCondition) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StorageVersionCondition) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StorageVersionCondition) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StorageVersionCondition) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type StorageVersionList

type StorageVersionList 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 holds a list of StorageVersion
	// Required: true
	Items []*StorageVersion `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"`

	// 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"`
}

StorageVersionList A list of StorageVersions.

swagger:model StorageVersionList

func (StorageVersionList) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StorageVersionList) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StorageVersionList) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StorageVersionList) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type StorageVersionSpec

type StorageVersionSpec interface{}

StorageVersionSpec StorageVersionSpec is an empty spec.

swagger:model StorageVersionSpec

type StorageVersionStatus

type StorageVersionStatus struct {

	// If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.
	CommonEncodingVersion string `json:"commonEncodingVersion,omitempty"`

	// The latest available observations of the storageVersion's state.
	Conditions []*StorageVersionCondition `json:"conditions,omitempty"`

	// The reported versions per API server instance.
	StorageVersions []*ServerStorageVersion `json:"storageVersions,omitempty"`
}

StorageVersionStatus API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.

swagger:model StorageVersionStatus

func (StorageVersionStatus) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StorageVersionStatus) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StorageVersionStatus) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StorageVersionStatus) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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