Documentation
¶
Overview ¶
Package version contains the OperatorVersion type.
Index ¶
- type OperatorVersion
- func (v *OperatorVersion) DeepCopyInto(out *OperatorVersion)
- func (v OperatorVersion) MarshalJSON() ([]byte, error)
- func (in OperatorVersion) OpenAPIModelName() string
- func (_ OperatorVersion) OpenAPISchemaFormat() string
- func (_ OperatorVersion) OpenAPISchemaType() []string
- func (v *OperatorVersion) UnmarshalJSON(data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperatorVersion ¶
+k8s:openapi-gen=true OperatorVersion is a wrapper around semver.Version which supports correct marshaling to YAML and JSON. +kubebuilder:validation:Type=string
func (*OperatorVersion) DeepCopyInto ¶
func (v *OperatorVersion) DeepCopyInto(out *OperatorVersion)
DeepCopyInto creates a deep-copy of the Version value.
func (OperatorVersion) MarshalJSON ¶
func (v OperatorVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements the encoding/json.Marshaler interface.
func (OperatorVersion) OpenAPIModelName ¶ added in v0.40.0
func (in OperatorVersion) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (OperatorVersion) OpenAPISchemaFormat ¶
func (_ OperatorVersion) OpenAPISchemaFormat() string
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type. "semver" is not a standard openapi format but tooling may use the value regardless
func (OperatorVersion) OpenAPISchemaType ¶
func (_ OperatorVersion) OpenAPISchemaType() []string
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
func (*OperatorVersion) UnmarshalJSON ¶
func (v *OperatorVersion) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON implements the encoding/json.Unmarshaler interface.