Documentation ¶
Index ¶
- Constants
- Variables
- func MarshalVersionAndError(ver *VersionWithError) ([]byte, error)
- type CSV
- type DeviceDetails
- type GMProfiles
- type GNSDevices
- type GNSSAntStatus
- type GNSSModule
- type GNSSNavStatus
- type PTPConfig
- type PTPConfigList
- type PTPConfigProfile
- type PTPConfigSpec
- type Status
- type Validation
- type VersionCheck
- type VersionWithError
- type VersionWithErrorCheck
Constants ¶
View Source
const ( TGMTestIDBase = "https://github.com/redhat-partner-solutions/vse-sync-test/tree/main/tests" TGMEnvModelPath = TGMTestIDBase + "/environment/model" TGMEnvVerPath = TGMTestIDBase + "/environment/version" TGMSyncEnvPath = TGMTestIDBase + "/sync/G.8272/environment/status" )
View Source
const (
MinClusterVersion = "4.14.0-0" // trailing -0 is required to allow preGA version
)
View Source
const (
MinGSPDVersion = "3.25"
)
View Source
const (
MinOperatorVersion = "4.14.0-0" // trailing -0 is required to allow preGA version
)
View Source
const (
MinProtoVersion = "29.20"
)
Variables ¶
View Source
var ( VendorIntel = "0x8086" E810WesportChannel = "0x1593" E810LoganBeach = "0x1592" )
View Source
var (
MinFirmwareVersion = "4.20"
)
View Source
var (
MinGNSSVersion = "2.20"
)
Functions ¶
func MarshalVersionAndError ¶
func MarshalVersionAndError(ver *VersionWithError) ([]byte, error)
Types ¶
type DeviceDetails ¶
func NewDeviceDetails ¶
func NewDeviceDetails(ptpDevInfo *devices.PTPDeviceInfo) *DeviceDetails
func (*DeviceDetails) GetData ¶
func (dev *DeviceDetails) GetData() any
func (*DeviceDetails) GetDescription ¶
func (dev *DeviceDetails) GetDescription() string
func (*DeviceDetails) GetID ¶
func (dev *DeviceDetails) GetID() string
func (*DeviceDetails) GetOrder ¶
func (dev *DeviceDetails) GetOrder() int
func (*DeviceDetails) Verify ¶
func (dev *DeviceDetails) Verify() error
type GMProfiles ¶
type GMProfiles struct { Error error `json:"fetchError"` Profiles []PTPConfigProfile `json:"profiles"` }
func NewIsGrandMaster ¶
func NewIsGrandMaster(client *clients.Clientset) *GMProfiles
func (*GMProfiles) GetData ¶
func (gm *GMProfiles) GetData() any
func (*GMProfiles) GetDescription ¶
func (gm *GMProfiles) GetDescription() string
func (*GMProfiles) GetID ¶
func (gm *GMProfiles) GetID() string
func (*GMProfiles) GetOrder ¶
func (gm *GMProfiles) GetOrder() int
func (*GMProfiles) Verify ¶
func (gm *GMProfiles) Verify() error
type GNSDevices ¶
type GNSDevices struct {
Paths []string `json:"paths"`
}
func NewGNSDevices ¶
func NewGNSDevices(gpsdVer *devices.GPSVersions) *GNSDevices
func (*GNSDevices) GetData ¶
func (gnssDevices *GNSDevices) GetData() any
func (*GNSDevices) GetDescription ¶
func (gnssDevices *GNSDevices) GetDescription() string
func (*GNSDevices) GetID ¶
func (gnssDevices *GNSDevices) GetID() string
func (*GNSDevices) GetOrder ¶
func (gnssDevices *GNSDevices) GetOrder() int
func (*GNSDevices) Verify ¶
func (gnssDevices *GNSDevices) Verify() error
type GNSSAntStatus ¶
type GNSSAntStatus struct {
Blocks []*devices.GPSAntennaDetails `json:"blocks"`
}
func NewGNSSAntStatus ¶
func NewGNSSAntStatus(gpsSatus *devices.GPSDetails) *GNSSAntStatus
func (*GNSSAntStatus) GetData ¶
func (gnssAnt *GNSSAntStatus) GetData() any
func (*GNSSAntStatus) GetDescription ¶
func (gnssAnt *GNSSAntStatus) GetDescription() string
func (*GNSSAntStatus) GetID ¶
func (gnssAnt *GNSSAntStatus) GetID() string
func (*GNSSAntStatus) GetOrder ¶
func (gnssAnt *GNSSAntStatus) GetOrder() int
func (*GNSSAntStatus) Verify ¶
func (gnssAnt *GNSSAntStatus) Verify() error
type GNSSModule ¶
type GNSSModule struct {
Module string `json:"module"`
}
func NewGNSSModule ¶
func NewGNSSModule(gpsdVer *devices.GPSVersions) *GNSSModule
func (*GNSSModule) GetData ¶
func (gnssModule *GNSSModule) GetData() any
func (*GNSSModule) GetDescription ¶
func (gnssModule *GNSSModule) GetDescription() string
func (*GNSSModule) GetID ¶
func (gnssModule *GNSSModule) GetID() string
func (*GNSSModule) GetOrder ¶
func (gnssModule *GNSSModule) GetOrder() int
func (*GNSSModule) Verify ¶
func (gnssModule *GNSSModule) Verify() error
type GNSSNavStatus ¶
type GNSSNavStatus struct {
}func NewGNSSNavStatus ¶
func NewGNSSNavStatus(gpsDatails *devices.GPSDetails) *GNSSNavStatus
func (*GNSSNavStatus) GetData ¶
func (gnss *GNSSNavStatus) GetData() any
func (*GNSSNavStatus) GetDescription ¶
func (gnss *GNSSNavStatus) GetDescription() string
func (*GNSSNavStatus) GetID ¶
func (gnss *GNSSNavStatus) GetID() string
func (*GNSSNavStatus) GetOrder ¶
func (gnss *GNSSNavStatus) GetOrder() int
func (*GNSSNavStatus) Verify ¶
func (gnss *GNSSNavStatus) Verify() error
type PTPConfig ¶
type PTPConfig struct {
Spec PTPConfigSpec `json:"spec"`
}
type PTPConfigList ¶
type PTPConfigProfile ¶
type PTPConfigProfile struct {
TS2PhcConf string `json:"ts2phcConf"`
}
type PTPConfigSpec ¶
type PTPConfigSpec struct {
Profiles []PTPConfigProfile `json:"profile"`
}
type Validation ¶
type VersionCheck ¶
type VersionCheck struct { Version string `json:"version"` MinVersion string `json:"expected"` // contains filtered or unexported fields }
func NewDeviceFirmware ¶
func NewDeviceFirmware(ptpDevInfo *devices.PTPDeviceInfo) *VersionCheck
func NewGNSS ¶
func NewGNSS(gnss *devices.GPSVersions) *VersionCheck
func NewGNSSProtocol ¶
func NewGNSSProtocol(gnss *devices.GPSVersions) *VersionCheck
func NewGPSDVersion ¶
func NewGPSDVersion(gpsdVer *devices.GPSVersions) *VersionCheck
func (*VersionCheck) GetData ¶
func (verCheck *VersionCheck) GetData() any
func (*VersionCheck) GetDescription ¶
func (verCheck *VersionCheck) GetDescription() string
func (*VersionCheck) GetID ¶
func (verCheck *VersionCheck) GetID() string
func (*VersionCheck) GetOrder ¶
func (verCheck *VersionCheck) GetOrder() int
func (*VersionCheck) Verify ¶
func (verCheck *VersionCheck) Verify() error
type VersionWithError ¶
type VersionWithErrorCheck ¶
type VersionWithErrorCheck struct { Error error VersionCheck }
func NewClusterVersion ¶
func NewClusterVersion(client *clients.Clientset) *VersionWithErrorCheck
func NewDeviceDriver ¶
func NewDeviceDriver(ptpDevInfo *devices.PTPDeviceInfo) *VersionWithErrorCheck
func NewOperatorVersion ¶
func NewOperatorVersion(client *clients.Clientset) *VersionWithErrorCheck
func (*VersionWithErrorCheck) MarshalJSON ¶
func (verCheck *VersionWithErrorCheck) MarshalJSON() ([]byte, error)
func (*VersionWithErrorCheck) Verify ¶
func (verCheck *VersionWithErrorCheck) Verify() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.