util

package
v1.12.3-pre1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64PtrToIntPtr

func Int64PtrToIntPtr(i64 *int64) *int

func IntPtrToInt64Ptr added in v1.12.2

func IntPtrToInt64Ptr(i *int) *int64

func IsStringPresent

func IsStringPresent(strPtr *string) bool

IsStringPresent returns true if the string is non-empty.

func MongoDBRegionToAWSRegion added in v1.12.3

func MongoDBRegionToAWSRegion(region string) string

MongoDBRegionToAWSRegion converts region in US_EAST_1-like format to us-east-1-like

func SafeString added in v1.12.2

func SafeString(s *string) string

func TimePtrToStringPtr

func TimePtrToStringPtr(t *time.Time) *string

utility conversions that can potentially be defined in sdk

func TimeToString

func TimeToString(t time.Time) string

TimeToString returns a RFC3339 date time string format. The resulting format is identical to the format returned by Atlas API, documented as ISO 8601 timestamp format in UTC. It also returns decimals in seconds (up to nanoseconds) if available. Example formats: "2023-07-18T16:12:23Z", "2023-07-18T16:12:23.456Z"

Types

This section is empty.

Jump to

Keyboard shortcuts

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