file

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() *metav1.Time

func StringToTime added in v0.0.35

func StringToTime(timestamp string) (*metav1.Time, error)

Converts a string in the capture file name format to metav1.Time

func TimeToString added in v0.0.35

func TimeToString(timestamp *metav1.Time) string

Converts a metav1.Time to a string in the capture file name format Returns a zero time string if timestamp is nil Converts to UTC if other timezone is provided

Types

type CaptureFilename

type CaptureFilename struct {
	CaptureName    string
	NodeHostname   string
	StartTimestamp *metav1.Time
}

func (*CaptureFilename) String

func (cf *CaptureFilename) String() string

Jump to

Keyboard shortcuts

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