Documentation ¶
Index ¶
- type Clock
- func (c Clock) Add(dur time.Duration) Clock
- func (c Clock) Before(rhs Clock) bool
- func (c Clock) BeforeOrEqual(rhs Clock) bool
- func (c Clock) MarshalJSON() ([]byte, error)
- func (c Clock) String() string
- func (c Clock) Sub(rhs Clock) time.Duration
- func (c Clock) ToMetaV1() metav1.Time
- func (c Clock) ToRFC3339() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
Clock wraps a time.Time to represent a simulated time.
func NewClockWithMetaV1 ¶
NewClockWithMetaV1 creates a new Clock with the given metav1.Time.
func (Clock) BeforeOrEqual ¶
func (Clock) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
Click to show internal directories.
Click to hide internal directories.