version

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 17

Documentation

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) 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