bmc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BmcApp

type BmcApp struct {
	pbbmc.UnimplementedBmcServiceServer
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) (bmcApp *BmcApp, err error)

func (*BmcApp) Discovery

func (b *BmcApp) Discovery(ctx context.Context, request *pbdiscovery.Request) (device *pbredfish.Device, err error)

device - remove if re-discovery and uuid updated

func (*BmcApp) FindOneAndReplace

func (b *BmcApp) FindOneAndReplace(ctx context.Context, colName string, filter bson.D, body any) (err error)

func (*BmcApp) Health

func (b *BmcApp) Health(ctx context.Context, empty *pbbmc.Empty) (*pbbmc.Empty, error)

device - remove if re-discovery and uuid updated

func (*BmcApp) Inventory

func (b *BmcApp) Inventory(ctx context.Context, request *pbinventory.Request) (device *pbredfish.Device, err error)

device - remove if re-discovery and uuid updated

func (*BmcApp) ListDevices

func (b *BmcApp) ListDevices(ctx context.Context, empty *pbbmc.Empty) (devices *pbredfish.Devices, err error)

func (*BmcApp) SwitchLed

func (b *BmcApp) SwitchLed(ctx context.Context, request *pbled.Request) (device *pbredfish.Device, err error)

device - remove if re-discovery and uuid updated

func (*BmcApp) SwitchPower

func (b *BmcApp) SwitchPower(ctx context.Context, request *pbpower.Request) (device *pbredfish.Device, err error)

Jump to

Keyboard shortcuts

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