timestamp

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceTimestamp

type ResourceTimestamp interface {
	// CreationTimestamp is a timestamp representing the server time when this object was created.
	CreationTimestamp() time.Time
	// DeletionTimestamp is a timestamp at which this resource will be deleted. This field is set by the server when a
	// graceful deletion is requested.
	DeletionTimestamp() *time.Time
}

ResourceTimestamp provides methods to access the creation and deletion timestamps of a Resource.

func NewResourceTimestamp

func NewResourceTimestamp(creation time.Time, deletion *time.Time) ResourceTimestamp

NewResourceTimestamp is used to initialize a new ResourceTimestamp implementation.

Jump to

Keyboard shortcuts

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