@@ -35,8 +35,8 @@ const (
3535 DefaultPowerPollingTimeout = 5 * time .Minute
3636)
3737
38- // BMCOptions contains the options for the BMC redfish client.
39- type BMCOptions struct {
38+ // Options contain the options for the BMC redfish client.
39+ type Options struct {
4040 Endpoint string
4141 Username string
4242 Password string
@@ -51,7 +51,7 @@ type BMCOptions struct {
5151// RedfishBMC is an implementation of the BMC interface for Redfish.
5252type RedfishBMC struct {
5353 client * gofish.APIClient
54- options BMCOptions
54+ options Options
5555}
5656
5757var pxeBootWithSettingUEFIBootMode = redfish.Boot {
@@ -67,7 +67,7 @@ var pxeBootWithoutSettingUEFIBootMode = redfish.Boot{
6767// NewRedfishBMCClient creates a new RedfishBMC with the given connection details.
6868func NewRedfishBMCClient (
6969 ctx context.Context ,
70- options BMCOptions ,
70+ options Options ,
7171) (* RedfishBMC , error ) {
7272 clientConfig := gofish.ClientConfig {
7373 Endpoint : options .Endpoint ,
@@ -356,7 +356,7 @@ func (r *RedfishBMC) GetBiosPendingAttributeValues(
356356 }
357357
358358 // unfortunately, some vendors fill the pending attribute with copy of actual bios attribute
359- // remove if there are same
359+ // remove if there are the same
360360 if len (tBios .Attributes ) == len (tBiosPendingSetting .Attributes ) {
361361 pendingAttr := redfish.SettingsAttributes {}
362362 for key , attr := range tBiosPendingSetting .Attributes {
@@ -448,7 +448,7 @@ func (r *RedfishBMC) getFilteredBiosRegistryAttributes(
448448 return
449449}
450450
451- // check if the arrtibutes need to reboot when changed, and are correct type.
451+ // CheckBiosAttributes checks if the attributes need to reboot when changed and are the correct type.
452452func (r * RedfishBMC ) CheckBiosAttributes (attrs redfish.SettingsAttributes ) (reset bool , err error ) {
453453 reset = false
454454 // filter out immutable, readonly and hidden attributes
0 commit comments