utils

package
v0.117.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPageSize = 1000
View Source
const DefaultTimeout = 1 * time.Minute

Variables

This section is empty.

Functions

func ConstructResourceId added in v0.108.0

func ConstructResourceId(clusterID string, resourceName string) string

func DeconstructResourceId added in v0.108.0

func DeconstructResourceId(resourceID string) (string, string, error)

func GetTimestamp

func GetTimestamp(timestamp *timestamppb.Timestamp) string

func IsStatusWithCode added in v0.108.0

func IsStatusWithCode(err error, code codes.Code) bool

isStatusWithCode checks if any nested error matches provided code

func Min

func Min(a, b int) int

func RetryConflictingOperation added in v0.108.0

func RetryConflictingOperation(ctx context.Context, sdk *ycsdk.SDK, action func() (*operation.Operation, error)) (*sdkoperation.Operation, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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