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() any
- func (v *Version) UnmarshalJSON(b []byte) error
- func (v *Version) UpgradeConstraint() (*semver.Constraints, 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.21.0") V1_18_0 = MustNewVersionFromString("1.18.0") //nolint:stylecheck,revive V1_20_0 = MustNewVersionFromString("1.20.0") //nolint:stylecheck,revive )
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct {
*semver.Version
}
Version is a wrapper around semver.Version which supports correct marshaling to YAML and JSON. In particular, it marshals into strings. +kubebuilder:validation:Type=string
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
GreaterOrEqual returns whenever version is greater or equal than the provided version.
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
ToUnstructured implements the value.UnstructuredConverter interface.
func (*Version) UnmarshalJSON ¶ added in v0.8.0
UnmarshalJSON implements the json.Unmarshaller interface.
func (*Version) UpgradeConstraint ¶ added in v0.10.0
UpgradeConstraint returns the Temporal Server upgrade constraint. Users should upgrade Temporal Server sequentially. The returned constraint ensures that, we're could only upgrade to upgrade from v1.n.x to v1.n+1.x.