Versions in this module Expand all Collapse all v0 v0.1.0 May 1, 2024 v0.0.1 Feb 21, 2024 Changes in this version + const FabricId + func FabricIdConnectionsConnectionIdGet(fabricId string, connectionId string, model *sf.ConnectionV100Connection) error + func FabricIdConnectionsConnectionIdPatch(fabricId string, connectionId string, model *sf.ConnectionV100Connection) error + func FabricIdConnectionsGet(fabricId string, model *sf.ConnectionCollectionConnectionCollection) error + func FabricIdEndpointGroupsEndpointIdGet(fabricId string, groupId string, model *sf.EndpointGroupV130EndpointGroup) error + func FabricIdEndpointGroupsGet(fabricId string, model *sf.EndpointGroupCollectionEndpointGroupCollection) error + func FabricIdEndpointsEndpointIdGet(fabricId string, endpointId string, model *sf.EndpointV150Endpoint) error + func FabricIdEndpointsGet(fabricId string, model *sf.EndpointCollectionEndpointCollection) error + func FabricIdGet(fabricId string, model *sf.FabricV120Fabric) error + func FabricIdSwitchesGet(fabricId string, model *sf.SwitchCollectionSwitchCollection) error + func FabricIdSwitchesSwitchIdGet(fabricId string, switchId string, model *sf.SwitchV140Switch) error + func FabricIdSwitchesSwitchIdPortsGet(fabricId string, switchId string, model *sf.PortCollectionPortCollection) error + func FabricIdSwitchesSwitchIdPortsPortIdGet(fabricId string, switchId string, portId string, model *sf.PortV130Port) error + func Get(model *sf.FabricCollectionFabricCollection) error + func GetPortPDFID(fabricId, switchId, portId string, controllerId uint16) (uint16, error) + func GetSwitchDevice(fabricId, switchId string) *switchtec.Device + func GetSwitchPath(fabricId, switchId string) *string + func Initialize(log ec.Logger, ctrl SwitchtecControllerInterface) error + func NewDefaultApiRouter(s Api, c SwitchtecControllerInterface) ec.Router + func NewFabricMonitor(f *Fabric) *monitor + func Start() error + type Api interface + RedfishV1FabricsFabricIdConnectionsConnectionIdGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdConnectionsConnectionIdPatch func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdConnectionsGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdEndpointGroupsEndpointGroupIdGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdEndpointGroupsGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdEndpointsEndpointIdGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdEndpointsGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdSwitchesGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdSwitchesSwitchIdGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdSwitchesSwitchIdPortsGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsFabricIdSwitchesSwitchIdPortsPortIdGet func(w http.ResponseWriter, r *http.Request) + RedfishV1FabricsGet func(w http.ResponseWriter, r *http.Request) + func NewDefaultApiService() Api + type ConfigFile struct + DownstreamPortCount int + ManagementConfig ManagementConfig + ManagementPortCount int + Metadata struct{ ... } + Switches []SwitchConfig + UpstreamPortCount int + Version string + func (c *ConfigFile) IsManagementRoutingEnabled() bool + type Connection struct + type DefaultApiRouter struct + func (*DefaultApiRouter) Name() string + func (r *DefaultApiRouter) Close() error + func (r *DefaultApiRouter) Init(log ec.Logger) error + func (r *DefaultApiRouter) Routes() ec.Routes + func (r *DefaultApiRouter) Start() error + type DefaultApiService struct + func (*DefaultApiService) RedfishV1FabricsFabricIdConnectionsConnectionIdGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdConnectionsConnectionIdPatch(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdConnectionsGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdEndpointGroupsEndpointGroupIdGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdEndpointGroupsGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdEndpointsEndpointIdGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdEndpointsGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdSwitchesGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdSwitchesSwitchIdGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdSwitchesSwitchIdPortsGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsFabricIdSwitchesSwitchIdPortsPortIdGet(w http.ResponseWriter, r *http.Request) + func (*DefaultApiService) RedfishV1FabricsGet(w http.ResponseWriter, r *http.Request) + type Endpoint struct + func GetEndpoint(switchId, portId string) (*Endpoint, error) + func (e *Endpoint) ControllerId() uint16 + func (e *Endpoint) Id() string + func (e *Endpoint) Index() int + func (e *Endpoint) Name() string + func (e *Endpoint) OdataId() string + func (e *Endpoint) Type() sf.EndpointV150EntityType + type EndpointGroup struct + type Fabric struct + var FabricController *Fabric + func (f *Fabric) FindDownstreamEndpoint(portId, functionId string) (string, error) + func (f *Fabric) GetDownstreamPortRelativePortIndex(switchId, portId string) (int, error) + func (f *Fabric) GetSwitchPort(switchId, portId string) (*Port, error) + func (f *Fabric) ResetEndpoint(switchId, portId string, vfIndex int) error + func (m *Fabric) EventHandler(e event.Event) error + type ManagementConfig struct + PrimaryDevice int32 + SecondaryDevice int32 + type MockSwitchtecController struct + func (c *MockSwitchtecController) Open(path string) (SwitchtecDeviceInterface, error) + func (c *MockSwitchtecController) SetSwitchNotExists(switchIdx int) + type MockSwitchtecDevice struct + func (*MockSwitchtecDevice) Device() *switchtec.Device + func (*MockSwitchtecDevice) Path() *string + func (d *MockSwitchtecDevice) Bind(hostPhysPortId, hostLogPortId uint8, pdfid uint16) error + func (d *MockSwitchtecDevice) Close() + func (d *MockSwitchtecDevice) EnumerateEndpoint(physPortId uint8, handlerFunc func(epPort *switchtec.DumpEpPortDevice) error) error + func (d *MockSwitchtecDevice) GetEvents() ([]switchtec.GfmsEvent, error) + func (d *MockSwitchtecDevice) GetFirmwareVersion() (string, error) + func (d *MockSwitchtecDevice) GetManufacturer() (string, error) + func (d *MockSwitchtecDevice) GetModel() (string, error) + func (d *MockSwitchtecDevice) GetPortMetrics() (PortMetrics, error) + func (d *MockSwitchtecDevice) GetPortStatus() ([]switchtec.PortLinkStat, error) + func (d *MockSwitchtecDevice) GetSerialNumber() (string, error) + func (d *MockSwitchtecDevice) Identify() (int32, error) + func (d *MockSwitchtecDevice) ResetEndpoint(pdfid uint16) error + type MockSwitchtecPort struct + type Port struct + func (p *Port) GetBaseEndpointIndex() int + func (p *Port) GetSlot() int64 + func (p *Port) Initialize() error + type PortConfig struct + Id string + Name string + Port int + Slot int + Type string + Width int + type PortMetric struct + PhysPortId uint8 + type PortMetrics []PortMetric + type Switch struct + DEBUG_NEXT_SWITCH_LOG_PORT_ID int + type SwitchConfig struct + DownstreamPortCount int + Id string + ManagementPortCount int + Metadata struct{ ... } + PciGen int32 + Ports []PortConfig + UpstreamPortCount int + type SwitchtecCliController struct + func (c SwitchtecCliController) Exists(path string) bool + func (c SwitchtecCliController) Open(path string) (SwitchtecDeviceInterface, error) + type SwitchtecCliDevice struct + func (d *SwitchtecCliDevice) Bind(hostPhysPortId, hostLogPortId uint8, pdfid uint16) error + func (d *SwitchtecCliDevice) Close() + func (d *SwitchtecCliDevice) Device() *switchtec.Device + func (d *SwitchtecCliDevice) EnumerateEndpoint(physPortId uint8, handlerFunc func(epPort *switchtec.DumpEpPortDevice) error) error + func (d *SwitchtecCliDevice) GetEvents() ([]switchtec.GfmsEvent, error) + func (d *SwitchtecCliDevice) GetFirmwareVersion() (string, error) + func (d *SwitchtecCliDevice) GetManufacturer() (string, error) + func (d *SwitchtecCliDevice) GetModel() (string, error) + func (d *SwitchtecCliDevice) GetPortMetrics() (PortMetrics, error) + func (d *SwitchtecCliDevice) GetPortStatus() ([]switchtec.PortLinkStat, error) + func (d *SwitchtecCliDevice) GetSerialNumber() (string, error) + func (d *SwitchtecCliDevice) Identify() (int32, error) + func (d *SwitchtecCliDevice) Path() *string + func (d *SwitchtecCliDevice) ResetEndpoint(pdfid uint16) error + type SwitchtecController struct + func (SwitchtecController) Exists(path string) bool + func (SwitchtecController) Open(path string) (SwitchtecDeviceInterface, error) + type SwitchtecControllerInterface interface + Open func(path string) (SwitchtecDeviceInterface, error) + func NewMockSwitchtecController() SwitchtecControllerInterface + func NewSwitchtecCliController() SwitchtecControllerInterface + func NewSwitchtecController() SwitchtecControllerInterface + type SwitchtecDevice struct + func (d *SwitchtecDevice) Bind(hostPhysPortId, hostLogPortId uint8, pdfid uint16) error + func (d *SwitchtecDevice) Close() + func (d *SwitchtecDevice) Device() *switchtec.Device + func (d *SwitchtecDevice) EnumerateEndpoint(id uint8, f func(epPort *switchtec.DumpEpPortDevice) error) error + func (d *SwitchtecDevice) GetEvents() ([]switchtec.GfmsEvent, error) + func (d *SwitchtecDevice) GetFirmwareVersion() (string, error) + func (d *SwitchtecDevice) GetManufacturer() (string, error) + func (d *SwitchtecDevice) GetModel() (string, error) + func (d *SwitchtecDevice) GetPortMetrics() (PortMetrics, error) + func (d *SwitchtecDevice) GetPortStatus() ([]switchtec.PortLinkStat, error) + func (d *SwitchtecDevice) GetSerialNumber() (string, error) + func (d *SwitchtecDevice) Identify() (int32, error) + func (d *SwitchtecDevice) Path() *string + func (d *SwitchtecDevice) ResetEndpoint(pdfid uint16) error + type SwitchtecDeviceInterface interface + Bind func(uint8, uint8, uint16) error + Close func() + Device func() *switchtec.Device + EnumerateEndpoint func(uint8, func(epPort *switchtec.DumpEpPortDevice) error) error + GetEvents func() ([]switchtec.GfmsEvent, error) + GetFirmwareVersion func() (string, error) + GetManufacturer func() (string, error) + GetModel func() (string, error) + GetPortMetrics func() (PortMetrics, error) + GetPortStatus func() ([]switchtec.PortLinkStat, error) + GetSerialNumber func() (string, error) + Identify func() (int32, error) + Path func() *string + ResetEndpoint func(uint16) error