optional

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert_bool_To_optional_Bool

func Convert_bool_To_optional_Bool(in *bool, out *Bool, _ conversion.Scope) error

func Convert_int_To_optional_Int

func Convert_int_To_optional_Int(in *int, out *Int, _ conversion.Scope) error

func Convert_optional_Bool_To_bool

func Convert_optional_Bool_To_bool(in *Bool, out *bool, _ conversion.Scope) error

func Convert_optional_Int_To_int

func Convert_optional_Int_To_int(in *Int, out *int, _ conversion.Scope) error

func Convert_optional_String_To_string

func Convert_optional_String_To_string(in *String, out *string, _ conversion.Scope) error

func Convert_optional_UInt16_To_uint16 added in v0.11.0

func Convert_optional_UInt16_To_uint16(in *UInt16, out *uint16, _ conversion.Scope) error

func Convert_string_To_optional_String

func Convert_string_To_optional_String(in *string, out *String, _ conversion.Scope) error

func Convert_uint16_To_optional_UInt16 added in v0.11.0

func Convert_uint16_To_optional_UInt16(in *uint16, out *UInt16, _ conversion.Scope) error

func RestoreBool

func RestoreBool(previous, dst *Bool)

func RestoreInt

func RestoreInt(previous, dst *Int)

func RestoreString

func RestoreString(previous, dst *String)

func RestoreUInt16 added in v0.11.0

func RestoreUInt16(previous, dst *UInt16)

Types

type Bool

type Bool *bool

Bool is a bool that can be unspecified. bools which are converted to optional.Bool during API conversion will be converted to nil if the value was previously false.

type Int

type Int *int

Int is an int that can be unspecified. ints which are converted to optional.Int during API conversion will be converted to nil if the value was previously 0. +optional.

type String

type String *string

String is a string that can be unspecified. strings which are converted to optional.String during API conversion will be converted to nil if the value was previously the empty string. +optional.

type UInt16 added in v0.11.0

type UInt16 *uint16

UInt16 is a uint16 that can be unspecified. uint16s which are converted to optional.UInt16 during API conversion will be converted to nil if the value was previously 0. +kubebuilder:validation:Minimum:=0 +kubebuilder:validation:Maximum:=65535 +optional.

Jump to

Keyboard shortcuts

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