YaST2 Developers Documentation: Configuration of ntp-client

Configuration of ntp-client

clients/ntp-client.ycp
Main file
  • Jiri Srain

This module has an unstable interface.

Main file for ntp-client configuration. Uses all other files.

Imports

  • CommandLine
  • NtpClient

Local Functions

local getSyncRecordType (map options) -> string

Get the type of the synchronization record

Parameters:
options a map of the command line options
Return value:
the sync record type
local findSyncRecord (map options) -> integer

Find the synchronization record the map is about

Parameters:
options map of command line options
Return value:
index of the found record, -1 in case of an error
local updateSyncRecord (map options) -> boolean

Update the synchronization record

Parameters:
options map of command line options
Return value:
true on success
local NtpStatusHandler (map options) -> boolean

Handler for command line interface

Parameters:
options map options from the command line
Return value:
true if settings have been changed
local NtpListHandler (map options) -> boolean

Handler for command line interface

Parameters:
options map options from the command line
Return value:
true if settings have been changed
local NtpEnableHandler (map options) -> boolean

Handler for command line interface

Parameters:
options map options from the command line
Return value:
true if settings have been changed
local NtpDisableHandler (map options) -> boolean

Handler for command line interface

Parameters:
options map options from the command line
Return value:
true if settings have been changed
local NtpAddHandler (map options) -> boolean

Handler for command line interface

Parameters:
options map options from the command line
Return value:
true if settings have been changed
local NtpEditHandler (map options) -> boolean

Handler for command line interface

Parameters:
options map options from the command line
Return value:
true if settings have been changed
local NtpDeleteHandler (map options) -> boolean

Handler for command line interface

Parameters:
options map options from the command line
Return value:
true if settings have been changed