rpc

package
v0.0.0-...-6816ca5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BmcService

type BmcService struct {
	// Timeout is how long a task should be run
	// before it is cancelled. This is for use in a
	// TaskRunner.Execute function that runs all BMC
	// interactions in the background.
	Timeout time.Duration
	// SkipRedfishVersions is a list of Redfish versions to be ignored,
	//
	// When running an action on a BMC, PBnJ will pass the value of the skipRedfishVersions to bmclib
	// which will then ignore the Redfish endpoint completely on BMCs running the given Redfish versions,
	// and will proceed to attempt other drivers like - IPMI/SSH/Vendor API instead.
	//
	// for more information see https://github.com/bmc-toolbox/bmclib#bmc-connections
	SkipRedfishVersions []string
	TaskRunner          task.Task
	v1.UnimplementedBMCServer
}

BmcService for doing BMC actions.

func (*BmcService) CreateUser

CreateUser sets the next boot device of a machine.

func (*BmcService) DeactivateSOL

DeactivateSOL deactivates any active SOL session on the BMC.

func (*BmcService) DeleteUser

DeleteUser deletes a user on a BMC.

func (*BmcService) NetworkSource

NetworkSource sets the BMC network source.

func (*BmcService) Reset

func (b *BmcService) Reset(ctx context.Context, in *v1.ResetRequest) (*v1.ResetResponse, error)

Reset calls a reset on a BMC.

func (*BmcService) UpdateUser

UpdateUser updates a users credentials on a BMC.

type DiagnosticService

type DiagnosticService struct {
	v1.UnimplementedDiagnosticServer
	TaskRunner task.Task
	Timeout    time.Duration
}

func (*DiagnosticService) ClearSystemEventLog

func (*DiagnosticService) Screenshot

func (*DiagnosticService) SendNMI

type MachineService

type MachineService struct {
	// Timeout is how long a task should be run
	// before it is cancelled. This is for use in a
	// TaskRunner.Execute function that runs all BMC
	// interactions in the background.
	Timeout    time.Duration
	TaskRunner task.Task
	v1.UnimplementedMachineServer
}

MachineService for doing power and device actions.

func (*MachineService) BootDevice

func (m *MachineService) BootDevice(ctx context.Context, in *v1.DeviceRequest) (*v1.DeviceResponse, error)

BootDevice sets the next boot device of a machine.

func (*MachineService) Power

Power does a power action against a BMC.

type TaskService

type TaskService struct {
	TaskRunner task.Task
	v1.UnimplementedTaskServer
}

TaskService for retrieving task details.

func (*TaskService) Status

Status returns a task record.

Jump to

Keyboard shortcuts

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