apiutils

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildListOperationOptions

func BuildListOperationOptions(listOptions api.ListOptions) (*proto.ListOperationOptions, error)

func BuildListOption

func BuildListOption(pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (api.ListOptions, error)

func Of

func Of[E any](e E) *E

of returns a pointer to the provided literal/const input

func StrPtr

func StrPtr(notEmpty string) *string

func ZeroIfNil

func ZeroIfNil[T any](input *T) T

ZeroIfNil return the zeroed value if input is a nil pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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