optional

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package optional provides convenient functions to declare literals and take their address in a single line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentTimePtr

func CurrentTimePtr() *metav1.Time

CurrentTimePtr determines the current time and returns a pointer to a Kubernetes Time representation of it.

func Int32Ptr

func Int32Ptr(n int32) *int32

Int32Ptr accepts a 32-bit integer and returns a pointer to it.

func StringPtr

func StringPtr(str string) *string

StringPtr accepts a string and returns a pointer to it.

func TimePtr

func TimePtr(t metav1.Time) *metav1.Time

TimePtr accepts a Kubernetes Time object and returns a pointer to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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