util

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApplyAnnotation

func CreateApplyAnnotation(obj runtime.Object) error

func FormatTime

func FormatTime(t time.Time) string

func GetGroupVersionKind added in v1.2.0

func GetGroupVersionKind(obj runtime.Object) (*schema.GroupVersionKind, error)

func GetModifiedConfiguration

func GetModifiedConfiguration(obj runtime.Object) ([]byte, error)

func GetOriginalConfiguration added in v1.2.0

func GetOriginalConfiguration(obj runtime.Object) ([]byte, error)

GetOriginalConfiguration retrieves the original configuration of the object from the annotation, or nil if no annotation was found.

func ParseTime

func ParseTime(s string) (time.Time, error)

func SetGroupVersionKind added in v1.2.0

func SetGroupVersionKind(obj runtime.Object, gvk *schema.GroupVersionKind) (runtime.Object, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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