oem

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSubMap added in v0.2.0

func IsSubMap(main, sub map[string]any) bool

Types

type Dell

type Dell struct {
	Service *gofish.Service
}

func (*Dell) GetTaskMonitorDetails

func (r *Dell) GetTaskMonitorDetails(ctx context.Context, taskMonitorResponse *http.Response) (*redfish.Task, error)

func (*Dell) GetUpdateRequestBody

func (r *Dell) GetUpdateRequestBody(
	parameters *redfish.SimpleUpdateParameters,
) *SimpleUpdateRequestBody

func (*Dell) GetUpdateTaskMonitorURI

func (r *Dell) GetUpdateTaskMonitorURI(response *http.Response) (string, error)

type DellAttributes

type DellAttributes struct {
	Id         string
	Attributes redfish.SettingsAttributes
	Settings   common.Settings `json:"@Redfish.Settings"`
	Etag       string
}

type DellIdracManager

type DellIdracManager struct {
	BMC     *redfish.Manager
	Service *gofish.Service
}

func (*DellIdracManager) CheckBMCAttributes

func (d *DellIdracManager) CheckBMCAttributes(
	ctx context.Context,
	attributes redfish.SettingsAttributes,
) (bool, error)

func (*DellIdracManager) GetBMCPendingAttributeValues

func (d *DellIdracManager) GetBMCPendingAttributeValues(ctx context.Context) (redfish.SettingsAttributes, error)

func (*DellIdracManager) GetOEMBMCSettingAttribute

func (d *DellIdracManager) GetOEMBMCSettingAttribute(
	ctx context.Context,
	attributes map[string]string,
) (redfish.SettingsAttributes, error)

func (*DellIdracManager) GetObjFromUri

func (d *DellIdracManager) GetObjFromUri(
	ctx context.Context,
	uri string,
	respObj any,
) (string, error)

func (*DellIdracManager) UpdateBMCAttributesApplyAt

func (d *DellIdracManager) UpdateBMCAttributesApplyAt(
	ctx context.Context,
	attrs redfish.SettingsAttributes,
	applyTime common.ApplyTime,
) error

type DellManagerLinksOEM

type DellManagerLinksOEM struct {
	DellLinkAttributes  common.Links `json:"DellAttributes"`
	DellAttributesCount int          `json:"DellAttributes@odata.count"`
}

type HPE

type HPE struct {
	Service *gofish.Service
}

func (*HPE) GetTaskMonitorDetails

func (r *HPE) GetTaskMonitorDetails(ctx context.Context, taskMonitorResponse *http.Response) (*redfish.Task, error)

func (*HPE) GetUpdateRequestBody

func (r *HPE) GetUpdateRequestBody(
	parameters *redfish.SimpleUpdateParameters,
) *SimpleUpdateRequestBody

func (*HPE) GetUpdateTaskMonitorURI

func (r *HPE) GetUpdateTaskMonitorURI(response *http.Response) (string, error)

type HPEILOManager added in v0.2.0

type HPEILOManager struct {
	BMC     *redfish.Manager
	Service *gofish.Service
}

func (*HPEILOManager) CheckBMCAttributes added in v0.2.0

func (h *HPEILOManager) CheckBMCAttributes(
	ctx context.Context,
	attributes redfish.SettingsAttributes,
) (bool, error)

func (*HPEILOManager) GetBMCPendingAttributeValues added in v0.2.0

func (h *HPEILOManager) GetBMCPendingAttributeValues(ctx context.Context) (redfish.SettingsAttributes, error)

func (*HPEILOManager) GetOEMBMCSettingAttribute added in v0.2.0

func (h *HPEILOManager) GetOEMBMCSettingAttribute(
	ctx context.Context,
	attributes map[string]string,
) (redfish.SettingsAttributes, error)

func (*HPEILOManager) GetObjFromUri added in v0.2.0

func (h *HPEILOManager) GetObjFromUri(
	ctx context.Context,
	uri string,
	respObj any,
) (string, error)

func (*HPEILOManager) UpdateBMCAttributesApplyAt added in v0.2.0

func (h *HPEILOManager) UpdateBMCAttributesApplyAt(
	ctx context.Context,
	attrs redfish.SettingsAttributes,
	applyTime common.ApplyTime,
) error

type Lenovo

type Lenovo struct {
	Service *gofish.Service
}

func (*Lenovo) GetTaskMonitorDetails

func (r *Lenovo) GetTaskMonitorDetails(ctx context.Context, taskMonitorResponse *http.Response) (*redfish.Task, error)

func (*Lenovo) GetUpdateRequestBody

func (r *Lenovo) GetUpdateRequestBody(
	parameters *redfish.SimpleUpdateParameters,
) *SimpleUpdateRequestBody

func (*Lenovo) GetUpdateTaskMonitorURI

func (r *Lenovo) GetUpdateTaskMonitorURI(response *http.Response) (string, error)

type LenovoXCCManager added in v0.2.0

type LenovoXCCManager struct {
	BMC     *redfish.Manager
	Service *gofish.Service
}

func (*LenovoXCCManager) CheckBMCAttributes added in v0.2.0

func (l *LenovoXCCManager) CheckBMCAttributes(
	ctx context.Context,
	attributes redfish.SettingsAttributes,
) (bool, error)

func (*LenovoXCCManager) GetBMCPendingAttributeValues added in v0.2.0

func (l *LenovoXCCManager) GetBMCPendingAttributeValues(ctx context.Context) (redfish.SettingsAttributes, error)

func (*LenovoXCCManager) GetOEMBMCSettingAttribute added in v0.2.0

func (l *LenovoXCCManager) GetOEMBMCSettingAttribute(
	ctx context.Context,
	attributes map[string]string,
) (redfish.SettingsAttributes, error)

func (*LenovoXCCManager) GetObjFromUri added in v0.2.0

func (l *LenovoXCCManager) GetObjFromUri(
	ctx context.Context,
	uri string,
	respObj any,
) (string, error)

func (*LenovoXCCManager) UpdateBMCAttributesApplyAt added in v0.2.0

func (l *LenovoXCCManager) UpdateBMCAttributesApplyAt(
	ctx context.Context,
	attrs redfish.SettingsAttributes,
	applyTime common.ApplyTime,
) error

type ManagerInterface added in v0.2.0

type ManagerInterface interface {
	// GetOEMBMCSettingAttribute retrieves OEM-specific BMC setting attributes.
	GetOEMBMCSettingAttribute(ctx context.Context, attributes map[string]string) (redfish.SettingsAttributes, error)

	// GetBMCPendingAttributeValues retrieves pending BMC attribute values.
	GetBMCPendingAttributeValues(ctx context.Context) (redfish.SettingsAttributes, error)

	// CheckBMCAttributes checks if the BMC attributes are valid and returns whether a reset is required.
	CheckBMCAttributes(ctx context.Context, attributes redfish.SettingsAttributes) (bool, error)

	// GetObjFromUri retrieves an object from a given URI and populates the response object.
	GetObjFromUri(ctx context.Context, uri string, respObj any) (string, error)

	// UpdateBMCAttributesApplyAt updates BMC attributes and applies them at the specified time.
	UpdateBMCAttributesApplyAt(ctx context.Context, attrs redfish.SettingsAttributes, applyTime common.ApplyTime) error
}

ManagerInterface defines methods for OEM-specific Server Manager's operations in BMC.

type OEMInterface added in v0.2.0

type OEMInterface interface {
	GetUpdateRequestBody(parameters *redfish.SimpleUpdateParameters) *SimpleUpdateRequestBody
	GetUpdateTaskMonitorURI(response *http.Response) (string, error)
	GetTaskMonitorDetails(ctx context.Context, taskMonitorResponse *http.Response) (*redfish.Task, error)
}

OEMInterface defines methods for OEM-specific Server operations in BMC.

type SimpleUpdateRequestBody

type SimpleUpdateRequestBody struct {
	redfish.SimpleUpdateParameters
	RedfishOperationApplyTime redfish.OperationApplyTime `json:"@Redfish.OperationApplyTime,omitempty"`
}

Jump to

Keyboard shortcuts

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