Skip to content

Commit

Permalink
Update biosconfig task parameters (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans authored Sep 24, 2024
1 parent 6a13f25 commit 527d590
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 527d590

Please sign in to comment.