Skip to content

Commit

Permalink
Update biosconfig task parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans committed Sep 23, 2024
1 parent 6a13f25 commit 4fa59d6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions condition/bios_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ type BiosControlTaskParameters struct {
Action BiosControlAction `json:"action"`
}

func (p *BiosControlTaskParameters) Unmarshal(r json.RawMessage) error {
return json.Unmarshal(r, p)
}

func (p *BiosControlTaskParameters) Marshal() (json.RawMessage, error) {
return json.Marshal(p)
}

func (p *BiosControlTaskParameters) MustJSON() []byte {
byt, err := json.Marshal(p)
if err != nil {
panic(err)
}
return byt
}

func NewBiosControlTaskParameters(assetID uuid.UUID, action BiosControlAction) *BiosControlTaskParameters {
return &BiosControlTaskParameters{
AssetID: assetID,
Expand Down

0 comments on commit 4fa59d6

Please sign in to comment.