time

package
v0.0.0-...-de69368 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetaNow = func() metav1.Time {
	return metav1.Time{Time: Now()}
}

MetaNow is a wrapper around metav1.Now() and used to override behavior in tests.

View Source
var MetaTime = func(time time.Time) metav1.Time {
	return metav1.Time{Time: time}
}

MetaTime is a wrapper around metav1.Time and used to override behavior in tests.

Functions

func Now

func Now() time.Time

Now is a wrapper around time.Now() and used to override behavior in tests. Now invokes time.Now(), or its replacement function

func SetNowTimeFunc

func SetNowTimeFunc(f func() time.Time)

Replace the function used to return the current time (defaults to time.Now() )

Types

This section is empty.

Jump to

Keyboard shortcuts

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