Skip to content

Commit

Permalink
model/DeviceQueryor: define the new interface methods
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Nov 29, 2023
1 parent 66279d7 commit fc79d0f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,13 @@ type DeviceQueryor interface {
// Inventory returns the device inventory
Inventory(ctx context.Context) (*common.Device, error)

// 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)

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, tryOpen bool) (state, status string, err error)
FirmwareTaskStatus(ctx context.Context, kind bconsts.FirmwareInstallStep, component, taskID, installVersion string, tryOpen bool) (state bconsts.TaskState, status string, err error)

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

FirmwareInstallUploadAndInitiate(ctx context.Context, component string, file *os.File) (taskID string, err error)
}

0 comments on commit fc79d0f

Please sign in to comment.