Documentation ¶
Index ¶
- func CheckLeaseDuration(namespace string, leaseDurationDefault int32, leaseDurationSNO int32) int
- func DisablePTPReferencePlugin() error
- func DiscoveryPTPConfiguration(namespace string) (masters, slaves []*ptpv1.PtpConfig)
- func EnablePTPEvent(apiVersion, configMapName string) error
- func EnablePTPReferencePlugin() error
- func GetClockIDForeign(ptpConfigName string, label *string, nodeName *string) (id string, err error)
- func GetClockIDMaster(ptpConfigName string, label *string, nodeName *string, isGM bool) (id string, err error)
- func GetFirstNode(ptpConfig *ptpv1.PtpConfig) (*string, error)
- func GetLabel(ptpConfig *ptpv1.PtpConfig) (*string, error)
- func GetListOfWPCEnabledInterfaces(nodeName string) ([]string, string)
- func GetMajorVersion(version string) (int, error)
- func GetMasterSlaveAttachedInterfaces(pod *v1core.Pod) []string
- func GetPTPConfigs(namespace string) ([]ptpv1.PtpConfig, []ptpv1.PtpConfig)
- func GetPTPPodWithPTPConfig(ptpConfig *ptpv1.PtpConfig) (aPtpPod *v1core.Pod, err error)
- func GetProfileLogID(ptpConfigName string, label *string, nodeName *string) (id string, err error)
- func GetProfileName(config *ptpv1.PtpConfig) (string, error)
- func GetPtpInterfacePerNode(nodeName string, ifList map[string]*l2exports.PtpIf) (out []string)
- func GetPtpMasterSlaveAttachedInterfaces(pod *v1core.Pod) []string
- func GetPtpOperatorVersion() (string, error)
- func GetPtpPodOnNode(nodeName string) (v1core.Pod, error)
- func IsClockUnderTestPod(aPod *v1core.Pod) (result bool, err error)
- func IsExternalGM() (out bool)
- func IsGrandMasterPod(aPod *v1core.Pod) (result bool, err error)
- func IsPTPEnabled(ethToolOutput *bytes.Buffer) bool
- func IsPtpMaster(ptp4lOpts, phc2sysOpts *string) bool
- func IsPtpSlave(ptp4lOpts, phc2sysOpts *string) bool
- func IsSecondaryBc(config *ptpv1.PtpConfig) bool
- func IsV1Api(version string) bool
- func MutateProfile(profile *ptpv1.PtpConfig, profileName, nodeName string) *ptpv1.PtpConfig
- func PtpDiscoveredInterfaceList(nodeName string) []string
- func PtpEventEnabled() int
- func ReplaceTestPod(pod *v1core.Pod, timeout time.Duration) (v1core.Pod, error)
- func RestartPTPDaemon()
- func RetrievePTPProfileLabels(configs []ptpv1.PtpConfig) string
- func SaveStoreEventsToFile(allEvents, filename string)
- func WaitForPtpDaemonToBeReady() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLeaseDuration ¶
func DisablePTPReferencePlugin ¶
func DisablePTPReferencePlugin() error
func DiscoveryPTPConfiguration ¶
Returns the slave node label to be used in the test
func EnablePTPEvent ¶
EnablePTPEvent: if configMapName is passed, clean up the configMap when version changed
func EnablePTPReferencePlugin ¶
func EnablePTPReferencePlugin() error
func GetClockIDForeign ¶
func GetClockIDMaster ¶
func GetFirstNode ¶
gets the first nodename configured in the ptpconfig->spec->recommend
func GetMajorVersion ¶
GetMajorVersion returns major version
func GetPTPConfigs ¶
Returns the slave node label to be used in the test, empty string label cound not be found
func GetPTPPodWithPTPConfig ¶
func GetProfileLogID ¶
func GetProfileName ¶
Checks for DualNIC BC
func GetPtpInterfacePerNode ¶
func GetPtpOperatorVersion ¶
func IsClockUnderTestPod ¶
returns true if the pod is running the clock under test
func IsExternalGM ¶
func IsExternalGM() (out bool)
func IsGrandMasterPod ¶
returns true if the pod is running a grandmaster
func IsPTPEnabled ¶
This function parses ethtool command output and detect interfaces which supports ptp protocol
func MutateProfile ¶
func PtpEventEnabled ¶
func PtpEventEnabled() int
PtpEventEnabled returns 0 if event is not enabled, 1 for v1 API, 2 for v2 O-RAN Compliant API
func ReplaceTestPod ¶
func RestartPTPDaemon ¶
func RestartPTPDaemon()
func SaveStoreEventsToFile ¶
func SaveStoreEventsToFile(allEvents, filename string)
saves events to file
func WaitForPtpDaemonToBeReady ¶
func WaitForPtpDaemonToBeReady() int
Types ¶
This section is empty.