libexports

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IfClusterIndex

type IfClusterIndex struct {
	// interface name
	InterfaceName string
	// node name
	NodeName string
}

Object used to index interfaces in a cluster

func (IfClusterIndex) String

func (index IfClusterIndex) String() string

type Iface

type Iface struct {
	IfName      string
	IfMac       Mac
	IfIndex     int
	IfPci       PCIAddress
	IfPTPCaps   PTPCaps
	IfUp        bool
	IfMaster    string
	IfSlaveType string
}

type Mac

type Mac struct {
	Data string
}

func (Mac) String

func (mac Mac) String() string

type Neighbors

type Neighbors struct {
	Local  Iface
	Remote map[string]bool
}

type PCIAddress

type PCIAddress struct {
	Device, Function, Description string
}

type PTPCaps

type PTPCaps struct {
	HwRx, HwTx, HwRawClock bool
}

type PtpIf

type PtpIf struct {
	// Index of the interface in the cluster (node/interface name)
	IfClusterIndex
	// Interface
	Iface
}

Object representing a ptp interface within a cluster.

func (*PtpIf) String

func (iface *PtpIf) String() string

func (*PtpIf) String1

func (iface *PtpIf) String1() string

Jump to

Keyboard shortcuts

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