Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCTCurTime ¶
func GetCTCurTime(clockSource *models.ClockSource) (uint64, error)
Returns current time in units that are used for timestamps in CT and NAT maps (seconds for ClockSourceModeKtime and scaled jiffies for ClockSourceModeJiffies).
func GetClockSourceFromAgent ¶
func GetClockSourceFromAgent(svc daemon.ClientService) (*models.ClockSource, error)
Connect to the agent via API and get its current clocksource.
func GetClockSourceFromOptions ¶
func GetClockSourceFromOptions() *models.ClockSource
Get current clocksource - to be used in the agent context.
func GetClockSourceFromRuntimeConfig ¶
func GetClockSourceFromRuntimeConfig() (*models.ClockSource, error)
Get the clocksource from the agent config file in case agent is not running.
Types ¶
type TimestampConverter ¶
func NewCTTimeToSecConverter ¶
func NewCTTimeToSecConverter(clockSource *models.ClockSource) (TimestampConverter, error)
Returns a function that converts a CT timestamp from clocksource units into seconds.
Click to show internal directories.
Click to hide internal directories.