Documentation
¶
Index ¶
- Constants
- func Descriptor() componentmanager.Descriptor
- func Factory(providerRegistry *providerapi.ProviderRegistry) (componentmanager.ComponentManager, error)
- type Manager
- func (m *Manager) BringUpControl(ctx context.Context, target common.Target) error
- func (m *Manager) FirmwareControl(ctx context.Context, target common.Target, ...) error
- func (m *Manager) GetBringUpStatus(ctx context.Context, target common.Target) (map[string]operations.MachineBringUpState, error)
- func (m *Manager) GetFirmwareStatus(ctx context.Context, target common.Target) (map[string]operations.FirmwareUpdateStatus, error)
- func (m *Manager) GetPowerStatus(ctx context.Context, target common.Target) (map[string]operations.PowerStatus, error)
- func (m *Manager) InjectExpectation(ctx context.Context, target common.Target, ...) error
- func (m *Manager) PowerControl(ctx context.Context, target common.Target, ...) error
- func (m *Manager) Type() devicetypes.ComponentType
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 ¶
func Factory(providerRegistry *providerapi.ProviderRegistry) (componentmanager.ComponentManager, error)
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 (*Manager) BringUpControl ¶
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
Click to show internal directories.
Click to hide internal directories.