nico

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImplementationName = "nico"
)

Variables

This section is empty.

Functions

func Descriptor

func Descriptor() componentmanager.Descriptor

Descriptor returns the NICo PowerShelf manager descriptor.

func Factory

Factory creates a new Manager from the provided providers.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages power shelf components via the NICo/NICo component dispatch RPCs.

func New

func New(nicoClient nicoapi.Client) *Manager

func (*Manager) BringUpControl

func (m *Manager) BringUpControl(
	ctx context.Context,
	target common.Target,
) error

func (*Manager) FirmwareControl

func (m *Manager) FirmwareControl(
	ctx context.Context,
	target common.Target,
	info operations.FirmwareControlTaskInfo,
) error

func (*Manager) GetBringUpStatus

func (m *Manager) GetBringUpStatus(
	ctx context.Context,
	target common.Target,
) (map[string]operations.MachineBringUpState, error)

func (*Manager) GetFirmwareStatus

func (m *Manager) GetFirmwareStatus(
	ctx context.Context,
	target common.Target,
) (map[string]operations.FirmwareUpdateStatus, error)

func (*Manager) GetPowerStatus

func (m *Manager) GetPowerStatus(
	ctx context.Context,
	target common.Target,
) (map[string]operations.PowerStatus, error)

func (*Manager) InjectExpectation

func (m *Manager) InjectExpectation(
	ctx context.Context,
	target common.Target,
	info operations.InjectExpectationTaskInfo,
) error

InjectExpectation registers an expected power shelf with NICo via AddExpectedPowerShelf. The Info field should contain a JSON-encoded nicoapi.AddExpectedPowerShelfRequest.

func (*Manager) PowerControl

func (m *Manager) PowerControl(
	ctx context.Context,
	target common.Target,
	info operations.PowerControlTaskInfo,
) error

func (*Manager) Type

func (m *Manager) Type() devicetypes.ComponentType

Jump to

Keyboard shortcuts

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