utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationNTP           = "node.harvesterhci.io/ntp-service"
	TimesyncdConfigName     = "timesyncd.conf"
	SystemdConfigPath       = "/host/etc/systemd/"
	DbusPropertiesIface     = "org.freedesktop.DBus.Properties"
	DbusTimedate1Name       = "org.freedesktop.timedate1"
	DbusTimesync1Name       = "org.freedesktop.timesync1.Manager"
	DbusTimedate1ObjectPath = "/org/freedesktop/timedate1"
	DbusTimesync1ObjectPath = "/org/freedesktop/timesync1"
)

Variables

This section is empty.

Functions

func DbusPropertiesGet

func DbusPropertiesGet() string

func GenerateOEMTemplate

func GenerateOEMTemplate() *schema.YipConfig

return the empty OEM template for later use

func GetTimeDate1PropertiesNTP

func GetTimeDate1PropertiesNTP() (bool, error)

func GetTimeDate1PropertiesNTPSynchronized

func GetTimeDate1PropertiesNTPSynchronized() (bool, error)

func GetTimesyncdConf

func GetTimesyncdConf() (*viper.Viper, error)

func GetToMonitorServices

func GetToMonitorServices() []string

func LoadYipConfig

func LoadYipConfig(path string) (*schema.YipConfig, error)

func LoadYipConfigToTarget

func LoadYipConfigToTarget(path string, config *schema.YipConfig) error

func UpdateToOEMTemplate

func UpdateToOEMTemplate(stageName string, stage schema.Stage, oem *schema.YipConfig) (*schema.YipConfig, error)

Types

type NTPStatusAnnotation

type NTPStatusAnnotation struct {
	NTPSyncStatus     string `json:"ntpSyncStatus"`
	CurrentNTPServers string `json:"currentNtpServers"`
}

Jump to

Keyboard shortcuts

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