config

package
v0.0.0-...-cba9a52 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUpdateInterval  = 30
	DefaultProfilePath     = "/etc/linuxptp"
	DefaultPmcPollInterval = 60
)

Variables

This section is empty.

Functions

func GetKubeConfig

func GetKubeConfig() (*rest.Config, error)

Types

type IFaces

type IFaces []Iface

func (*IFaces) Add

func (i *IFaces) Add(iface Iface)

Add ... append interfaces

func (*IFaces) GetEventSource

func (i *IFaces) GetEventSource(iface string) event.EventSource

GetEventSource ... get event source

func (*IFaces) GetGMInterface

func (i *IFaces) GetGMInterface() Iface

GetGMInterface ... get grandmaster interface

func (*IFaces) GetPhcID2IFace

func (i *IFaces) GetPhcID2IFace(phcId string) string

GetPhcID2IFace ... get interface name match phcID

func (*IFaces) String

func (i *IFaces) String() string

String ... get string

type Iface

type Iface struct {
	Name     string
	IsMaster bool
	Source   event.EventSource
	PhcId    string
}

type ProcessConfig

type ProcessConfig struct {
	ClockType       event.ClockType
	ConfigName      string
	EventChannel    chan<- event.EventChannel
	GMThreshold     Threshold
	InitialPTPState event.PTPState
}

type Threshold

type Threshold struct {
	Max             int64
	Min             int64
	HoldOverTimeout int64
}

Jump to

Keyboard shortcuts

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