Skip to content

Commit

Permalink
model/DeviceQueryor: update interface for newer firmware methods
Browse files Browse the repository at this point in the history
These methods are to be implemented by the outofband package for firmware upload,
installs
  • Loading branch information
joelrebel committed Nov 20, 2023
1 parent 2d9f237 commit a5a8aa7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"strings"

bconsts "github.com/bmc-toolbox/bmclib/v2/constants"
"github.com/bmc-toolbox/common"
"github.com/google/uuid"
)
Expand Down Expand Up @@ -119,5 +120,11 @@ type DeviceQueryor interface {
// FirmwareInstall initiates the firmware install process returning a taskID for the install if any.
FirmwareInstall(ctx context.Context, componentSlug string, force bool, file *os.File) (taskID string, err error)

FirmwareInstallStatus(ctx context.Context, installVersion, componentSlug, bmcTaskID string) (ComponentFirmwareInstallStatus, error)
FirmwareInstallSteps(ctx context.Context, component string) ([]bconsts.FirmwareInstallStep, error)

FirmwareUpload(ctx context.Context, component string, reader *os.File) (uploadVerifyTaskID string, err error)

FirmwareTaskStatus(ctx context.Context, kind bconsts.FirmwareInstallStep, component, taskID, installVersion string) (state, status string, err error)

FirmwareInstallUploaded(ctx context.Context, component, uploadVerifyTaskID string) (installTaskID string, err error)
}

0 comments on commit a5a8aa7

Please sign in to comment.