utils

package
v0.0.1-dev15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr converts a bool value to a pointer.

func Float64Ptr

func Float64Ptr(f float64) *float64

func FromPatch

func FromPatch(from, to string) xpt.ComposedPatch

func FromPatchMergeObjects

func FromPatchMergeObjects(from, to string) xpt.ComposedPatch

func Int64Ptr

func Int64Ptr(i int64) *int64

func StrPtr

func StrPtr(s string) *string

func StringValue

func StringValue(p *string) string

StringValue returns the string value if p is not nil or an empty string.

func ToPatch

func ToPatch(to, from string) xpt.ComposedPatch

func ToPatchMergeObjects

func ToPatchMergeObjects(to, from string) xpt.ComposedPatch

func ToPatchPolicy

func ToPatchPolicy(policy xpt.ToFieldPathPolicy) *xpt.PatchPolicy

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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