Documentation ¶
Overview ¶
+kubebuilder:object:generate=true
Index ¶
- Variables
- type Version
- func (in *Version) DeepCopy() *Version
- func (in *Version) DeepCopyInto(out *Version)
- func (v *Version) GreaterOrEqual(compare *Version) bool
- func (v Version) MarshalJSON() ([]byte, error)
- func (Version) OpenAPISchemaFormat() string
- func (Version) OpenAPISchemaType() []string
- func (v Version) ToUnstructured() interface{}
- func (v *Version) UnmarshalJSON(b []byte) error
- func (v *Version) Validate() error
Constants ¶
This section is empty.
Variables ¶
var ( // SupportedVersionsRange holds all supported temporal versions. SupportedVersionsRange = mustNewConstraint(">= 1.14.0 < 1.19.0") V1_18_0 = MustNewVersionFromString("1.18.0") )
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct {
*semver.Version
}
+kubebuilder:validation:Type=string Version is a wrapper around semver.Version which supports correct marshaling to YAML and JSON. In particular, it marshals into strings.
func MustNewVersionFromString ¶ added in v0.8.0
func NewVersionFromString ¶ added in v0.8.0
func (*Version) DeepCopy ¶ added in v0.8.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶ added in v0.8.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Version) GreaterOrEqual ¶ added in v0.8.0
func (Version) MarshalJSON ¶ added in v0.8.0
MarshalJSON implements the json.Marshaler interface.
func (Version) OpenAPISchemaFormat ¶ added in v0.8.0
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (Version) OpenAPISchemaType ¶ added in v0.8.0
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 (Version) ToUnstructured ¶ added in v0.8.0
func (v Version) ToUnstructured() interface{}
ToUnstructured implements the value.UnstructuredConverter interface.
func (*Version) UnmarshalJSON ¶ added in v0.8.0
UnmarshalJSON implements the json.Unmarshaller interface.