Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 20

Documentation

Overview

Package version contains the OperatorVersion type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorVersion

type OperatorVersion struct {
	semver.Version `json:"-"`
}

+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.

Jump to

Keyboard shortcuts

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